/**
 * BauScia - Re-Design "Tabui Style"
 * Colori Ufficiali:
 * BRAND (Rosso/Arancio): #e74a32
 * NAVY (Blu ufficiale): #1f2c51
 */

:root {
  /* COLORI UFFICIALI */
  --navy: #1f2c51;         /* Blu ufficiale BauScia */
  --navy-bright: #1a2742;  /* Variante più chiara (opzionale) */
  --brand: #e74a32;        /* Rosso/Arancio vibrante */
  
  --white: #ffffff;
  --light-gray: #f1f5f9;   /* Sfondo neutro (Slate-100) */
  --text-main: #334155;    /* Colore testo leggibile */
  --trip-blue: #1e5a82;    /* Blu BauScia Trip */
}

/* =========================================
   RESET & BASE
   ========================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { 
  background-color: var(--light-gray); 
  color: var(--text-main); 
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  color: var(--navy);
}

.font-display {
  font-family: 'Sora', sans-serif;
}

a { text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; display: block; }

/* =========================================
   UTILITIES
   ========================================= */
.text-navy { color: var(--navy); }
.text-navy-desktop { color: inherit; }
@media (min-width: 768px) {
  .text-navy-desktop { color: var(--navy); }
}
.text-brand { color: var(--brand); }
.bg-navy { background-color: var(--navy); }
.bg-brand { background-color: var(--brand); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   HEADER AGGIORNATO
   ========================================= */
.site-header {
  background: rgba(255, 255, 255, 0.98); /* Quasi solido */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 25px rgba(19, 30, 50, 0.05); /* Ombra morbida Navy */
  position: sticky;
  top: 0;
  z-index: 100;
  height: 90px; /* Un po' più alto per importanza */
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-link {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  padding: 0.5rem 0;
  margin: 0 1.2rem;
  position: relative;
  transition: color 0.2s;
}

/* Effetto sottolineatura animata rossa */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--brand);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover { color: var(--brand); }
.nav-link:hover::after { width: 100%; }

/* Bottone nella Navbar (CTA) */
.nav-cta {
  background-color: var(--brand);
  color: var(--white);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(231, 74, 50, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  margin-left: 1rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 74, 50, 0.4);
  background-color: #d63f28; /* Rosso leggermente più scuro */
  color: var(--white);
}

/* MENU MOBILE HAMBURGER – pannello fullscreen */
.mobile-nav {
  background-color: var(--navy);
  border-bottom: 4px solid var(--brand);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
}

.mobile-nav.hidden {
  display: none !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
}

.mobile-nav-link {
  display: block;
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  padding: 1rem 0;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease, padding-left 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-link:hover {
  color: var(--brand);
  padding-left: 12px;
}

.mobile-nav-cta {
  color: var(--brand);
  margin-top: 0.25rem;
}

.mobile-nav-cta:hover {
  color: var(--white);
}

.mobile-nav-footer {
  flex-shrink: 0;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  padding-top: 1.25rem;
}

/* Hamburger icon container – solo mobile */
#menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  #menu-toggle {
    display: none !important;
  }
}

/* =========================================
   HERO SECTION (Compatta e Solida)
   ========================================= */
.hero-compact {
  background-color: var(--navy); /* Colore PIENO #131E32 */
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
}
.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Contenitore per le immagini laterali – tono naturale, sfumano verso il centro navy */
.hero-bg-image {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%; /* Occupa metà schermo per lato */
  background-size: cover;
  background-position: center;
  z-index: 1; /* Sta sotto al testo */
  opacity: 0.92; /* Tono naturale, la maschera sfuma verso il centro */
  pointer-events: none;
}

/* Immagine Sinistra (sfuma verso destra, centro navy) */
.hero-bg-left {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, black 25%, transparent 70%);
  mask-image: linear-gradient(to right, black 25%, transparent 70%);
}

/* Immagine Destra (sfuma verso sinistra, centro navy) */
.hero-bg-right {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black 25%, transparent 70%);
  mask-image: linear-gradient(to left, black 25%, transparent 70%);
}

/* Assicura che il contenuto (Logo/Testo) sia sopra le immagini */
.hero-compact .container {
  position: relative;
  z-index: 10;
}

/* Su mobile: nascondi le due immagini laterali, mostra una full-width */
@media (max-width: 768px) {
  .hero-bg-left,
  .hero-bg-right { display: none; }
  /* Nascondi il logo ma mantieni lo spazio per titolo e sottotitolo nella stessa posizione */
  .hero-compact .container > div:first-child { 
    visibility: hidden; 
    height: 0; 
    margin: 0; 
    overflow: hidden;
  }
  .hero-compact .container { padding-top: 7.5rem; }
}

