/* ============================================================
   FOGLIO DI STILE DEL SITO
   Ripreso dalla vecchia pagina unica: le regole sono le stesse, cosi' la
   grafica non cambia. In fondo ci sono solo le aggiunte servite per il
   passaggio a sito multipagina (briciole, pagine programma, moduli, 404).
   ============================================================ */


  /* ── RESET & BASE ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Nunito','Trebuchet MS','Segoe UI',Arial,sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a2233;
    background: #fff;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }

  /* ── COLORI ── */
  /* EDIT: modifica questi valori per cambiare l'intera palette */
  :root {
    --blu:       #3a5cb8;   /* blu-indigo logo */
    --blu-light: #eaf2ff;   /* azzurro chiaro sfondo */
    --blu-dark:  #263d82;   /* indigo scuro */
    --verde:     #7060d0;   /* lilla accento */   /* verde secondario */
    --verde-light: #ede8ff; /* lilla chiaro */ /* verde chiaro sfondo */
    --grigio:    #f0f4ff;   /* azzurro-bianco caldo */   /* sfondo neutro */
    --grigio-bordo: #c8d4f0;
    --testo:     #1a2050;
    --testo-muted: #4a5480;
    --bianco:    #ffffff;
    --arancio:   #7060d0;   /* lilla per CTA speciali */   /* accento CTA */
  }

  /* ── TIPOGRAFIA ── */
  h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--testo); }
  h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
  h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }
  p { margin-bottom: 1rem; }
  p:last-child { margin-bottom: 0; }

  /* ── LAYOUT ── */
  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
  section { padding: 72px 0; }
  .section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blu);
    margin-bottom: 10px;
  }
  .section-intro { max-width: 640px; color: var(--testo-muted); font-size: 1.05rem; margin-top: 12px; }

  /* ── NAV ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bianco);
    border-bottom: 1px solid var(--grigio-bordo);
    padding: 0 24px;
  }
  .nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 28px;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blu);
    flex-shrink: 0;
  }
  .nav-logo img { height: 44px; width: auto; vertical-align: middle; }
  .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
  }
  .nav-links a {
    font-size: 0.9rem;
    color: var(--testo-muted);
    transition: color 0.2s;
    white-space: nowrap;
  }
  .nav-links a:hover { color: var(--blu); }
  .nav-cta {
    background: var(--blu);
    color: var(--bianco) !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .nav-cta:hover { background: var(--blu-dark) !important; }

  /* ── HERO ── */
  #hero {
    background: linear-gradient(100deg, rgba(26,32,80,0.88) 0%, rgba(30,50,120,0.78) 32%, rgba(40,80,180,0.52) 58%, rgba(80,140,220,0.18) 78%, rgba(200,232,255,0.05) 100%), url('/assets/img/hero-gruppo-in-viaggio.webp') 50% 50% / cover no-repeat;
    color: var(--bianco);
    padding: 90px 0 136px;
  }
  #hero .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  #hero h1 { color: var(--bianco); }
  #hero .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    margin: 16px 0 28px;
    line-height: 1.6;
  }
  .btn-primary {
    display: inline-block;
    background: var(--arancio);
    color: var(--bianco);
    padding: 13px 28px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary:hover { background: #c56b10; transform: translateY(-1px); }
  .btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--bianco);
    padding: 12px 24px;
    border-radius: 7px;
    border: 2px solid rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 12px;
    transition: border-color 0.2s;
  }
  .btn-secondary:hover { border-color: white; }

  /* ── STATISTICHE HERO ── */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 220px;
    margin-left: auto;
    margin-right: 20%;
  }
  .stat-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 18px 20px;
  }
  .stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bianco);
    line-height: 1;
  }
  .stat-num span { font-size: 1.4rem; }
  .stat-desc {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.75);
    margin-top: 5px;
  }

  /* ── BARRA CERTIFICAZIONI ── */
  #certif {
    padding: 22px 0;
    background: var(--blu-light);
    border-bottom: 1px solid #c5d5f0;
  }
  .certif-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .certif-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blu-dark);
    white-space: nowrap;
  }
  .certif-icon {
    width: 26px;
    height: 26px;
    background: var(--blu);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  /* ── CHI SIAMO ── */
  #chisiamo { background: var(--bianco); }
  .chisiamo-grid { display: grid; grid-template-columns: 1fr; max-width: 820px; }
  .chisiamo-img {
    border-radius: 12px;
    overflow: hidden;
    background: var(--grigio);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--testo-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--grigio-bordo);
  }
  /* EDIT: sostituisci .chisiamo-img con un <img src="foto-ufficio.jpg"> */
  .value-list { margin-top: 24px; }
  .value-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
  }
  .value-icon {
    width: 38px;
    height: 38px;
    background: var(--blu-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
  }

  /* ── TEAM ── */
  #team { background: var(--grigio); }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  .team-card {
    background: var(--bianco);
    border: 1px solid var(--grigio-bordo);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .team-card:hover { box-shadow: 0 4px 24px rgba(23,79,160,0.10); transform: translateY(-2px); }
  .avatar-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 14px;
  }
  .av-blu   { background: var(--blu-light); color: var(--blu-dark); }
  .av-verde { background: var(--verde-light); color: var(--verde); }
  .av-gold  { background: #fef3e2; color: #8a5500; }
  .av-pink  { background: #fce8f0; color: #952055; }
  .team-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
  .team-role { font-size: 0.82rem; color: var(--testo-muted); margin-bottom: 6px; }
  .team-cert { display: inline-block; background: var(--blu-light); color: var(--blu); font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
  .team-langs { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; margin: 4px 0; }
  .lang-flag { font-size: 0.85rem; }

  /* ── SERVIZI ── */
  #servizi { background: var(--bianco); }
  .servizi-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--grigio-bordo);
    padding-bottom: 0;
  }
  .tab-btn {
    padding: 11px 22px;
    border-radius: 6px 6px 0 0;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--testo-muted);
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
  }
  .tab-btn.active { color: var(--blu); border-bottom: 2px solid var(--blu); }
  .tab-content { display: none; }
  .tab-content.active { display: block; }
  .servizi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .service-features { margin-top: 20px; }
  .feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .feat-dot {
    width: 22px;
    height: 22px;
    background: var(--verde-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--verde);
  }
  .feat-title { font-weight: 600; font-size: 0.92rem; }
  .feat-desc { font-size: 0.85rem; color: var(--testo-muted); margin-top: 2px; }
  .service-image {
    background: var(--grigio);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--testo-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--grigio-bordo);
  }



  /* ── FAMIGLIE OSPITANTI ── */
  #famiglie { background: var(--bianco); }
  .famiglie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
  }
  .famiglie-card {
    border: 1px solid var(--grigio-bordo);
    border-radius: 12px;
    padding: 28px 22px;
    border-top: 4px solid var(--blu);
  }
  .famiglie-card h3 { font-size: 1rem; margin-bottom: 14px; color: var(--blu); }
  .check-list li {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    margin-bottom: 8px;
    align-items: flex-start;
    line-height: 1.5;
  }
  .check-list li::before {
    content: '✓';
    color: var(--verde);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
    margin-top: 1px;
  }

  /* ── SICUREZZA ── */
  #sicurezza { background: var(--grigio); }
  .sicurezza-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 40px;
  }
  .sic-card {
    background: var(--bianco);
    border-radius: 12px;
    border: 1px solid var(--grigio-bordo);
    padding: 26px 24px;
  }
  .sic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .sic-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  .sic-blu { background: var(--blu-light); }
  .sic-verde { background: var(--verde-light); }
  .sic-gold { background: #fef3e2; }
  .risk-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.87rem;
  }
  .risk-label {
    font-weight: 600;
    color: var(--testo);
    flex-shrink: 0;
    min-width: 90px;
    font-size: 0.82rem;
  }
  .risk-action { color: var(--testo-muted); }
  .ads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }
  .ads-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blu-light);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blu-dark);
  }

  /* ── TESTIMONIANZE ── */
  #testimonianze { background: var(--blu-dark); color: white; }
  #testimonianze h2 { color: white; }
  #testimonianze .section-label { color: rgba(255,255,255,0.6); }
  .testim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
  }
  .testim-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 26px 22px;
  }
  .testim-stars { color: #f5a623; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
  .testim-text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.88);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .testim-author {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .testim-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .testim-name { font-size: 0.85rem; font-weight: 700; color: white; }
  .testim-school { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

  /* ── PA ── */
  #pa { background: var(--bianco); }
  .pa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
  }
  .pa-highlight {
    background: var(--blu-light);
    border-radius: 12px;
    border: 1px solid #c5d5f0;
    padding: 28px 26px;
  }
  .pa-highlight h3 { color: var(--blu-dark); font-size: 1.05rem; margin-bottom: 18px; }
  .pa-cert-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .pa-cert-icon {
    width: 32px;
    height: 32px;
    background: var(--blu);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .client-tag {
    background: var(--grigio);
    border: 1px solid var(--grigio-bordo);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--testo-muted);
    text-align: center;
  }
  .pa-docs {
    margin-top: 28px;
  }
  .doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--grigio);
    border-radius: 7px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .doc-item:hover { background: var(--blu-light); }
  .doc-icon {
    width: 30px;
    height: 30px;
    background: var(--blu);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .doc-name { font-weight: 600; flex: 1; }
  .doc-dl { color: var(--blu); font-size: 0.78rem; font-weight: 700; }

  /* ── PORTALE ── */
  #portale {
    background: var(--verde);
    color: white;
    padding: 56px 0;
  }
  .portale-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
  }
  #portale h2 { color: white; font-size: 1.5rem; }
  #portale p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
  .btn-portale {
    display: inline-block;
    background: white;
    color: var(--verde);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.2s;
  }
  .btn-portale:hover { transform: translateY(-2px); }
  .portale-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  .port-feat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
  }

  /* ── CONTATTI ── */
  #contatti { background: var(--grigio); }
  .contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
  }
  .contact-card {
    background: var(--bianco);
    border: 1px solid var(--grigio-bordo);
    border-radius: 12px;
    padding: 28px 24px;
  }
  .contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    background: var(--blu-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--blu);
  }
  .contact-label { font-size: 0.78rem; color: var(--testo-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
  .contact-value { font-weight: 600; font-size: 0.95rem; margin-top: 2px; }
  .map-placeholder {
    background: var(--grigio);
    border: 2px dashed var(--grigio-bordo);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--testo-muted);
    font-size: 0.88rem;
    text-align: center;
    padding: 20px;
  }

  /* ── FOOTER ── */
  footer {
    background: #0d1a33;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 24px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
  }
  footer h4 { color: white; font-size: 0.9rem; margin-bottom: 14px; }
  footer li { margin-bottom: 7px; }
  footer a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: color 0.2s; }
  footer a:hover { color: white; }
  .footer-brand { font-weight: 700; font-size: 1.1rem; color: white; margin-bottom: 8px; }
  .footer-tagline { font-size: 0.83rem; line-height: 1.6; max-width: 260px; }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
  }
  .iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    margin-top: 14px;
  }


  /* ── PROGRAMMI ── */
  #programmi { background: var(--grigio); }
  .prog-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
    border-bottom: 2px solid var(--grigio-bordo);
    flex-wrap: wrap;
  }
  .prog-tab-btn {
    padding: 10px 20px;
    border-radius: 6px 6px 0 0;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--testo-muted);
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
  }
  .prog-tab-btn.active { color: var(--blu); border-bottom: 2px solid var(--blu); }
  .prog-tab-content { display: none; }
  .prog-tab-content.active { display: block; }
  .prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
  }
  .prog-card {
    background: var(--bianco);
    border: 1px solid var(--grigio-bordo);
    border-radius: 10px;
    overflow: hidden;
  }
  .prog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
  }
  .prog-card-header:hover { background: #edf4ff !important; }
  .prog-card-title { font-weight: 700; font-size: 0.95rem; color: var(--testo); }
  .prog-card-meta { font-size: 0.8rem; color: var(--testo-muted); margin-top: 3px; }
  .prog-card-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blu);
    white-space: nowrap;
    margin-left: 12px;
  }
  .prog-card-arrow {
    font-size: 0.75rem;
    color: var(--testo-muted);
    margin-left: 8px;
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .prog-card.open .prog-card-arrow { transform: rotate(180deg); }
  .prog-card-body {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid var(--grigio-bordo);
  }
  .prog-card.open .prog-card-body { display: block; }
  .prog-day {
    margin-top: 14px;
  }
  .prog-day-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--blu);
    margin-bottom: 4px;
  }
  .prog-day-text {
    font-size: 0.83rem;
    color: var(--testo-muted);
    line-height: 1.6;
  }
  .prog-includes {
    margin-top: 14px;
    background: var(--blu-light);
    border-radius: 8px;
    padding: 12px 16px;
  }
  .prog-includes-title { font-weight: 700; font-size: 0.82rem; color: var(--blu-dark); margin-bottom: 6px; }
  .prog-includes ul { padding-left: 16px; list-style: disc; }
  .prog-includes li { font-size: 0.8rem; color: var(--testo-muted); margin-bottom: 3px; }
  .prog-request-btn {
    display: inline-block;
    margin-top: 14px;
    background: var(--blu);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s;
  }
  .prog-request-btn:hover { background: var(--blu-dark); }
  @media (max-width: 900px) {
    .prog-grid { grid-template-columns: 1fr; }
  }


  /* ── MODALE POLITICA QUALITÀ ── */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: var(--bianco);
    border-radius: 14px;
    padding: 36px 40px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
  }
  .modal-box h3 { color: var(--blu); margin-bottom: 20px; }
  .modal-box p { font-size: 0.92rem; color: var(--testo-muted); margin-bottom: 14px; line-height: 1.7; }
  .modal-box ul { padding-left: 20px; margin-bottom: 14px; }
  .modal-box li { font-size: 0.92rem; color: var(--testo-muted); margin-bottom: 6px; line-height: 1.6; }
  .modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 1.4rem; cursor: pointer;
    color: var(--testo-muted); line-height: 1;
  }
  .modal-close:hover { color: var(--testo); }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .servizi-tabs {
      flex-wrap: wrap;
      gap: 4px;
      margin-bottom: 24px;
    }
    .tab-btn {
      font-size: 0.8rem;
      padding: 8px 12px;
      flex: 0 0 auto;
    }
  }

  @media (max-width: 768px) {
    .servizi-tabs { flex-wrap: wrap; gap: 4px; margin-bottom: 24px; }
    .tab-btn { font-size: 0.8rem; padding: 8px 12px; flex: 0 0 auto; }
  }

  @media (max-width: 900px) {
    #hero .hero-grid, .chisiamo-grid, .servizi-grid, .pa-grid, .contatti-grid { grid-template-columns: 1fr; }
    .processo-grid { grid-template-columns: repeat(2, 1fr); }
    .processo-grid::before { display: none; }
    .testim-grid { grid-template-columns: 1fr; }
    .famiglie-grid { grid-template-columns: 1fr; }
    .sicurezza-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .portale-inner { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* ── MOBILE HAMBURGER ── */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blu);
    border-radius: 2px;
    transition: all 0.3s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-cta-mobile { display: none; }

  /* ── CERTIF BAR MOBILE ── */
  @media (max-width: 768px) {
    .certif-bar { flex-wrap: wrap; gap: 12px; }
  }

  /* ── MOBILE GENERALE ── */
  @media (max-width: 900px) {
    /* Hamburger visibile, nav-cta desktop nascosto */
    .nav-hamburger { display: flex; }
    .nav-cta { display: none !important; }

    /* Nav links: dropdown verticale */
    #navLinks {
      display: none;
      position: absolute;
      top: 64px;
      left: 0; right: 0;
      background: var(--bianco);
      border-bottom: 2px solid var(--blu);
      flex-direction: column;
      gap: 0;
      padding: 8px 0 16px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.10);
      z-index: 200;
    }
    #navLinks.open { display: flex; }
    #navLinks a {
      padding: 12px 28px;
      font-size: 1rem;
      border-bottom: 1px solid var(--grigio-bordo);
    }
    #navLinks a:last-child { border-bottom: none; }
    .nav-cta-mobile {
      display: block !important;
      background: var(--blu);
      color: var(--bianco) !important;
      border-radius: 6px;
      margin: 12px 24px 0;
      text-align: center;
      font-weight: 700;
      padding: 12px 20px !important;
    }

    /* Hero */
    #hero { padding: 48px 0 40px; }
    .hero-grid { grid-template-columns: 1fr !important; gap: 32px; }
    h1 { font-size: 1.9rem !important; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-badge { font-size: 0.75rem; }

    /* Team */
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* Processo */
    .processo-grid { grid-template-columns: 1fr 1fr !important; }

    /* Titoli sezioni */
    h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.6rem; }
  }

  @media (max-width: 580px) {
    /* Nav */
    nav { position: sticky; top: 0; }

    /* Container padding ridotto */
    .container { padding: 0 16px; }

    /* Hero */
    h1 { font-size: 1.6rem !important; line-height: 1.25; }
    .btn-primary, .btn-secondary { padding: 13px 20px; font-size: 0.9rem; }

    /* Certif bar */
    .certif-item { font-size: 0.72rem; }
    .certif-icon { width: 22px; height: 22px; font-size: 0.7rem; }

    /* Grids a 1 colonna */
    .team-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .processo-grid { grid-template-columns: 1fr !important; }
    .processo-grid::before { display: none; }
    .chisiamo-grid { grid-template-columns: 1fr !important; }

    /* Cards */
    .team-card { padding: 20px 16px; }
    .prog-card, .sic-card { padding: 20px 16px; }

    /* Sezioni */
    section { padding: 48px 0; }

    /* Tab servizi */
    .tab-btn { font-size: 0.75rem; padding: 7px 10px; }

    /* Modale */
    .modal-box { padding: 24px 18px; }

    /* Loghi footer */
    .footer-logos img { height: 38px; }

    /* Titoli */
    h2 { font-size: 1.35rem; }
    .section-title { font-size: 1.35rem; }
    .section-label { font-size: 0.72rem; }
  }

  /* ═══════════════════════════════════════════════════
     UKULELE VIAGGI — TRAVEL DESIGN
     Palette: indigo #1e2d6e → blu #3a5cb8 → azzurro #5a8ed8 → celeste #90c0f0 → lilla #7060d0
  ═══════════════════════════════════════════════════ */
  body { font-family:'Nunito','Trebuchet MS','Segoe UI',Arial,sans-serif; }
  h1,h2,h3,h4 { font-weight:800; }
  h2 { color:#1a2050 !important; }

  /* ── HERO: cielo in full gradient ── */
  #hero { position:relative; padding-bottom:120px !important; overflow:visible; min-height:520px; }
  .hero-wave { position:absolute; bottom:-1px; left:0; right:0; line-height:0; z-index:2; }
  /* Nuvole decorative */
  .cloud-deco { position:absolute; pointer-events:none; z-index:1; }
  #hero h1 { color:#ffffff !important; text-shadow:0 2px 12px rgba(0,0,0,0.18); font-size:clamp(2rem,4.5vw,3rem) !important; }
  #hero p, #hero .stat-desc, #hero .hero-badge { color:rgba(255,255,255,0.92) !important; }
  #hero .stat-num { color:#ffffff !important; font-weight:900 !important; font-size:2.4rem !important; }
  .stat-card { background:rgba(255,255,255,0.15) !important; border:1px solid rgba(255,255,255,0.30) !important;
    border-radius:16px !important; backdrop-filter:blur(4px); }

  /* ── BOTTONI HERO ── */
  .btn-primary { background:#ffffff !important; color:#263d82 !important; border-radius:40px !important;
    font-weight:900 !important; letter-spacing:0.02em;
    box-shadow:0 4px 24px rgba(0,0,0,0.18) !important; transition:transform 0.2s,box-shadow 0.2s; }
  .btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 32px rgba(0,0,0,0.26) !important; }
  .btn-secondary { border-radius:40px !important; color:#ffffff !important; border-color:rgba(255,255,255,0.75) !important; }

  /* ── NAV ── */
  nav { box-shadow:0 2px 20px rgba(58,92,184,0.15); }
  .nav-links a { color:#263d82; }
  .nav-links a:hover { color:#3a5cb8; }
  .nav-cta { background:linear-gradient(135deg,#3a5cb8,#5a8ed8) !important;
    color:#ffffff !important; border-radius:24px !important; font-weight:700 !important; }
  .nav-cta:hover { background:linear-gradient(135deg,#263d82,#3a5cb8) !important; }

  /* ── CERTIF BAR ── */
  #certif { background:#fff; box-shadow:0 4px 28px rgba(58,92,184,0.10); }
  .certif-item { background:var(--grigio); padding:10px 18px; border-radius:40px;
    box-shadow:0 2px 10px rgba(58,92,184,0.10); font-size:0.82rem !important;
    white-space:nowrap; color:#1a2050 !important; transition:transform 0.2s,box-shadow 0.2s; }
  .certif-item:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(58,92,184,0.18); }
  .certif-icon { background:linear-gradient(135deg,#3a5cb8,#5a8ed8) !important; color:#ffffff !important; font-size:0.82rem !important; }

  /* ── SEZIONI ── */
  #chisiamo  { background:#fff; }
  #team      { background:linear-gradient(180deg,#f0f4ff 0%,#e8f2ff 100%); }
  #servizi   { background:#fff; }
  #famiglie  { background:linear-gradient(180deg,#f0f4ff 0%,#e8f2ff 100%); }
  #pa        { background:#fff; }
  #portale   { background:linear-gradient(180deg,#edf2ff 0%,#f4f8ff 100%); }
  #contatti  { background:#fff; }
  #testimonianze { background:linear-gradient(135deg,#1e2d6e 0%,#3a5cb8 50%,#7060d0 100%) !important; }
  #testimonianze * { color:#ffffff !important; }
  #testimonianze .testim-card { background:rgba(255,255,255,0.14) !important;
    border:1px solid rgba(255,255,255,0.25) !important; border-radius:18px !important; }

  /* ── CARD TEAM ── */
  .team-card { border-top:5px solid #3a5cb8 !important; border-radius:20px !important;
    box-shadow:0 4px 20px rgba(58,92,184,0.11) !important; transition:transform 0.25s,box-shadow 0.25s; }
  .team-card:hover { transform:translateY(-4px); box-shadow:0 10px 32px rgba(58,92,184,0.20) !important; }
  .team-name { color:#1a2050 !important; font-weight:800 !important; }
  .team-role { color:#4a5480 !important; }
  .team-card p { color:#4a5480 !important; }
  .team-langs { color:#4a5480 !important; font-weight:600 !important; }
  .avatar-circle { width:70px !important; height:70px !important; font-size:1.3rem !important; }
  .av-blu   { background:#dce8ff !important; color:#263d82 !important; }
  .av-verde { background:#ede8ff !important; color:#5040a0 !important; }
  .av-gold  { background:#dce8ff !important; color:#1e3890 !important; }
  .av-pink  { background:#e8eeff !important; color:#3848a8 !important; }
  .team-cert { background:#eaf2ff !important; color:#263d82 !important; font-weight:700 !important; }

  /* ── PROGRAMMI: card destinazione con gradiente ricco ── */
  .prog-card { border-radius:20px !important; border:none !important; overflow:hidden;
    box-shadow:0 6px 30px rgba(58,92,184,0.14) !important; transition:transform 0.25s,box-shadow 0.25s; }
  .prog-card:hover { transform:translateY(-5px); box-shadow:0 14px 40px rgba(58,92,184,0.22) !important; }
  /* Header: gradiente azzurro → celeste, testo bianco */
  .prog-card-header {
    background: #ffffff !important;
    color: #1a2050 !important; padding:22px 20px !important;
    font-size:1rem !important; font-weight:800 !important;
    min-height:84px; display:flex; align-items:center;
    position:relative; overflow:hidden; border-bottom:none !important;
  }
  .prog-card-header::before { content:''; display:none !important; }
  .prog-card-header::after  { content:''; display:none !important; }
  .prog-card-title { color:#1a2050 !important; font-weight:800 !important; font-size:1rem !important; }
  .prog-card-arrow { color:#3a5cb8 !important; font-size:1.2rem !important; }

  /* Prog-card: bordo blu, interno ghiaccio, testo blu */
  .prog-card { border: 2px solid #3a5cb8 !important; }
  .prog-card-body { background: #edf4ff !important; border-top: 1px solid #b8ccee !important; }
  .prog-card-body * { color: #1a2050 !important; }
  .prog-day-title { color: #263d82 !important; font-weight:700 !important; }
  .prog-card-detail { color: #263d82 !important; }
  .prog-card-info { color: #263d82 !important; }

  /* ── TAB SERVIZI ── */
  .tab-btn { border-radius:30px !important; font-weight:700 !important; color:#4a5480 !important; border:2px solid #c8d4f0 !important; }
  .tab-btn.active { background:linear-gradient(135deg,#3a5cb8,#5a8ed8) !important;
    color:#ffffff !important; border-color:transparent !important; box-shadow:0 4px 18px rgba(58,92,184,0.30) !important; }
  .tab-btn:hover:not(.active) { background:#eaf2ff !important; border-color:#3a5cb8 !important; color:#263d82 !important; }

  /* ── SIC CARD ── */
  .sic-card { border-top:5px solid #3a5cb8 !important; border-radius:18px !important;
    box-shadow:0 4px 18px rgba(58,92,184,0.10) !important; }

  /* ── PORTALE ── */
  #portale p { color:#1a2050 !important; font-size:1rem; line-height:1.7; }
  .port-feat { color:#263d82 !important; font-weight:700 !important; }
  .btn-portale { background:linear-gradient(135deg,#3a5cb8,#7060d0) !important;
    color:#ffffff !important; border-radius:40px !important; font-weight:800 !important;
    padding:16px 36px !important; font-size:1.05rem !important;
    box-shadow:0 4px 20px rgba(58,92,184,0.32) !important; transition:transform 0.2s,box-shadow 0.2s; }
  .btn-portale:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(58,92,184,0.42) !important; }

  /* ── FOOTER ── */
  footer { background:linear-gradient(135deg,#1a2060 0%,#263d82 50%,#3a5cb8 100%) !important; }
  footer, footer * { color:#ffffff !important; }
  footer a { color:rgba(255,255,255,0.80) !important; }
  footer a:hover { color:#ffffff !important; }
  .footer-tagline { color:rgba(255,255,255,0.70) !important; }

  /* ── SEZIONE PA / CONTATTI / CHISIAMO ── */
  .section-label { color:#3a5cb8 !important; font-weight:800 !important; }
  .value-icon { font-size:1.8rem !important; }
  .value-item h4 { color:#1a2050 !important; }
  .value-item p  { color:#4a5480 !important; }

  /* ── SCROLL ── */
  section { scroll-margin-top:80px; }


  /* ── FEEDBACK CLIENTI (sezione nascosta) ── */
  #feedback-clienti { display: none; background: var(--grigio); padding: 64px 0; }
  #feedback-clienti.visibile { display: block; }
  .feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  @media (max-width: 768px) { .feedback-grid { grid-template-columns: 1fr; } }
  .feedback-intro h2 { font-size: 1.7rem; margin-bottom: 12px; }
  .feedback-intro p { color: var(--testo-muted); font-size: 1rem; line-height: 1.7; }
  .feedback-form { background: var(--bianco); border-radius: 14px; padding: 32px; border: 1px solid var(--grigio-bordo); box-shadow: 0 2px 16px rgba(23,79,160,0.07); }
  .feedback-form h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--blu); }
  .form-row { margin-bottom: 16px; }
  .form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
  .form-row input, .form-row select, .form-row textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--grigio-bordo); border-radius: 8px; font-size: 0.92rem; font-family: inherit; background: var(--grigio-chiaro); color: var(--testo-principale); transition: border-color 0.2s; }
  .form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--blu); background: white; }
  .form-row textarea { resize: vertical; min-height: 110px; }
  .form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .stelle-wrap { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin: 6px 0 4px; }
  .stelle-wrap input[type=radio] { display: none; }
  .stelle-wrap label { font-size: 2rem; cursor: pointer; color: #ccc; transition: color 0.15s; }
  .stelle-wrap input[type=radio]:checked ~ label { color: #f5c518; }
  .stelle-wrap label:hover, .stelle-wrap label:hover ~ label { color: #f5c518; }
  .btn-feedback { background: var(--blu); color: white; border: none; padding: 12px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px; transition: background 0.2s; }
  .btn-feedback:hover { background: #0f3a7a; }


/* ============================================================
   AGGIUNTE PER IL SITO MULTIPAGINA (2026)
   ============================================================ */

/* voce di menu della pagina in cui ci si trova */
.nav-links a.attivo { color: var(--blu); font-weight: 800; }

/* ── BRICIOLE DI PANE ── */
.briciole-barra { background: var(--grigio); border-bottom: 1px solid var(--grigio-bordo); }
.briciole {
  font-size: 0.82rem;
  color: var(--testo-muted);
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.briciole a { color: var(--blu); }
.briciole a:hover { text-decoration: underline; }
.briciole .sep { color: var(--grigio-bordo); }

/* ── INTESTAZIONE DI PAGINA ── */
.pagina-testa { padding: 48px 0 8px; }
.pagina-testa h1 { margin-bottom: 10px; }
.pagina-testa .sottotitolo { color: var(--testo-muted); font-size: 1.02rem; max-width: 760px; }
section.prima { padding-top: 32px; }

/* ── PAGINA PROGRAMMA ── */
.prog-pagina-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 14px 0 6px;
  font-size: 0.9rem;
  color: var(--testo-muted);
}
.prog-pagina-meta .prezzo {
  background: var(--verde-light);
  color: var(--blu-dark);
  font-weight: 800;
  border-radius: 6px;
  padding: 4px 12px;
}
.prog-itinerario { margin-top: 22px; }
.prog-itinerario .prog-day { cursor: default; }
.prog-colonne { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.prog-lato {
  background: var(--grigio);
  border: 1px solid var(--grigio-bordo);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 90px;
}
.prog-lato h2 { font-size: 1.05rem; margin-bottom: 8px; }
.prog-lato p { font-size: 0.88rem; color: var(--testo-muted); }

/* fascia dei programmi correlati e degli elenchi di schede */
.schede-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.scheda {
  display: block;
  background: var(--bianco);
  border: 1px solid var(--grigio-bordo);
  border-radius: 10px;
  padding: 18px 20px;
  transition: box-shadow .15s, transform .15s;
}
.scheda:hover { box-shadow: 0 6px 20px rgba(26,32,80,0.10); transform: translateY(-2px); }
.scheda .titolo { font-weight: 800; color: var(--testo); margin-bottom: 4px; }
.scheda .meta { font-size: 0.83rem; color: var(--testo-muted); }
.scheda .prezzo { font-size: 0.86rem; font-weight: 800; color: var(--blu); margin-top: 8px; }
.scheda .freccia { color: var(--blu); font-weight: 700; font-size: 0.85rem; margin-top: 10px; }

/* ── MODULI (preventivo e feedback) ── */
.modulo { max-width: 680px; }
.modulo .campo { margin-bottom: 14px; }
.modulo label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 5px; }
.modulo input[type=text], .modulo input[type=email], .modulo input[type=tel],
.modulo select, .modulo textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--testo);
  background: var(--bianco);
  border: 1px solid var(--grigio-bordo);
  border-radius: 6px;
  padding: 10px 12px;
}
.modulo textarea { min-height: 130px; resize: vertical; }
.modulo input:focus, .modulo select:focus, .modulo textarea:focus { outline: 2px solid var(--blu); outline-offset: 1px; }
.modulo .due { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modulo .consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; margin: 18px 0; }
.modulo .consenso input { margin-top: 3px; }
.modulo .consenso label { font-weight: 400; margin: 0; }
.modulo .obbligatorio { color: #b3261e; }
.modulo .nota { font-size: 0.82rem; color: var(--testo-muted); margin-top: 12px; }
.modulo .esito { margin-top: 14px; font-size: 0.9rem; font-weight: 700; }
.modulo .esito.errore { color: #b3261e; }
/* il campo trappola per i robot non deve vedersi ne' essere raggiungibile */
.modulo .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── PAGINE DI TESTO (privacy, politiche, grazie, 404) ── */
.testo-pagina { max-width: 800px; }
.testo-pagina h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.testo-pagina h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.testo-pagina p, .testo-pagina li { font-size: 0.93rem; color: var(--testo-muted); }
.testo-pagina ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.testo-pagina ul li { margin-bottom: 4px; }
.testo-pagina strong { color: var(--testo); }

/* ── RESPONSIVE DELLE AGGIUNTE ── */
@media (max-width: 860px) {
  .prog-colonne { grid-template-columns: 1fr; }
  .prog-lato { position: static; }
  .modulo .due { grid-template-columns: 1fr; }
}
