/* Layout: colonna di lettura stretta, bande a tutta larghezza; l'ottotipo (righe di lettere decrescenti) è il motivo ricorrente. */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #13263b;
  --muted: #4d6073;
  --line: #d8e0e8;
  --accent: #0f6b62;
  --accent-ink: #ffffff;
  --soft: #e3f2ef;
  --fix: #d6452b;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 72rem;
  --read: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1722; --surface: #13212f; --ink: #e6edf4; --muted: #a3b3c3; --line: #263849;
    --accent: #5fd3c2; --accent-ink: #0d1722; --soft: #16323a; --fix: #ff7a5e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1722; --surface: #13212f; --ink: #e6edf4; --muted: #a3b3c3; --line: #263849;
  --accent: #5fd3c2; --accent-ink: #0d1722; --soft: #16323a; --fix: #ff7a5e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-data); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 0.7rem; flex-wrap: wrap; }
.brand { min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 750; }
.brand span { font-size: 0.82rem; color: var(--muted); }
.nav { order: 2; display: flex; gap: 0.2rem 0.85rem; flex-wrap: wrap; font-size: 0.9rem; }
@media (min-width: 861px) { .site-head .wrap { flex-wrap: nowrap; } .site-head .btn-primary { white-space: nowrap; } }
.nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.72rem 1.15rem;
  border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem;
  border: 1.5px solid var(--accent); line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); background: transparent; }
.site-head .btn-primary { order: 3; }
.menu-toggle { order: 4; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding-block: 3.5rem 2.5rem; }
.hero-text { display: grid; gap: 1.2rem; min-width: 0; }
.hero-text .lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero figure { margin: 0; position: relative; }
.hero figure img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }

/* Ottotipo */
.optotype { display: flex; align-items: baseline; justify-content: center; gap: clamp(0.6rem, 2vw, 1.6rem);
  font-family: var(--f-display); font-weight: 800; color: var(--ink); opacity: 0.88; padding-block: 1.2rem; overflow: hidden; }
.optotype span:nth-of-type(1) { font-size: 2.6rem; }
.optotype span:nth-of-type(2) { font-size: 2rem; }
.optotype span:nth-of-type(3) { font-size: 1.55rem; }
.optotype span:nth-of-type(4) { font-size: 1.2rem; }
.optotype span:nth-of-type(5) { font-size: 0.95rem; }
.optotype span:nth-of-type(6) { font-size: 0.6rem; }
.optotype span { white-space: nowrap; }
.optotype i { width: 9px; height: 9px; border-radius: 50%; background: var(--fix); display: inline-block; align-self: center; }
.band-line { border-block: 1px solid var(--line); background: var(--surface); }

/* Numeri */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.figures div { background: var(--surface); padding: 1.3rem 1.2rem; display: grid; gap: 0.3rem; }
.figures b { font-family: var(--f-data); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.figures span { font-size: 0.92rem; color: var(--muted); }

/* Sezioni */
.section { padding-block: 3.5rem; }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 1.8rem; max-width: var(--read); }
.section-head p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.tile p { color: var(--muted); }
.tile a.more { font-weight: 600; text-decoration: none; }
.tile a.more::after { content: " →"; }

/* Pagine interne */
.page-head { padding-block: 3rem 1.5rem; }
.page-head .wrap { display: grid; gap: 0.9rem; }
.page-head .lead { font-size: 1.18rem; color: var(--muted); max-width: var(--read); }
.prose { max-width: var(--read); display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.6rem; }
.prose h3 { margin-top: 0.8rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; display: grid; gap: 0.8rem; position: sticky; top: 6rem; }
.side-card img { border-radius: 8px; }
.side-card p { font-size: 0.95rem; color: var(--muted); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-data); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

.note { background: var(--soft); border-radius: 10px; padding: 1rem 1.2rem; font-size: 0.98rem; }