/* Su mobile: gallery-8 in tono naturale, sfuma verso alto e basso */
.hero-bg-mobile {
  display: none;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  z-index: 1;
  opacity: 0.92; /* Tono naturale senza filtro blu */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-bg-mobile { display: block; }
}

/* Citazione sotto hero – font corsivo tipo scritta a mano, in linea unica su mobile */
.hero-quote {
  margin: 0;
  font-family: 'Dancing Script', cursive;
}
.hero-quote__text {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: clamp(0.9rem, 4.2vw, 1.2rem);
  line-height: 1.5;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-quote__text::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .hero-quote__text {
    font-size: 2rem;
    white-space: normal;
    overflow-x: visible;
  }
}
.hero-quote__signature {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
}
@media (min-width: 768px) {
  .hero-quote__signature {
    font-size: 1.5rem;
  }
}

/* =========================================
   GRID MENU (2 CARD PRINCIPALI - NO FOTO)
   ========================================= */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem; /* Più spazio verticale tra le card */
  margin-top: 0; 
  padding-bottom: 3rem;
  padding-top: 3rem; /* Spazio extra per i loghi che escono */
}

@media (min-width: 768px) {
  .menu-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 2.5rem;
  } 
}

/* Card Stile App - Clean Version */
.app-card {
  background: var(--white);
  border-radius: 2rem;
  overflow: visible; /* IMPORTANTE: per far uscire il logo */
  box-shadow: 0 10px 40px rgba(19, 30, 50, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  margin-top: 2rem;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(19, 30, 50, 0.15);
  border-color: rgba(231, 74, 50, 0.2);
}

.card-content {
  padding: 4.5rem 2rem 2.5rem; /* Molto padding in alto per fare spazio al logo */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icona/Logo Badge – blu ufficiale #131E32, loghi trasparenti sopra */
.card-icon {
  width: 140px;  
  height: 140px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* POSIZIONAMENTO ASSOLUTO PER "SBORDARE" */
  position: absolute;
  top: 0; 
  left: 50%;
  transform: translate(-50%, -50%);
  
  z-index: 20;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(19, 30, 50, 0.15);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover .card-icon {
  transform: translate(-50%, -58%) scale(1.05);
  box-shadow: 0 15px 30px rgba(231, 74, 50, 0.15);
  border-color: rgba(231, 74, 50, 0.1);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--navy);
}

.card-desc {
  font-size: 1.05rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.card-action {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: rgba(231, 74, 50, 0.08);
  border-radius: 50px;
  transition: all 0.2s;
}

.app-card:hover .card-action {
  background: var(--brand);
  color: var(--white);
}

/* =========================================
   BANNER & CTA
   ========================================= */
.banner-cta {
  background: var(--brand);
  color: var(--white);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(231, 74, 50, 0.3);
}

.btn-white {
  background: var(--white);
  color: var(--brand);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  display: inline-block;
  margin-top: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}
.btn-white:hover {
  transform: translateY(-2px);
  background: var(--navy);
  color: var(--white);
}

/* Bottoni principali (Educazione = rosso, Trip = blu) */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}
.btn-edu {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(231, 74, 50, 0.35);
}
.btn-edu:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 74, 50, 0.45);
}
.btn-trip {
  background: var(--trip-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 90, 130, 0.35);
}
.btn-trip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 90, 130, 0.45);
}

/* Ombra morbida per card e immagini */
.shadow-soft {
  box-shadow: 0 10px 40px rgba(19, 30, 50, 0.08);
}

/* Section generica (padding e separazione) */
.section {
  padding: 4rem 0;
  border-top: 1px solid rgba(19, 30, 50, 0.06);
}

/* Staff – foto una sopra l'altra, ben visibili in home */
.staff-photos-col .staff-photo-wrap {
  aspect-ratio: 4 / 3;
}
.staff-photos-col .staff-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Articoli rubrica BauScia – scorrimento orizzontale */
.articles-rubric-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.articles-rubric-scroll::-webkit-scrollbar {
  height: 6px;
}
.articles-rubric-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 3px;
}
.articles-rubric-scroll::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 3px;
  opacity: 0.3;
}
.article-card .line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Staff – prima foto grande, più compatta su desktop */
.staff-section .staff-photo-main {
  max-width: 720px;
}
.staff-section .staff-photo-main .staff-photo-img {
  width: 100%;
  display: block;
}
@media (min-width: 768px) {
  .staff-section .staff-photo-main {
    aspect-ratio: 16 / 9;
  }
  .staff-section .staff-photo-main .staff-photo-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Partnership – card e fallback logo PDF */
.partnership-section .partnership-logo-wrap object {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 70px;
}
.partnership-section .partnership-logo-wrap object span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 70px;
  font-family: 'Sora', sans-serif;
}

