/* Impaginazione originale, con menu adattabile e correzioni di leggibilità. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #FAFAFA;
      --surface:  #FFFFFF;
      --text:     #30343B;
      --muted:    #666666;
      --subtle:   #666666;
      --accent:   #0055CC;
      --accent-h: #0044AA;
      --border:   #E8E8E6;
      --radius:   12px;
      --gold:     #C8A95B;
    }

    html { scroll-behavior: smooth; }
    body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

    /* ── NAV ── */
    #main-nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: rgba(250,250,250,0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid transparent;
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    .nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
    .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
    .nav-logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
    .nav-logo-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; display: inline-flex; align-items: flex-end; }
    .nav-logo-name .d { color: var(--accent); }
    .nav-links { display: flex; align-items: center; gap: 6px; }
    .nav-link { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; transition: color 0.15s, background 0.15s; }
    .nav-link:hover { color: var(--text); background: #F0F0EE; }
    .nav-right { display: flex; align-items: center; gap: 8px; }
    .btn-ghost { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: 8px; transition: background 0.15s; }
    .btn-ghost:hover { background: #F0F0EE; }
    .btn-primary { font-size: 14px; font-weight: 600; color: #fff; background: var(--accent); text-decoration: none; padding: 8px 18px; border-radius: 8px; transition: background 0.15s, transform 0.1s; }
    .btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }

    /* ── HERO ── */
    .hero { padding: 140px 24px 80px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
    .hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(0,85,204,0.08); padding: 5px 12px; border-radius: 20px; margin-bottom: 24px; letter-spacing: 0.3px; }
    .hero-badge > span:first-child { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
    .hero h1 { font-size: 52px; font-weight: 900; line-height: 1.08; letter-spacing: -2px; color: var(--text); margin-bottom: 20px; }
    .hero h1 em { font-style: normal; color: var(--accent); }
    .hero-sub { font-size: 17px; color: var(--muted); line-height: 1.65; margin-bottom: 36px; max-width: 440px; }
    .hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
    .btn-hero { font-size: 15px; font-weight: 700; color: #fff; background: var(--text); text-decoration: none; padding: 13px 26px; border-radius: 10px; transition: background 0.15s, transform 0.1s; }
    .btn-hero:hover { background: #414750; transform: translateY(-1px); }
    .btn-hero-ghost { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 13px 20px; border-radius: 10px; border: 1px solid var(--border); transition: all 0.15s; }
    .btn-hero-ghost:hover { color: var(--text); border-color: #ccc; background: var(--surface); }
    .hero-note { font-size: 12px; color: var(--subtle); margin-top: 14px; }

    /* ── SECTION SHARED ── */
    section { padding: 80px 24px; }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
    .section-title { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 8px; }
    .section-title em { font-style: normal; color: var(--accent); }
    .section-sub { font-size: 17px; color: var(--muted); margin-bottom: 52px; }

/* ── FUNZIONALITÀ: UN MOSAICO DI STRUMENTI ── */
    .bento { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; align-items: stretch; }
    .bento-tile { position: relative; isolation: isolate; min-width: 0; padding: 26px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; transition: border-color .2s, box-shadow .2s; }
    .bento-tile:hover, .bento-tile:focus-within { border-color: #BCC9DB; box-shadow: 0 6px 20px rgba(48,52,59,.05); }
    #features .section-inner { max-width: 1200px; }
    .feature-mosaic {
      grid-template-areas:
        "prenotazioni prenotazioni prenotazioni prenotazioni prenotazioni abbonamenti abbonamenti abbonamenti spiaggia spiaggia spiaggia spiaggia"
        "servizi servizi servizi squadra squadra squadra squadra squadra spiaggia spiaggia spiaggia spiaggia"
        "risultati risultati risultati risultati connessioni connessioni connessioni connessioni connessioni guida guida guida";
    }
    [data-feature="prenotazioni"] { grid-area: prenotazioni; }
    [data-feature="abbonamenti"] { grid-area: abbonamenti; }
    [data-feature="spiaggia"] { grid-area: spiaggia; background: #F8F4E9; border-color: #E5D9BD; }
    [data-feature="servizi"] { grid-area: servizi; }
    [data-feature="squadra"] { grid-area: squadra; }
    [data-feature="risultati"] { grid-area: risultati; }
    [data-feature="connessioni"] { grid-area: connessioni; }
    [data-feature="guida"] { grid-area: guida; }
    .feature-tile-content { flex: 1; min-width: 0; }
    .feature-tile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding-right: 18px; }
    .feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; background: #F0F4FA; color: var(--accent); }
    .feature-glyph { width: 23px; height: 23px; flex: 0 0 auto; }
    .feature-kicker { font-size: 10px; font-weight: 750; line-height: 1.45; letter-spacing: 1px; color: var(--muted); }
    .bento-title { margin-bottom: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.65px; line-height: 1.18; text-wrap: balance; }
    .bento-title a { color: inherit; text-decoration: none; }
    .bento-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
    .feature-open { position: absolute; top: 31px; right: 22px; width: 17px; height: 17px; color: var(--muted); transition: color .2s, transform .2s; }
    .bento-title a:hover .feature-open { color: var(--accent); transform: translate(2px,-2px); }
    .bento-desc { font-size: 14px; line-height: 1.7; color: var(--muted); }
    .tile-blue { background: var(--accent); border-color: var(--accent); color: #fff; padding: 32px; }
    .tile-blue .bento-title { font-size: clamp(30px,2.8vw,38px); letter-spacing: -1.2px; }
    .tile-blue .bento-desc { color: #fff; font-size: 15px; }
    .tile-blue .feature-kicker, .tile-blue .feature-open { color: #fff; }
    .tile-blue .feature-icon { background: rgba(255,255,255,.16); color: #fff; }
    .tile-blue .bento-title a:hover .feature-open { color: #fff; }
    .tile-blue a:focus-visible, .tile-dark a:focus-visible { outline-color: #fff; }
    [data-feature="spiaggia"] .feature-tile-content { flex: 0 0 auto; }
    [data-feature="spiaggia"] .bento-title, [data-feature="squadra"] .bento-title, [data-feature="connessioni"] .bento-title { font-size: 29px; letter-spacing: -.9px; }
    [data-feature="spiaggia"] .feature-icon { background: #fff; }
    [data-feature="spiaggia"] .feature-topics { border-color: #E5D9BD; }
    [data-feature="spiaggia"] .feature-topics a { background: #fff; }
    .feature-beach-art { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 28px 0 8px; }
    .feature-beach-art svg { display: block; width: 100%; max-width: 320px; height: auto; transform: rotate(-3deg); }
    .tile-dark { background: var(--text); border-color: var(--text); color: #fff; }
    .tile-dark .feature-icon { color: #E3C987; background: rgba(200,169,91,.13); }
    .tile-dark .bento-desc, .tile-dark .feature-kicker, .tile-dark .feature-open { color: #E0E3E8; }
    .tile-dark .bento-title a:hover .feature-open { color: #fff; }
    .tile-guide { background: #F0F4FA; border-color: #C3D2E8; }
    .tile-guide .feature-icon { background: #fff; }
    .feature-topics { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
    .feature-topics li { min-width: 0; max-width: 100%; }
    .feature-topics a { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; padding: 6px 10px; border-radius: 7px; background: #F0F4FA; color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; }
    .feature-topics a:hover { background: #E2EBF8; text-decoration: underline; text-underline-offset: 3px; }
    .tile-blue .feature-topics { grid-column: 1 / -1; border-color: rgba(255,255,255,.28); }
    .tile-dark .feature-topics { border-color: rgba(255,255,255,.2); }
    .tile-blue .feature-topics a, .tile-dark .feature-topics a { background: rgba(255,255,255,.12); color: #fff; }
    .tile-blue .feature-topics a:hover, .tile-dark .feature-topics a:hover { background: rgba(255,255,255,.2); }
    .tile-guide .feature-topics { border-color: #C3D2E8; }
    .tile-guide .feature-topics a { background: #fff; }
    .features-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 24px; }
    .features-footer p { font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 680px; }
    .features-guide { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--accent); text-underline-offset: 4px; }
    .features-guide .feature-glyph { width: 17px; height: 17px; }
    @media (max-width: 1100px) {
      .feature-mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: none; }
      .feature-mosaic > [data-feature] { grid-area: auto; }
      .bento-tile { padding: 25px; }
      .tile-blue .bento-title { font-size: 29px; }
      [data-feature="spiaggia"] .bento-title, [data-feature="squadra"] .bento-title, [data-feature="connessioni"] .bento-title { font-size: 24px; }
      [data-feature="spiaggia"] .feature-tile-content { flex: 1; }
      .feature-beach-art { display: none; }
      .feature-topics a { min-height: 44px; }
      .features-footer { align-items: flex-start; gap: 16px; }
    }
    @media (max-width: 600px) {
      .feature-mosaic { grid-template-columns: minmax(0,1fr); }
      .bento-tile { padding: 23px; border-radius: 18px; }
      .feature-tile-top { margin-bottom: 18px; }
      .bento-title, .tile-blue .bento-title, [data-feature="spiaggia"] .bento-title, [data-feature="squadra"] .bento-title, [data-feature="connessioni"] .bento-title { font-size: 25px; }
      .features-footer { flex-direction: column; gap: 8px; }
    }

    /* Tre passaggi illustrati, con icone sempre leggibili anche senza movimento. */
    .steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: stretch; list-style: none; }
    .step { min-width: 0; padding: 22px 22px 26px; border: 1px solid #E5DECF; border-radius: 22px; background: #fff; box-shadow: 0 6px 20px rgba(48,52,59,.025); }
    .step-visual { position: relative; display: flex; justify-content: center; height: 148px; margin-bottom: 24px; border-radius: 14px; background: #F0F5FC; }
    .step:nth-child(2) .step-visual { background: #FAF5E9; }
    .step-num { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #DCE5F3; border-radius: 50%; background: #fff; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .5px; }
    .step-illustration { width: min(240px,100%); height: 148px; flex: 0 1 auto; }
    .step-title { font-size: 22px; font-weight: 800; letter-spacing: -.55px; margin-bottom: 10px; line-height: 1.25; text-wrap: balance; }
    .step-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
    @media (prefers-reduced-motion: no-preference) {
      .step-visual.section-entered .step-person { animation: step-rise 1.3s ease-out both; }
      .step-visual.section-entered .step-confirm { transform-box: fill-box; transform-origin: center; animation: step-confirm 1.4s cubic-bezier(.2,.8,.2,1) both; }
      .step-visual.section-entered .step-check { stroke-dasharray: 1; animation: step-draw 1.8s ease-out both; }
      .step-visual.section-entered .step-cells > rect { transform-box: fill-box; transform-origin: center; animation: step-place 1.2s cubic-bezier(.2,.8,.2,1) both; }
      .step-visual.section-entered .step-cells > rect:nth-child(2n) { animation-delay: .12s; }
      .step-visual.section-entered .step-cells > rect:nth-child(3n) { animation-delay: .24s; }
      .step-visual.section-entered .step-pencil { animation: step-pencil 1.6s ease-in-out both; }
      .step-visual.section-entered .step-booking { animation: step-rise 1.2s ease-out both; }
      .step-visual.section-entered .step-sun { transform-box: fill-box; transform-origin: center; animation: step-sun 1.8s ease-out both; }
    }
    @keyframes step-rise { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes step-confirm { 0%,25% { opacity: 0; transform: scale(.7); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
    @keyframes step-draw { 0%,35% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
    @keyframes step-place { from { opacity: .2; transform: translateY(7px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
    @keyframes step-pencil { 0%,100% { transform: translate(0,0); } 45% { transform: translate(-6px,4px); } }
    @keyframes step-sun { from { opacity: .3; transform: rotate(-25deg) scale(.8); } to { opacity: 1; transform: rotate(0) scale(1); } }

    /* ── PRICING ── */
    .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
    .plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; transition: border-color 0.2s, transform 0.2s; }
    .plan-card:hover { transform: translateY(-2px); border-color: #ccc; }
    .plan-card.popular { border: 2px solid var(--accent); background: linear-gradient(165deg, #F0F6FF, #fff 58%); box-shadow: 0 12px 34px rgba(0,85,204,.08); }
    .plan-card.popular:hover { border-color: var(--accent); }
    .popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.3px; }
    .plan-name { font-size: 14px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
    .plan-price { font-size: 44px; font-weight: 900; letter-spacing: -2px; color: var(--text); line-height: 1; }
    .plan-price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
    .plan-period { font-size: 13px; color: var(--muted); margin-bottom: 24px; margin-top: 12px; line-height: 1.5; }
    .plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; line-height: 1.5; }
    .plan-features li { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
    .plan-features li::before { content: "✓"; font-weight: 700; color: var(--accent); font-size: 13px; }
    .plan-features li:first-child { font-weight: 750; }
    .btn-plan { display: block; text-align: center; font-size: 14px; font-weight: 700; padding: 12px; border-radius: 9px; text-decoration: none; transition: all 0.15s; }
    .btn-plan-outline { border: 1.5px solid var(--border); color: var(--text); }
    .btn-plan-outline:hover { border-color: var(--text); }
    .btn-plan-fill { background: var(--accent); color: #fff; border: 1.5px solid transparent; }
    .btn-plan-fill:hover { background: var(--accent-h); }

    /* Comparison keeps one semantic table in every viewport. Only its region scrolls. */
    .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    .plan-shared { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; padding: 20px 24px; border: 1px solid #E2E8F0; border-radius: 12px; background: #F4F7FB; }
    .plan-shared-title { font-size: 13px; font-weight: 750; }
    .plan-shared ul { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; }
    .plan-shared li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; }
    .plan-shared li > span:first-child { color: var(--accent); font-weight: 800; }
    .plan-comparison { margin-top: 60px; }
    .comparison-intro { max-width: 740px; margin-bottom: 24px; }
    .comparison-intro h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 850; line-height: 1.2; letter-spacing: -.8px; margin-bottom: 10px; }
    .comparison-intro p { font-size: 14px; color: var(--muted); line-height: 1.7; }
    .comparison-scroll-hint { display: none; font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
    .comparison-scroll { position: relative; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #DCE3ED; border-radius: 14px; scrollbar-color: #A6BBDD #F1F5FB; }
    .comparison-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
    .comparison-table { width: 100%; min-width: 620px; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 13px; line-height: 1.5; }
    .comparison-table .comparison-feature { width: 43%; }
    .comparison-table th, .comparison-table td { padding: 15px 20px; border-bottom: 1px solid #E8ECF2; vertical-align: middle; }
    .comparison-table thead th { font-size: 14px; font-weight: 800; padding-top: 22px; padding-bottom: 22px; background: #fff; }
    .comparison-table th[scope="row"] { text-align: left; font-weight: 500; background: #fff; }
    .comparison-table tr > :first-child { text-align: left; }
    .comparison-table td, .comparison-table th[scope="col"] { text-align: center; }
    .comparison-table thead th:first-child { text-align: left; }
    .comparison-table tr > :nth-child(3) { background: #F0F6FF; }
    .comparison-table thead th:nth-child(3) { color: var(--accent); box-shadow: inset 0 3px var(--accent); }
    .comparison-table .comparison-group th { padding: 12px 20px; background: #F5F7FA; color: #586577; font-size: 11px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
    .comparison-table tbody:last-child tr:last-child > * { border-bottom: 0; }
    .comparison-included { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; color: var(--accent); background: #EAF2FE; font-size: 14px; font-weight: 800; }
    .comparison-excluded { color: #7B8696; font-size: 18px; }
    .comparison-notes { display: grid; gap: 9px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
    .comparison-multisite { margin-top: 9px; padding-top: 16px; border-top: 1px solid var(--border); }
    .comparison-multisite a { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
    @media (max-width: 700px) {
      .plan-comparison { margin-top: 44px; }
      .plan-shared { align-items: flex-start; padding: 20px; }
      .plan-shared ul { flex-direction: column; gap: 10px; }
      .comparison-scroll-hint { display: block; }
      .comparison-table { min-width: 544px; font-size: 12px; }
      .comparison-table .comparison-feature { width: 148px; }
      .comparison-table th, .comparison-table td { padding: 13px 14px; }
      .comparison-table th[scope="row"], .comparison-table thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 #DCE3ED; }
      .comparison-table .comparison-group th { padding: 12px 14px; }
    }

    /* ── FINAL CTA ── */
    .cta-section { position: relative; isolation: isolate; background: var(--accent); border-radius: 20px; padding: 72px 40px; text-align: center; max-width: 1100px; margin: 0 auto; }
    .cta-section h2 { font-size: 42px; font-weight: 900; letter-spacing: -1.5px; color: #fff; margin-bottom: 14px; line-height: 1.1; }
    .cta-section p { font-size: 16px; color: #fff; margin-bottom: 36px; }
    .cta-section .btn-cta { display: inline-block; font-size: 16px; font-weight: 700; color: var(--accent); background: #fff; text-decoration: none; padding: 15px 36px; border-radius: 10px; transition: transform 0.15s, background 0.15s; }
    .cta-section .btn-cta:hover { background: #f0f0f0; transform: translateY(-1px); }
    .cta-note { font-size: 12px; color: #fff; margin-top: 14px; }

    /* ── FOOTER ── */
    footer { padding: 40px 24px; border-top: 1px solid var(--border); }
    .footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
    .footer-logo { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.4px; display: inline-flex; align-items: center; gap: 8px; }
    .footer-logo svg { width: 22px; height: 22px; }
    .footer-logo .d { color: var(--accent); }
    .footer-links { display: flex; gap: 20px; }
    .footer-link { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
    .footer-link:hover { color: var(--text); }
    .footer-copy { font-size: 12px; color: var(--subtle); }

    /* Onde decorative tra le sezioni: lo scorrimento resta quello del browser. */
    :root { --sea-wash: #F1F6FD; --sand-wash: #FBF8F1; }
    #features { background: var(--sea-wash); }
    #come-funziona { background: var(--sand-wash); }
    .section-transition { height: clamp(40px,6vw,88px); pointer-events: none; }
    .section-transition svg { display: block; width: 100%; height: 100%; }
    .transition-sea { background: var(--bg); --wave-to: var(--sea-wash); --wave-wash: #E1EBFA; }
    .transition-sand { background: var(--sea-wash); --wave-to: var(--sand-wash); --wave-wash: #E8EEF5; }
    .transition-shore { background: var(--sand-wash); --wave-to: var(--bg); --wave-wash: #F1E8D4; }
    .transition-sand svg { transform: scaleX(-1); }
    .transition-fill { fill: var(--wave-to); }
    .transition-wash { fill: var(--wave-wash); }
    .transition-line { fill: none; stroke: var(--gold); stroke-width: 1; stroke-opacity: .45; vector-effect: non-scaling-stroke; }
    .closing-section { padding-top: 20px; }
    .cta-waves { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; z-index: -1; }
    .cta-section a:focus-visible { outline-color: #fff; }
    @media (prefers-reduced-motion: no-preference) {
      [data-section-reveal].section-entered { animation: section-arrive 650ms cubic-bezier(.2,.7,.2,1) both; }
      [data-section-reveal]:focus-within { animation: none; }
    }
    @keyframes section-arrive {
      from { opacity: .35; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media print {
      [data-section-reveal], .step-illustration * { animation: none !important; }
      .section-transition, .cta-waves { display: none; }
    }

/* Correzioni condivise: stessi colori, contenitori allineati e navigazione completa. */
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body { min-width: 0; }
a, button, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--text); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
#main-nav { background: rgba(250,250,250,.97); border-bottom-color: var(--border); }
.nav-inner { position: relative; max-width: 1152px; height: 68px; gap: 20px; }
.nav-logo { flex: 0 0 auto; }
.nav-logo-name { font-size: 20px; }
.nav-links { gap: 0; }
.nav-link { padding: 8px 10px; white-space: nowrap; }
.nav-right { flex: 0 0 auto; }
.nav-right > .btn-primary, .nav-right > .btn-ghost, .language-select { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; }
.nav-right > .btn-primary { padding: 5px 12px; border: 1px solid #fff; box-shadow: 0 0 0 1px var(--accent); white-space: nowrap; }
.nav-right > .btn-ghost { padding: 5px 10px; border: 1px solid var(--border); }
.language-select { font: 600 12px 'Inter', sans-serif; background: #F0F0EE; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 7px; cursor: pointer; }
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; top: calc(100% + 8px); right: 16px; left: 16px; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 12px; display: grid; gap: 4px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(48,52,59,.12); }
.mobile-menu-panel > a { color: var(--text); font-size: 15px; font-weight: 600; padding: 10px 12px; min-height: 44px; text-decoration: none; border-radius: 8px; }
.mobile-menu-panel > a:hover { background: #F0F0EE; }
.mobile-language { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 14px; }
.mobile-language .language-select { min-height: 44px; }
.hero-section { padding: 0; }
.hero { max-width: 1152px; padding: 140px 24px 76px; grid-template-columns: minmax(0, 1.05fr) minmax(0,1fr); gap: 52px; }
.hero-content, .hero-visual { min-width: 0; }
.hero h1 { font-size: clamp(38px, 4vw, 48px); text-wrap: balance; }
.hero-visual { margin: 0; width: 100%; max-width: 480px; justify-self: end; }
.hero-sub { max-width: 470px; }
.hero-note { color: var(--muted); }
.language-notice { font-size: 12px; max-width: 440px; }
.section-inner { max-width: 1104px; }
.section-title { text-wrap: balance; }
/* Le due parti dei titoli condividono lo stesso a capo in tutte le lingue.
   Ogni parte può restringersi e andare a capo senza tagli su telefono. */
.hero h1 > span, .hero h1 > em,
.section-title > span, .section-title > em { display: block; }
.hero h1 > br, .section-title > br { display: none; }
.section-sub { max-width: 720px; margin-bottom: 40px; }
.plan-name { line-height: 1.4; }
.pricing-grid { align-items: stretch; gap: 20px; padding-top: 8px; }
.plan-card { display: flex; flex-direction: column; min-width: 0; border-width: 2px; padding: 30px 26px; }
.plan-card .btn-plan { margin-top: auto; }
.plan-features li { align-items: flex-start; }
.plan-features li::before { flex-shrink: 0; }
.plan-period { min-height: 3.2em; }
.popular-badge { max-width: calc(100% - 24px); }
.footer-links { flex-wrap: wrap; gap: 8px 20px; }
.footer-link { display: inline-flex; min-height: 32px; align-items: center; }
.footer-copy { color: var(--muted); }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { display: flex; }
  .hero { gap: 32px; }
  .plan-card { padding: 28px 20px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 112px; gap: 36px; }
  .hero-content { max-width: 620px; }
  .hero h1 { font-size: clamp(38px, 6.8vw, 48px); }
  .hero-visual { justify-self: center; max-width: 480px; }
  section { padding: 60px 24px; }
  .section-title { font-size: 34px; }
  .pricing-grid { grid-template-columns: minmax(0,1fr); max-width: 560px; margin: 0 auto; gap: 28px; }
  .plan-card { padding: 28px; }
  .plan-period { min-height: 0; margin-bottom: 22px; }
  .steps { grid-template-columns: minmax(0,1fr); gap: 18px; max-width: 520px; margin: 0 auto; }
  .step { padding: 20px 20px 24px; }
  .step-visual { margin-bottom: 20px; }
  .cta-section { padding: 48px 28px; }
  .cta-waves circle { display: none; }
  .cta-section h2 { font-size: 34px; }
}
@media (max-width: 540px) {
  .nav-inner { padding: 0 16px; gap: 10px; height: 64px; }
  .nav-logo { gap: 5px; }
  .nav-logo-mark { width: 28px; height: 28px; }
  .nav-logo-name { font-size: 18px; }
  .nav-right { gap: 8px; }
  .nav-right > .language-select, .nav-right > .btn-ghost { display: none; }
  .nav-right > .btn-primary { font-size: 13px; min-height: 42px; padding: 6px 10px; }
  .hero { padding: 100px 20px 48px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.3px; }
  .hero-badge { margin-bottom: 20px; }
  .hero-sub { font-size: 16px; margin-bottom: 26px; }
  .hero-actions { gap: 10px; }
  .btn-hero, .btn-hero-ghost { font-size: 14px; padding: 12px 17px; }
  section { padding: 48px 20px; }
  .section-title { font-size: 30px; letter-spacing: -1px; }
  .section-sub { font-size: 16px; margin-bottom: 28px; }
  .cta-section { padding: 38px 22px; }
  .cta-section h2 { font-size: 30px; }
  .cta-section .btn-cta { padding: 13px 22px; max-width: 100%; }
  footer { padding: 28px 20px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-link { min-height: 44px; }
}
@media (max-width: 360px) {
  .nav-inner { padding: 0 12px; gap: 6px; }
  .nav-logo-name { font-size: 16px; }
  .nav-logo-mark { width: 25px; height: 25px; }
  .nav-right { gap: 6px; }
  .nav-right > .btn-primary { font-size: 12px; padding: 6px 8px; }
  .hero h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