details { border-bottom: 1px solid var(--line); padding-block: 0.9rem; }
details summary { cursor: pointer; font-weight: 650; font-family: var(--f-display); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::after { content: "+"; font-family: var(--f-data); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.6rem; color: var(--muted); }

/* CTA banda */
.cta-band { background: var(--ink); color: var(--bg); }
.cta-band .wrap { padding-block: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: var(--bg); opacity: 0.8; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-band .btn-ghost { color: var(--bg); border-color: var(--bg); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 0.93rem; }
.site-foot .wrap { padding-block: 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-foot h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.site-foot p { color: var(--muted); }
.legal { border-top: 1px solid var(--line); }
.legal .wrap { padding-block: 1rem; font-size: 0.82rem; color: var(--muted); display: block; }

.tel { font-family: var(--f-data); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 860px) {
  .hero .wrap, .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .hero figure { max-width: 26rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .optotype span:nth-of-type(5), .optotype span:nth-of-type(6) { display: none; }
  .brand span { font-size: 0.75rem; }
  .brand { flex: 1 1 0; }
  .brand b { font-size: 1.02rem; }
  .site-head .wrap { gap: 0.5rem; }
  .nav { order: 5; display: none; width: 100%; flex-direction: column; padding-block: 0.5rem; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; font-size: 0.92rem; cursor: pointer; }
  .site-head .btn-primary { padding: 0.5rem 0.9rem; font-size: 0.92rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .15s, border-color .15s, color .15s; }
}

/* Recensioni */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; display: grid; gap: 0.8rem; align-content: space-between; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.review blockquote::before { content: "★★★★★"; display: block; color: var(--accent); letter-spacing: 0.15em; font-size: 0.85rem; margin-bottom: 0.5rem; }
.review figcaption { font-family: var(--f-data); font-size: 0.8rem; color: var(--muted); }
.review-wide { grid-column: span 3; background: var(--soft); border-color: transparent; }
.review-wide blockquote { font-family: var(--f-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 650; line-height: 1.35; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } .review-wide { grid-column: auto; } }

/* Sedi */
.sedi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sede { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; display: grid; gap: 0.45rem; align-content: start; }
.sede .sede-addr { font-weight: 600; }
.sede .sede-when { color: var(--muted); font-size: 0.95rem; }
.sede .btn-row { margin-top: 0.5rem; }
.map-box { grid-column: 1 / -1; width: 100%; }
.map-box iframe { width: 100%; height: 300px; border: 0; border-radius: 10px; margin-top: 0.6rem; }
.map-note { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .sedi { grid-template-columns: 1fr; } }

/* ---- Laser Occhi Puglia: tema colorato ---- */
:root { --sun:#ffb703; --coral:#fb6f5b; --sky:#2bb5e8; --mint:#2ec4a6; --grape:#8b5cf6; --radius:22px; }
body { background: radial-gradient(1200px 500px at 90% -10%, #fff1d6 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #dff6ff 0%, transparent 55%), var(--bg); }
.btn { border-radius: 999px; }
.btn-primary { background: linear-gradient(135deg, var(--coral), #f43f5e); border-color: transparent; color:#fff; box-shadow: 0 6px 18px -8px #f43f5e; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.brand b { background: linear-gradient(90deg, var(--sky), var(--grape), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero { background: linear-gradient(135deg, #e0f7ff 0%, #fff4dc 55%, #ffe4e6 100%); border-bottom: 0; }
.hero h1 span.hl { background: linear-gradient(90deg, var(--sky), var(--grape)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero figure img { border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(19,38,59,.45); transform: rotate(1.5deg); }
.tile { border-radius: var(--radius); border: 0; box-shadow: 0 10px 30px -18px rgba(19,38,59,.35); position: relative; overflow: hidden; }
.tile::before { content:""; position:absolute; inset:0 0 auto; height:6px; background: var(--c, var(--sky)); }
.grid-3 > .tile:nth-child(6n+1) { --c: var(--sky); background: #effaff; }
.grid-3 > .tile:nth-child(6n+2) { --c: var(--coral); background: #fff2f0; }
.grid-3 > .tile:nth-child(6n+3) { --c: var(--sun); background: #fff8e6; }
.grid-3 > .tile:nth-child(6n+4) { --c: var(--mint); background: #ecfbf7; }
.grid-3 > .tile:nth-child(6n+5) { --c: var(--grape); background: #f4f0ff; }
.grid-3 > .tile:nth-child(6n+6) { --c: #f43f5e; background: #fff0f3; }
.tile .ico { font-size: 1.9rem; line-height: 1; display:block; margin-bottom:.4rem; }
.page-head { background: linear-gradient(135deg, #e0f7ff, #f4f0ff 60%, #fff4dc); }
.cta-band { background: linear-gradient(135deg, #0f3d63, #5b21b6 60%, #be185d); }
.side-card { border-radius: var(--radius); border: 0; box-shadow: 0 10px 30px -18px rgba(19,38,59,.35); }
details { border-radius: 16px; }
table { border-radius: 16px; overflow: hidden; }
.videos { display:grid; gap:1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.gallery { display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-bottom: 1.5rem; }
.gallery figure { margin:0; }
.gallery img { width:100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 10px 30px -18px rgba(19,38,59,.45); }
.gallery figcaption { font-size:.85rem; color: var(--muted); margin-top:.4rem; }
.hero figure img { transform: none; box-shadow: none; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 0; height: auto; filter: drop-shadow(0 24px 30px rgba(19,38,59,.3)); }
.ask h3 { margin-bottom:.6rem; }
.ask-form { display:grid; gap:.55rem; }
.ask-form label { font-weight:600; font-size:.92rem; }
.ask-form select, .ask-form textarea, .ask-form input[type=email] { font: inherit; padding:.65rem .8rem; border:1px solid var(--line); border-radius:12px; background: var(--surface); color: var(--ink); width:100%; }
.ask-form .check { font-weight:400; display:flex; gap:.5rem; align-items:flex-start; }
.ask-form .check input { margin-top:.3rem; }
.ask-form .hp { position:absolute; left:-9999px; }
.qa { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 10px 30px -18px rgba(19,38,59,.35); margin: .9rem 0; }
.qa .cat { font-family: var(--f-data); font-size:.72rem; text-transform: uppercase; letter-spacing:.06em; color: var(--muted); }
.qa h3 { margin:.3rem 0 .5rem; }
.qa .ans { border-left: 4px solid var(--mint); padding-left: .8rem; }
.esito { padding: .9rem 1.1rem; border-radius: 14px; background: #ecfbf7; border:1px solid #2ec4a6; margin-bottom:1rem; }
.esito.err { background:#fff2f0; border-color:#fb6f5b; }
.brand-logo { flex-direction: row; align-items: center; gap: .65rem; }
.brand-logo img { width: 46px; height: 46px; flex: none; }
.brand-logo .bt { display: flex; flex-direction: column; min-width: 0; }
.brand-logo b { white-space: nowrap; }
.brand-logo { flex: none; }
.prose .videos { grid-template-columns: 1fr; max-width: 34rem; }
.prose .videos.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); max-width: none; }
.video .frame img[data-broken] { display: none; }
@media (max-width: 600px) { .brand-logo .bt > span { display: none; } .brand-logo b { font-size: 1.05rem; line-height: 1.15; } .brand-logo img { width: 40px; height: 40px; } .site-head .btn-primary { padding: .5rem .85rem; font-size: .9rem; } }
/* ---- colore diverso per ogni pagina ---- */
body { --pa: #2bb5e8; --pb: #ffb703; --ph: #0f6b8a; }
.pg-tecniche { --pa: #8b5cf6; --pb: #2bb5e8; --ph: #6d28d9; }
.pg-posso-farlo { --pa: #2ec4a6; --pb: #2bb5e8; --ph: #0f766e; }
.pg-costi-e-tempi { --pa: #ffb703; --pb: #fb6f5b; --ph: #b45309; }
.pg-dove-in-puglia { --pa: #14b8a6; --pb: #ffd166; --ph: #0e7490; }
.pg-domande { --pa: #fb6f5b; --pb: #8b5cf6; --ph: #be123c; }
.pg-video { --pa: #f43f5e; --pb: #8b5cf6; --ph: #be185d; }
.pg-domande-dei-pazienti { --pa: #2bb5e8; --pb: #2ec4a6; --ph: #0369a1; }
.pg-chi-cura-la-guida { --pa: #6366f1; --pb: #2bb5e8; --ph: #4338ca; }
.pg-prenota { --pa: #fb6f5b; --pb: #ffb703; --ph: #c2410c; }
.pg-privacy { --pa: #94a3b8; --pb: #cbd5e1; --ph: #475569; }
body:not(.pg-index) .page-head { background: linear-gradient(135deg, color-mix(in srgb, var(--pa) 22%, var(--bg)), color-mix(in srgb, var(--pb) 22%, var(--bg))); }
body:not(.pg-index) .page-head h1::after { content: ""; display: block; width: 4.5rem; height: 7px; border-radius: 99px; margin-top: .8rem; background: linear-gradient(90deg, var(--pa), var(--pb)); }
body:not(.pg-index) .page-head .eyebrow { color: var(--ph); }
.prose h2 { color: var(--ph); }
.side-card { border-top: 6px solid var(--pa); }
details summary::after { color: var(--pa); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose h2, :root:not([data-theme="light"]) body:not(.pg-index) .page-head .eyebrow { color: color-mix(in srgb, var(--pa) 70%, white); } }
:root[data-theme="dark"] .prose h2, :root[data-theme="dark"] body:not(.pg-index) .page-head .eyebrow { color: color-mix(in srgb, var(--pa) 70%, white); }
.video { background: var(--surface); border-radius: var(--radius); overflow:hidden; box-shadow: 0 10px 30px -18px rgba(19,38,59,.35); display:flex; flex-direction:column; }
.video .frame { position:relative; aspect-ratio:16/9; background: linear-gradient(135deg, var(--sky), var(--grape)); display:grid; place-items:center; color:#fff; border:0; padding:0; width:100%; cursor:pointer; font: inherit; }
.video .frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video .frame .play { position:relative; width:64px; height:64px; border-radius:50%; background: rgba(255,255,255,.92); color:#f43f5e; display:grid; place-items:center; font-size:1.6rem; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4); }
.video .frame.soon { cursor: default; font-family: var(--f-display); font-weight:700; font-size:1.05rem; }
.video .frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video .txt { padding: 1rem 1.1rem 1.2rem; display:grid; gap:.35rem; }
.video .src { font-family: var(--f-data); font-size:.75rem; text-transform: uppercase; letter-spacing:.06em; color: var(--muted); }
.socials { display:flex; flex-wrap:wrap; gap:.7rem; }
.social { display:inline-flex; align-items:center; gap:.5rem; padding:.7rem 1.1rem; border-radius:999px; color:#fff; text-decoration:none; font-weight:600; }
.social.yt { background:#e11d48; } .social.ig { background: linear-gradient(45deg,#f59e0b,#ec4899,#8b5cf6); } .social.fb { background:#1877f2; } .social.tt { background:#111827; }
.social.off { opacity:.55; pointer-events:none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background: var(--bg); }
  :root:not([data-theme="light"]) .hero, :root:not([data-theme="light"]) .page-head { background: linear-gradient(135deg, #0f2a3d, #2a1a4a 60%, #3a1a2a); }
  :root:not([data-theme="light"]) .grid-3 > .tile { background: var(--surface); } }
:root[data-theme="dark"] body { background: var(--bg); }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-head { background: linear-gradient(135deg, #0f2a3d, #2a1a4a 60%, #3a1a2a); }
:root[data-theme="dark"] .grid-3 > .tile { background: var(--surface); }
