/*
  File CSS principale per il sito dell'architetto urbanista freelance
  Palette: bianco (#fff), grigio antracite (#23272a), blu navy (#1a2238)
  Font: Playfair Display per titoli, Inter per testi
  Mobile-first responsive
*/

/* Reset base e box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: #23272a;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

/* Overlay rimosso - non più necessario con sfondo bianco */

main {
  flex: 1 0 auto;
  /* Forza il main a espandersi */
}

/* Titoli principali: Playfair Display */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: #1a2238;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Spaziature generali */
section,
header,
footer {
  padding: 1.5rem 1rem;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

p,
li,
label,
input,
textarea,
select,
a {
  font-size: 1rem;
}

/* Link e bottoni */
a {
  color: #1a2238;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: #23272a;
}

.cta-btn {
  display: inline-block;
  background: #1a2238;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  margin-top: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.cta-btn:hover,
.cta-btn:focus {
  background: #23272a;
  color: #fff;
}

/* Responsive container per articoli */
.articoli-lista {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Stile per il pulsante "Leggi di più" */
.read-more {
  display: inline-block;
  background: #1a2238;
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 2px solid #1a2238;
}

.read-more:hover,
.read-more:focus {
  background: #fff;
  color: #1a2238 !important;
  border-color: #1a2238;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 34, 56, 0.15);
}

.articolo-preview {
  background: linear-gradient(120deg, #fff 60%, #f7f7fa 100%);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(26, 34, 56, 0.07);
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 320px;
  max-width: 100%;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.18s;
}

.articolo-preview:hover,
.articolo-preview:focus-within {
  box-shadow: 0 6px 24px rgba(26, 34, 56, 0.10);
  transform: translateY(-4px) scale(1.02);
}

.articolo-preview img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.7rem;
  background: #e5e7eb;
  box-shadow: 0 1px 6px rgba(26, 34, 56, 0.04);
}

.articolo-preview h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
  display: block;
  max-width: 100%;
  line-height: 1.3;
}

/* Footer */
footer {
  background: #1a2238;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 2rem;
}

/* Form contatto e consulenza */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #f7f7fa;
  padding: 1.2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(26, 34, 56, 0.04);
  margin-bottom: 1.5rem;
}

label {
  font-weight: 600;
  color: #1a2238;
}

input,
textarea,
select {
  padding: 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: #23272a;
  transition: border 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border: 1.5px solid #1a2238;
  outline: none;
}

button[type="submit"] {
  background: #1a2238;
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background: #23272a;
}

/* --- Dettagli di stile eleganti e minimal --- */

/* Separatore sottile per le sezioni principali */
section:not(:last-of-type) {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

/* Micro-layout per "Chi Sono" */
#chi-sono .bio,
#chi-sono .titoli-competenze,
#chi-sono .storia-lavorativa {
  margin-bottom: 1.2rem;
}

/* Lista servizi ordinata */
#servizi ul {
  list-style: disc inside;
  padding-left: 1rem;
  color: #23272a;
}

#servizi li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Footer: separatore superiore sottile */
footer {
  border-top: 1px solid #23272a22;
}

/* Contatti nel footer */
.contatti-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

/* Header sezione con link "Vedi tutti" */
.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.vedi-tutti {
  font-size: 1rem;
  color: #1a2238;
  background: #f0f4fa;
  border-radius: 2rem;
  padding: 0.3rem 1.1rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.vedi-tutti:hover,
.vedi-tutti:focus {
  background: #1a2238;
  color: #fff;
}

/* Social links in contatti */
.social-links {
  display: flex;
  gap: 1.2rem;
  margin: 1.2rem 0 2rem 0;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f4fa;
  width: 48px;
  height: 48px;
  transition: background 0.18s, box-shadow 0.18s;
}

.social-links a:hover,
.social-links a:focus {
  background: #1a2238;
  box-shadow: 0 2px 8px rgba(26, 34, 56, 0.10);
}

.social-links svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: #1a2238;
  transition: fill 0.18s;
}