/* Link servizi – evidenziare che sono cliccabili */
.servizi-link {
  text-decoration: none;
}
.servizi-link:hover {
  outline: none;
}
.servizi-link-edu:hover {
  background: rgba(231, 74, 50, 0.06);
}
.servizi-link-trip:hover {
  background: rgba(30, 90, 130, 0.06);
}
.servizi-link-arrow {
  font-size: 1.1rem;
  font-weight: 700;
}

/* =========================================
   SERVIZI – Sezione BauScia Educazione su mobile (sfondo come da sezione, testi navy)
   ========================================= */
@media (max-width: 767px) {
  .servizi-edu-title,
  .servizi-edu-desc,
  .servizi-edu-item {
    color: var(--navy) !important;
  }
  .servizi-edu-photos {
    margin-top: 1.5rem;
  }
  .servizi-edu-photos .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

/* Loghi tessera servizi: centrati in alto (desktop e mobile) */
.servizi-tessera-logo {
  text-align: center;
}
.servizi-edu-content .servizi-tessera-logo img,
.servizi-trip-content .servizi-tessera-logo img {
  max-height: 5rem;
}

/* Icone Trip: blu BauScia Trip */
.servizi-trip-icon {
  background: rgba(30, 90, 130, 0.15) !important;
  color: var(--trip-blue) !important;
}

/* Sezione BauScia Trip su mobile: sfondo come da sezione, testi navy */
@media (max-width: 767px) {
  .servizi-trip-title,
  .servizi-trip-desc,
  .servizi-trip-item {
    color: var(--navy) !important;
  }
  .servizi-trip-photos {
    margin-top: 1.5rem;
  }
  .servizi-trip-photos .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

/* Sezione Per le strutture ricettive su mobile */
@media (max-width: 767px) {
  .servizi-strutture-title,
  .servizi-strutture-desc,
  .servizi-strutture-item {
    color: var(--navy) !important;
  }
  .servizi-strutture-photos {
    margin-top: 1.5rem;
  }
  .servizi-strutture-photos .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

/* Form stile moderno (contatti) */
.input-modern,
select.input-modern,
textarea.input-modern {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-modern:focus,
select.input-modern:focus,
textarea.input-modern:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(231, 74, 50, 0.15);
}
textarea.input-modern {
  min-height: 120px;
  resize: vertical;
}

/* =========================================
   FOOTER AGGIORNATO (Dark Mode)
   ========================================= */
footer {
  background-color: var(--navy); /* Sfondo SCURO */
  color: #94a3b8; /* Testo grigio chiaro per leggibilità */
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Linea decorativa rossa in alto */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--navy) 100%);
}

footer h4 {
  color: var(--white); /* Titoli bianchi */
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Sottolineatura titoli footer */
footer h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand);
  margin-top: 0.5rem;
  border-radius: 2px;
}

footer a {
  transition: color 0.2s, transform 0.2s;
}

footer a:hover {
  color: var(--brand); /* Rosso all'hover */
}