.social-links a:hover svg,
.social-links a:focus svg {
  fill: #fff;
}

/* Footer minimal ordinato */
footer {
  background: #fff;
  color: #23272a;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.98rem;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.contatti-footer {
  display: flex;
  flex-direction: row;
  gap: 2.2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1rem;
  color: #23272a;
}

.contatti-footer a {
  color: #1a2238;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.18s;
}

.contatti-footer a:hover,
.contatti-footer a:focus {
  color: #23272a;
}

/* --- Animazioni leggere e transizioni --- */

/* Fade-in generale per le sezioni */
section,
header,
footer {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}

header {
  animation-delay: 0.1s;
}

#ultimi-articoli {
  animation-delay: 0.2s;
}

#chi-sono {
  animation-delay: 0.3s;
}

#servizi {
  animation-delay: 0.4s;
}

#contatti {
  animation-delay: 0.5s;
}

#consulenza {
  animation-delay: 0.6s;
}

footer {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hover raffinato sugli articoli */
.articolo-preview {
  transition: box-shadow 0.25s, transform 0.18s;
}

.articolo-preview:hover,
.articolo-preview:focus-within {
  box-shadow: 0 6px 24px rgba(26, 34, 56, 0.10);
  transform: translateY(-4px) scale(1.02);
}

/* Pulsanti: effetto pressione */
button[type="submit"]:active,
.cta-btn:active {
  transform: scale(0.97);
}

/* Input: animazione bordo focus */
input:focus,
textarea:focus,
select:focus {
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 2px #1a223833;
}

/* Miglioramento accessibilità focus */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #1a2238;
  outline-offset: 2px;
}

/* Responsive: Tablet e Desktop */
@media (min-width: 600px) {
  html {
    font-size: 17px;
  }

  .articoli-lista {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .articolo-preview {
    flex: 1 1 45%;
    max-width: 45%;
  }

  section,
  header,
  footer {
    padding: 2.5rem 3rem;
  }
}

@media (min-width: 900px) {
  html {
    font-size: 18px;
  }

  .articolo-preview {
    max-width: 30%;
  }
}

/* Miglioramento immagini articoli */
.articolo-preview img {
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e5e7eb;
}

/* Liste esperienze e titoli */
#chi-sono ul {
  margin-left: 1.2rem;
  margin-bottom: 0.7rem;
}

#chi-sono h3 {
  margin-top: 1.1rem;
}

/* Placeholder più visibili nei form */
input::placeholder,
textarea::placeholder {
  color: #8a8f98;
  opacity: 1;
  font-size: 0.98em;
}

/* --- Navbar principale --- */
.navbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem 1.5rem 0;
  box-shadow: 0 2px 8px rgba(26, 34, 56, 0.03);
  min-height: 120px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #1a2238;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.navbar-photo {
  width: 120px;
  height: 120px;
  border-radius: 0;
  object-fit: cover;
  border: none;
  box-shadow: none;
  margin-left: 1rem;
  margin-right: 1.5rem;
}

.navbar-logo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-right: 1rem;
  image-rendering: auto;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.1) brightness(1.05);
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.navbar-links li {
  display: inline-block;
}

.navbar-links a {
  color: #23272a;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  transition: background 0.18s, color 0.18s;
  font-size: 1.1rem;
}

.navbar-links a:hover,
.navbar-links a:focus {
  background: #f0f4fa;
  color: #1a2238;
}

.navbar-links .active,
.navbar-links .cta-nav {
  background: #1a2238;
  color: #fff !important;
}

.navbar-links .cta-nav {
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Mobile: navbar con menu hamburger */
@media (max-width: 600px) {
  .navbar {
    padding: 1rem 0.5rem;
    min-height: 80px;
    position: relative;
  }

  .navbar-logo {
    font-size: 1.1rem;
    gap: 0.7rem;
  }

  .navbar-photo {
    width: 80px;
    height: 80px;
    margin-left: 0.5rem;
    margin-right: 0.8rem;
  }

  .navbar-logo-img {
    width: 80px;
    height: 80px;
    margin-right: 0.8rem;
  }

  /* Nascondi i link normali su mobile */
  .navbar-links {
    display: none;
  }

  /* Mostra solo Home e menu hamburger */
  .navbar-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .navbar-home-btn {
    background: #1a2238;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
  }

  .navbar-home-btn:hover {
    background: #23272a;
    color: #fff;
  }

  /* Menu hamburger */
  .hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: auto;
  }

  .hamburger-line {
    width: 24px;
    height: 3px;
    background: #1a2238;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Menu dropdown */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(26,34,56,0.1);
    z-index: 1000;
    display: none;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #23272a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f4fa;
    transition: background 0.2s;
  }

  .mobile-menu a:hover {
    background: #f0f4fa;
    color: #1a2238;
  }

  .mobile-menu a.cta-nav {
    background: #1a2238;
    color: #fff;
    font-weight: 600;
    border-bottom: none;
  }

  .mobile-menu a.cta-nav:hover {
    background: #23272a;
  }

  /* Animazione hamburger quando aperto */
  .hamburger-menu.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Desktop: nascondi elementi mobile */
@media (min-width: 601px) {
  .navbar-mobile,
  .hamburger-menu,
  .mobile-menu {
    display: none !important;
  }
}

/* Header sezione articoli con barra ricerca */
.articoli-header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

#search-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin: 1.5rem auto 2.2rem auto;
  max-width: 480px;
  background: #f7f7fa;
  border-radius: 1.2rem;
  padding: 1.2rem 1.2rem 1.5rem 1.2rem;
  box-shadow: 0 2px 8px rgba(26, 34, 56, 0.04);
  z-index: 20;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 99;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 1.2rem 1.2rem;
  box-shadow: 0 2px 8px rgba(26, 34, 56, 0.07);
  max-height: 220px;
  overflow-y: auto;
  font-size: 1rem;
}

.search-label {
  font-size: 1.1rem;
  color: #1a2238;
  font-weight: 600;
  margin-bottom: 0.2rem;
  align-self: flex-start;
}

#search-input {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  border: 1.5px solid #d1d5db;
  background: #fff;
  margin-bottom: 0.2rem;
}

#date-filter {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  border: 1.5px solid #d1d5db;
  background: #fff;
}

#search-input:focus,
#date-filter:focus {
  border: 1.5px solid #1a2238;
  outline: none;
}

/* Data articolo */
.articolo-data {
  display: block;
  font-size: 0.98rem;
  color: #8a8f98;
  margin-bottom: 0.3rem;
  margin-left: 0.1rem;
}

@media (max-width: 600px) {
  #search-form {
    max-width: 100%;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
  }

  #search-input,
  #date-filter {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}

/* Barra di ricerca sottile e lunga, con bottone filtro */
.search-bar-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  gap: 0.5rem;
}

#search-input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  font-size: 1.15rem;
  padding: 0.55rem 1.3rem;
  border-radius: 2rem;
  border: 1.5px solid #d1d5db;
  background: #fff;
  height: 2.5rem;
  box-shadow: none;
  transition: border 0.18s;
}

#search-input:focus {
  border: 1.5px solid #1a2238;
  outline: none;
}

.filter-btn {
  background: #f0f4fa;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 0.2rem;
  padding: 0;
}

.filter-btn:hover,
.filter-btn:focus {
  background: #1a2238;
}

.filter-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: #1a2238;
  transition: stroke 0.18s;
}

.filter-btn:hover svg,
.filter-btn:focus svg {
  stroke: #fff;
}