footer .logo-footer {
  opacity: 0.95;
  height: 56px;
  width: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

/* Logo con sfondo (es. BIANCO.jpg): niente filtro, si vede a colori */
footer .logo-footer--img {
  filter: none;
  background: var(--white);
  padding: 0.35rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

footer .bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* =========================================
   CHI SONO – Tessera anteprima con dissolvenza
   ========================================= */
.chi-sono-reveal {
  position: relative;
}

.chi-sono-tessera {
  display: block;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.chi-sono-tessera .chi-sono-tessera-img {
  will-change: transform;
  background-repeat: no-repeat;
}

/* Mobile: tessera anteprima in 72vh; testo in alto, colore navy */
@media (max-width: 767px) {
  .chi-sono-reveal {
    height: 72vh;
    min-height: 280px;
    max-height: 72vh;
  }
  .chi-sono-reveal.is-open {
    height: auto;
    min-height: 72vh;
    max-height: none;
  }
  .chi-sono-reveal.is-open .chi-sono-bio {
    position: relative;
    min-height: 72vh;
  }
  .chi-sono-tessera .chi-sono-tessera-img {
    background-size: cover;
    background-position: 58% 45%;
  }
  .chi-sono-tessera .chi-sono-tessera-text {
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .chi-sono-tessera .chi-sono-tessera-title,
  .chi-sono-tessera .chi-sono-tessera-subtitle,
  .chi-sono-tessera .chi-sono-tessera-cta {
    color: var(--navy);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  }
  /* Overlay chiaro in alto su mobile per leggibilità testo navy */
  .chi-sono-tessera .chi-sono-tessera-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0%, transparent 50%);
  }
}

.chi-sono-tessera:hover .chi-sono-tessera-img {
  transform: scale(1.03);
}

/* Dissolvenza al click */
.chi-sono-reveal.is-open .chi-sono-tessera {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.chi-sono-reveal.is-open .chi-sono-tessera .chi-sono-tessera-img {
  transform: scale(1.08);
}

.chi-sono-bio {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Foto più scura e contrastata per migliorare leggibilità del testo */
.chi-sono-bio-bg {
  filter: brightness(0.75) contrast(1.08);
}

/* Overlay navy più marcato per staccare il testo dallo sfondo */
.chi-sono-bio-overlay {
  background-color: rgba(31, 44, 81, 0.62);
  backdrop-filter: blur(4px);
}

.chi-sono-reveal.is-open .chi-sono-bio {
  opacity: 1;
  visibility: visible;
}

/* Mobile: nome Stefano Bresciani bianco */
@media (max-width: 767px) {
  .chi-sono-bio .chi-sono-name {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

/* Desktop Chi-sono bio: nome e paragrafi in navy, nome più in alto (occhi del cane visibili) */
@media (min-width: 768px) {
  .chi-sono-bio .chi-sono-bio-inner {
    padding-top: 2.5rem;
  }
  .chi-sono-bio .chi-sono-name {
    color: var(--white);
  }
  .chi-sono-bio .bio-subtitle {
    margin-top: 3.5rem;
  }
  .chi-sono-bio .chi-sono-bio-paragraphs.chi-sono-bio-paragraphs-brand,
  .chi-sono-bio .chi-sono-bio-paragraphs.chi-sono-bio-paragraphs-brand strong {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
}

/* Sottotitolo Chi-sono: più spazio, rosso arancione e font leggermente più grande */
.chi-sono-bio .bio-subtitle {
  margin-top: 3.25rem;
  color: var(--white);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.chi-sono-bio .bio-subtitle .text-navy-desktop {
  color: var(--white);
}

/* Paragrafi e CTA in bianco */
.chi-sono-bio .chi-sono-bio-paragraphs-brand,
.chi-sono-bio .chi-sono-bio-paragraphs-brand strong {
  color: var(--white);
}

.chi-sono-bio .chi-sono-bio-cta {
  color: var(--white);
  border-color: var(--white);
}
.chi-sono-bio .chi-sono-bio-cta:hover {
  color: var(--white);
  opacity: 0.9;
}

/* Desktop: testi tessera bianchi e allineati a sinistra */
@media (min-width: 768px) {
  .chi-sono-tessera .chi-sono-tessera-text {
    align-items: flex-start;
    text-align: left;
    padding-left: 2.5rem;
    padding-right: 2rem;
  }
  .chi-sono-tessera .chi-sono-tessera-title,
  .chi-sono-tessera .chi-sono-tessera-subtitle,
  .chi-sono-tessera .chi-sono-tessera-cta {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }
  .chi-sono-tessera .chi-sono-tessera-subtitle {
    opacity: 0.95;
  }
  .chi-sono-tessera .chi-sono-tessera-cta {
    opacity: 0.9;
  }
}

@keyframes soft-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.animate-soft-bounce {
  animation: soft-bounce 2s ease-in-out infinite;
}

/* =========================================
   INSTAGRAM WALL (Doppio Scorrimento)
   ========================================= */
.instagram-section {
  padding: 4rem 0;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  transform: rotate(-2deg);
  width: 110%;
  margin-left: -5%;
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: 1rem;
}

.scroll-left {
  animation: scrollLeft 40s linear infinite;
}

.scroll-right {
  animation: scrollRight 40s linear infinite;
}

.marquee-row:hover {
  animation-play-state: paused;
}

.insta-item {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insta-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 10;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* =========================================
   BANNER COOKIE
   ========================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  border-top: 4px solid var(--brand);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
#cookie-banner.cookie-banner--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem;
  }
}
.cookie-banner__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner__text a {
  color: var(--brand);
  font-weight: 600;
}
.cookie-banner__text a:hover {
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  border: 2px solid transparent;
}
.cookie-banner__btn--accept {
  background: var(--brand);
  color: var(--white);
}
.cookie-banner__btn--accept:hover {
  background: #d63f28;
}
.cookie-banner__btn--reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}
.cookie-banner__btn--reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   PULSANTE WHATSAPP FISSO (tutte le pagine, incluso Contatti)
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}
.whatsapp-float__icon {
  display: block;
}
.whatsapp-float .w-8.h-8 {
  width: 1.75rem;
  height: 1.75rem;
}