/* Pannello filtri a scomparsa: desktop a destra, mobile centrato */
.filter-panel {
  position: fixed;
  top: 140px;
  right: 0;
  visibility: hidden;
  /* Nascosto ma presente nel layout */
  opacity: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(26, 34, 56, 0.10);
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  z-index: 1000;
  min-width: 280px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.filter-panel.is-open {
  visibility: visible;
  /* Appare istantaneamente */
  opacity: 1;
}

.filter-panel label {
  font-size: 1rem;
  color: #1a2238;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.filter-panel input[type="date"],
.filter-panel input[type="month"],
.filter-panel input[type="number"] {
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid #d1d5db;
  background: #f7f7fa;
  margin-bottom: 0.2rem;
}

.filter-panel input:focus {
  border: 1.5px solid #1a2238;
  outline: none;
}

/* Pulsante "Rimuovi filtri" */
.clear-filters-btn {
  background: transparent;
  border: 1px solid #1a2238;
  color: #1a2238;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.18s, color 0.18s;
}

.clear-filters-btn:hover,
.clear-filters-btn:focus {
  background: #1a2238;
  color: #fff;
}

@media (min-width: 900px) {
  .search-bar-flex {
    max-width: 900px;
  }

  #search-input {
    font-size: 1.18rem;
    height: 2.7rem;
  }
}

@media (max-width: 600px) {
  .search-bar-flex {
    max-width: 100%;
  }

  #search-input {
    font-size: 1rem;
    height: 2.2rem;
    padding: 0.5rem 1rem;
  }

  .filter-panel {
    min-width: 180px;
    padding: 1rem 0.7rem;
  }
}

/* Fix: barra ricerca e ordina senza box, tutto orizzontale */
#search-form {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 2.5rem auto 2rem auto !important;
  max-width: 1200px !important;
  display: block !important;
}

.search-bar-ordina-flex {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 0 auto !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.order-select-wrap {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  min-width: 180px !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  order: -1 !important;
}

.search-bar-ordina-flex .search-bar-flex {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.search-bar-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  gap: 0.5rem !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

@media (max-width: 900px) {

  #search-form,
  .search-bar-ordina-flex {
    max-width: 98vw !important;
    gap: 1.1rem !important;
  }

  .order-select-wrap {
    min-width: 140px !important;
  }
}

@media (max-width: 600px) {
  .search-bar-ordina-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.7rem !important;
    max-width: 100vw !important;
  }

  #search-form {
    max-width: 100vw !important;
    padding: 1rem 0.5rem 1.2rem 0.5rem !important;
  }

  .order-select-wrap {
    min-width: 0 !important;
    margin-bottom: 0.2rem !important;
  }
}

/* Sezione articoli con min-height responsive */
#articleSection {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

#articleList {
  flex: 1 0 auto;
}

#noResultsMessage {
  display: none;
  text-align: center;
  color: #8a8f98;
  font-size: 1.15rem;
  margin: 2.5rem 0 1.5rem 0;
  font-style: italic;
}

@media (max-width: 600px) {
  #articleSection {
    min-height: 180px;
  }

  #noResultsMessage {
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
  }
}

/* Banner social stretti e lunghi */
.social-banners {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 320px;
  align-items: flex-start;
}

.social-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.7rem 1.2rem;
  min-height: 50px;
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.2s cubic-bezier(.4, 0, .2, 1), box-shadow 0.2s;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* Ombra più morbida */
  -webkit-backdrop-filter: blur(3px);
  /* Effetto vetro satinato */
  backdrop-filter: blur(3px);
}

.social-banner:hover,
.social-banner:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  /* Ombra più pronunciata in hover */
}

.social-banner::before {
  display: none;
}

.banner-text {
  position: relative;
  z-index: 1;
}

.social-logo {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  fill: #fff;
}

/* Colori ufficiali social */
.social-banner.linkedin {
  background-color: #0077B5;
}

.social-banner.instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-banner.facebook {
  background-color: #1877F2;
}

.social-banner.tiktok {
  background-color: #000000;
}

/* Banner social "coming soon" - stile grigio e non cliccabile */
.social-banner.coming-soon {
  background-color: #e5e7eb !important;
  color: #6b7280 !important;
  cursor: default;
  position: relative;
  justify-content: space-between;
}

.social-banner.coming-soon:hover,
.social-banner.coming-soon:focus {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.social-banner.coming-soon .social-logo {
  fill: #9ca3af !important;
}

.coming-soon-text {
  font-size: 0.8rem;
  font-style: italic;
  color: #9ca3af;
  margin-left: auto;
}

/* --- Stile pagina articolo completo --- */
.articolo-completo {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.articolo-header {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.breadcrumb {
  font-size: 0.95rem;
  color: #8a8f98;
  margin-bottom: 0.7rem;
}

.breadcrumb a {
  color: #1a2238;
  text-decoration: underline;
}

.article-meta {
  font-size: 1rem;
  color: #8a8f98;
  margin-top: 0.5rem;
}

#article-image {
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  margin-top: 1.2rem;
  background: #f0f4fa;
}

.articolo-corpo {
  max-width: 700px;
  margin: 0 auto;
  word-break: break-word;
  white-space: pre-line;
  line-height: 1.7;
  font-size: 1.08rem;
  padding: 1.2rem 0;
}

.articolo-corpo img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.2rem 0;
  display: block;
}

.articolo-corpo h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
}

.articolo-corpo p {
  margin-bottom: 1rem;
}

.articolo-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a2238;
  margin: 0;
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.share-buttons a,
.share-buttons button {
  font-size: 0.95rem;
  color: #1a2238;
  background: #f0f4fa;
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.share-buttons a:hover,
.share-buttons button:hover {
  background: #1a2238;
  color: #fff;
}

/* Controllo visibilità testo desktop/mobile */
.mobile-text {
  display: none;
}

.desktop-text {
  display: inline;
}

/* Layout mobile migliorato */
@media (max-width: 600px) {
  .articolo-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .share-section {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .share-section h4 {
    text-align: center;
  }
  
  .share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    width: 100%;
    max-width: 320px;
  }
  
  .share-buttons a,
  .share-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #fff;
    border-radius: 0.8rem;
    padding: 0.7rem 1rem;
    font-weight: 600;
    min-height: 44px;
  }
  
  .share-buttons a:hover,
  .share-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* Controllo visibilità testo su mobile */
  .desktop-text {
    display: none;
  }
  
  .mobile-text {
    display: inline;
  }
  
  /* Colori specifici per mobile - con maggiore specificità */
  .share-buttons .share-facebook {
    background: #1877F2 !important;
    color: #fff !important;
  }
  
  .share-buttons .share-twitter {
    background: #1DA1F2 !important;
    color: #fff !important;
  }
  
  .share-buttons .share-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
  }
  
  .share-buttons .share-copy {
    background: #6B7280 !important;
    color: #fff !important;
  }
  
  .share-buttons .share-facebook:hover {
    background: #1565C0 !important;
  }
  
  .share-buttons .share-twitter:hover {
    background: #1976D2 !important;
  }
  
  .share-buttons .share-whatsapp:hover {
    background: #1B5E20 !important;
  }
  
  .share-buttons .share-copy:hover {
    background: #4B5563 !important;
  }
}

.back-button {
  font-size: 1.05rem;
  color: #1a2238;
  text-decoration: underline;
  font-weight: 500;
}

/* --- Banner autore articolo --- */
#article-author {
  display: inline-block;
  background: linear-gradient(135deg, #1a2238 0%, #23272a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(26, 34, 56, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: fit-content;
}

#article-author:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 34, 56, 0.25);
}

#article-author::before {
  content: '✍️';
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* Responsive per mobile */
@media (max-width: 600px) {
  #article-author {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    max-width: calc(100vw - 2rem);
    white-space: normal;
    line-height: 1.3;
  }
}