/* Studio Goggio - prima versione arricchita. Font di sistema (nessun font esterno). */
:root {
  --ink: #14233b;
  --ink-2: #1c2f4d;
  --ink-3: #2a4166;
  --ink-deep: #0e1a2d;
  --paper: #f7f4ee;
  --white: #fffdf9;
  --line: #ddd4c4;
  --line-dark: rgba(232, 211, 166, .18);
  --gold: #b0894f;
  --gold-soft: #e8d3a6;
  --text: #1b2433;
  --muted: #5a6474;
  --muted-light: #b9c2d0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); padding-bottom: 66px; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-soft); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Testata ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(14, 26, 45, .9); -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line-dark); color: #fff; transition: background-color .3s ease, box-shadow .3s ease; }
.top.is-scrolled { background: rgba(14, 26, 45, .97); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-soft); font-family: var(--serif); font-size: 15px; letter-spacing: .06em; flex: 0 0 auto; }
.brand__mark--sm { width: 36px; height: 36px; font-size: 13px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 19px; }
.brand__role { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); white-space: nowrap; }
@media (min-width: 420px) { .brand__role { font-size: 11px; letter-spacing: .14em; } }
.top__actions { display: flex; align-items: center; gap: 10px; }
.top__call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(232, 211, 166, .45); color: var(--gold-soft); transition: background-color .25s ease; }
.top__call:hover { background: rgba(232, 211, 166, .1); }
.top__call svg { width: 16px; height: 16px; fill: currentColor; }
.top__call span { display: none; }

.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.6px; background: #fff; transition: transform .3s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.nav { display: none; }
.nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink-deep); border-bottom: 1px solid var(--line-dark); padding: 8px 20px 18px; }
.nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-family: var(--serif); font-size: 20px; color: #fff; }
.nav a { text-decoration: none; color: #dfe5ee; position: relative; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink-deep); padding: 40px 0 64px; isolation: isolate; }
.hero__photo { position: absolute; inset: 0; z-index: -3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); transform-origin: 60% 40%; }
.hero__veil { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(14, 26, 45, .78) 0%, rgba(14, 26, 45, .86) 45%, rgba(14, 26, 45, .97) 100%); }
.hero__bg { position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(232, 211, 166, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 211, 166, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 75% 35%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 60% at 75% 35%, #000 20%, transparent 80%); }
.hero__grid { position: relative; display: grid; gap: 34px; }
.eyebrow { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.hero__title { font-size: clamp(40px, 11vw, 74px); line-height: 1.03; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero__title span { display: block; }
.hero__accent { color: var(--gold-soft); font-style: italic; }
.hero__lead { font-size: 17.5px; color: #dbe2ec; max-width: 33em; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__scroll { display: none; }

/* Pannello animato */
.board { position: relative; border-radius: 20px; padding: 18px 18px 20px; background: linear-gradient(160deg, rgba(42, 65, 102, .72), rgba(14, 26, 45, .82)); border: 1px solid rgba(232, 211, 166, .25); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.board__head { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.board__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(232, 211, 166, .35); }
.board__title { margin-left: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.board__next { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 16px 0 8px; }
.board__date, .board__what { grid-column: 1 / -1; }
.board__label { grid-column: 1; grid-row: 1; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.board__date { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin-top: 4px; }
.board__what { color: #cfd7e3; font-size: 15px; }
.board__count { grid-column: 2; grid-row: 1; justify-self: end; margin-top: 0; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--gold-soft); border-radius: 999px; padding: 3px 11px; }
.board__count:empty { display: none; }
.board__chart { width: 100%; height: 110px; margin: 8px 0 6px; overflow: visible; }
.board__rules line { stroke: rgba(232, 211, 166, .14); stroke-dasharray: 2 6; }
.board__line { fill: none; stroke: var(--gold-soft); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.board__peak { fill: var(--gold-soft); }
.board__checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: #e3e8ef; }
.board__checks li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gold-soft); position: relative; flex: 0 0 auto; background: var(--gold-soft); }
.tick::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip { position: absolute; display: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); white-space: nowrap; }
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.chip--a { top: -16px; right: 18px; }
.chip--b { bottom: -18px; left: -26px; }

/* ---------- Pulsanti ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.btn--gold { background: linear-gradient(180deg, #efdcb3, #c9a96a); color: #1a2436; box-shadow: 0 10px 26px -10px rgba(201, 169, 106, .75); }
.btn--gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-18deg); opacity: 0; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(201, 169, 106, .9); }
.btn--gold:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold-soft); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn--line { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--gold); }

/* ---------- Fiducia ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; gap: 0; }
.trust__item { display: flex; gap: 14px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trust__item:last-child { border-bottom: 0; }
.trust__item svg { width: 34px; height: 34px; flex: 0 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust__item strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); line-height: 1.2; }
.trust__item span { color: var(--muted); font-size: 14.5px; }

/* ---------- Sezioni ---------- */
.section { padding: 68px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.kicker { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.kicker--light { color: var(--gold-soft); }
.h2 { font-size: clamp(31px, 7.5vw, 48px); margin-bottom: 26px; color: var(--ink); }
.h2--light { color: #fff; }
.section__head { display: grid; gap: 4px; margin-bottom: 34px; }
.section__head .h2 { margin-bottom: 10px; }
.section__intro { color: var(--muted); max-width: 36em; }
.section__intro--light { color: #c7d0dc; }

/* Per chi */
.who { display: grid; gap: 16px; }
.who__card { position: relative; display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; overflow: hidden; }
.who__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.who__card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(20, 35, 59, .55); border-color: transparent; }
.who__card:hover::before { transform: scaleX(1); }
.who__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--paper); margin-bottom: 16px; }
.who__ico svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.who__n { position: absolute; top: 24px; right: 24px; font-family: var(--serif); color: var(--line); font-size: 30px; }
.who__card h3 { font-size: 24px; margin: 0 0 8px; color: var(--ink); }
.who__card p { margin: 0 0 16px; color: var(--muted); }
.who__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--gold); }
.who__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.who__card:hover .who__more svg { transform: translateX(4px); }

/* Servizi */
.services { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service__ico { grid-row: span 2; width: 36px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.service h3 { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.service p { margin: 0; color: var(--muted); }

/* Scadenze */
.deadlines { position: relative; overflow: hidden; }
.deadlines::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--line-dark); box-shadow: 0 0 0 60px rgba(232, 211, 166, .03), 0 0 0 120px rgba(232, 211, 166, .02); pointer-events: none; }
.months { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.months::-webkit-scrollbar { display: none; }
.month { flex: 0 0 auto; min-width: 64px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); color: #dfe5ee; cursor: pointer; text-align: center; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.month small { display: block; font-size: 11px; letter-spacing: .1em; color: var(--muted-light); }
.month b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.month:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.month[aria-selected="true"] { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); }
.month[aria-selected="true"] small { color: var(--ink-3); }
.month.is-now::after { content: "oggi"; display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.month.is-now[aria-selected="true"]::after { color: var(--ink-3); }
.dl-panel { margin-top: 10px; padding: 8px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); min-height: 150px; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list li { display: flex; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.dl-list li:last-child { border-bottom: 0; }
.dl-day { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(232, 211, 166, .12); border: 1px solid rgba(232, 211, 166, .35); font-family: var(--serif); font-size: 24px; color: var(--gold-soft); }
.dl-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; color: #fff; }
.dl-list span { color: #c7d0dc; font-size: 15px; }
.dl-list .dl-past { opacity: .55; }
.dl-tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); vertical-align: middle; }
.dl-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted-light); }
.dl-panel.is-swap .dl-list li { animation: slidein .45s ease both; }
.dl-panel.is-swap .dl-list li:nth-child(2) { animation-delay: .05s; }
.dl-panel.is-swap .dl-list li:nth-child(3) { animation-delay: .1s; }
.dl-panel.is-swap .dl-list li:nth-child(4) { animation-delay: .15s; }

/* Metodo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { position: relative; padding: 24px 22px 22px 78px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.step__n { position: absolute; left: 22px; top: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-soft); font-family: var(--serif); font-size: 18px; }
.step h3 { font-size: 22px; margin-bottom: 6px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

/* Territorio */
.place { position: relative; overflow: hidden; color: #fff; padding: 110px 0; isolation: isolate; }
.place__photo { position: absolute; inset: -12% 0; z-index: -2; }
.place__photo img { width: 100%; height: 100%; object-fit: cover; }
.place::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 26, 45, .92) 0%, rgba(14, 26, 45, .7) 55%, rgba(14, 26, 45, .45) 100%); }
.place__title { font-size: clamp(32px, 7.5vw, 54px); line-height: 1.1; margin-bottom: 28px; max-width: 15em; }
.place__title em { color: var(--gold-soft); }
.valleys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.valleys li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(232, 211, 166, .4); font-size: 14px; color: #eef1f5; background: rgba(14, 26, 45, .35); }

/* Lo studio */
.studio { display: grid; gap: 34px; align-items: center; }
.studio__portrait { max-width: 380px; width: 100%; }
.studio__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 34px 70px -38px rgba(20, 35, 59, .8); background: var(--ink); }
.studio__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.studio__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 45, .35), rgba(14, 26, 45, .88)); }
.studio__frame::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(232, 211, 166, .45); border-radius: 13px; z-index: 2; }
.studio__mono { position: relative; z-index: 2; font-family: var(--serif); font-size: 104px; color: var(--gold-soft); letter-spacing: .04em; font-style: italic; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.studio__note { position: absolute; z-index: 2; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #dfe5ee; }
.studio__role { font-size: 14.5px; color: var(--gold); font-weight: 600; letter-spacing: .02em; margin-top: -14px; }
.studio__copy p { color: #3c4555; }
.studio__facts { display: grid; margin: 24px 0 0; border-top: 1px solid var(--line); }
.studio__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.studio__facts dt { color: var(--muted); font-size: 14.5px; }
.studio__facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* Checklist documenti */
.check { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -45px rgba(20, 35, 59, .5); }
.check__tabs { display: flex; overflow-x: auto; background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.check__tabs::-webkit-scrollbar { display: none; }
.check__tabs button { flex: 1 0 auto; padding: 16px 18px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; transition: color .25s ease, border-color .25s ease; }
.check__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); background: var(--white); }
.check__body { padding: 22px 20px 24px; }
.check__progress { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.check__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: inherit; transition: width .5s ease; }
.check__count { margin: 10px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.check__list { list-style: none; margin: 0; padding: 0; display: grid; }
.check__list[hidden] { display: none !important; }
.check__list li { border-bottom: 1px solid var(--line); }
.check__list label { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; cursor: pointer; }
.check__list input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; border-radius: 7px; border: 1.5px solid var(--gold); display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease; }
.check__list input::after { content: ""; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .2s ease; }
.check__list input:checked { background: var(--gold); }
.check__list input:checked::after { transform: rotate(45deg) scale(1); }
.check__list input:checked + * , .check__list label:has(input:checked) { color: var(--muted); }
.check__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Domande */
.faq-wrap { display: grid; gap: 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 24px; color: var(--gold); transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; margin: 0; }
.link--dark { color: var(--gold) !important; }

/* Contatti */
.contact__grid { display: grid; gap: 40px; }
.contact__lead { color: #c7d0dc; margin-top: -10px; }
.form { display: grid; gap: 14px; margin-top: 22px; }
.form__row { display: grid; gap: 6px; }
.form__row--2 { grid-template-columns: 1fr; gap: 14px; }
.form__row--2 > div { display: grid; gap: 6px; }
.form label { font-size: 13px; letter-spacing: .06em; color: var(--muted-light); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(232, 211, 166, .28); background: rgba(255, 255, 255, .05); color: #fff; transition: border-color .2s ease, background-color .2s ease; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-soft); background: rgba(255, 255, 255, .09); }
.form textarea { resize: vertical; }
.form textarea::placeholder { color: #8b96a8; }
.form .form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; letter-spacing: 0; color: #c7d0dc; }
.form__consent input { margin-top: 4px; accent-color: var(--gold); }
.form__consent a { color: var(--gold-soft); }
.form .btn { justify-self: start; }
.form__msg { margin: 0; font-size: 14.5px; color: var(--gold-soft); min-height: 1.2em; }
.contact__card { margin: 0; padding: 8px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); align-self: start; }
.contact__card div { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact__card div:last-child { border-bottom: 0; }
.contact__card dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.contact__card dd { margin: 0; color: #e7ebf1; overflow-wrap: anywhere; }
.link { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(232, 211, 166, .35); }
.link:hover { border-color: var(--gold-soft); }

/* Pagine di servizio */
.phero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 60px; isolation: isolate; background: var(--ink-deep); }
.phero__photo { position: absolute; inset: 0; z-index: -2; }
.phero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 26, 45, .82), rgba(14, 26, 45, .95)); }
.crumbs { font-size: 13.5px; color: var(--muted-light); margin-bottom: 18px; }
.crumbs a { color: var(--gold-soft); text-decoration: none; }
.phero h1 { font-size: clamp(36px, 9vw, 60px); line-height: 1.05; margin-bottom: 16px; }
.phero h1 em { color: var(--gold-soft); }
.phero p { color: #dbe2ec; max-width: 36em; font-size: 17.5px; }
.phero .hero__cta { margin-top: 22px; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.incl li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.incl li::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2314233b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.incl strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); }
.incl span { color: var(--muted); font-size: 15.5px; }
.band { background: var(--ink); color: #fff; border-radius: 20px; padding: 34px 26px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--line-dark); box-shadow: 0 0 0 40px rgba(232, 211, 166, .03); }
.band h2 { font-size: clamp(26px, 6vw, 36px); }
.band p { color: #c7d0dc; margin: 0; }
.band .hero__cta { margin: 0; position: relative; z-index: 1; }
.others { display: grid; gap: 12px; }
.others a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 20px; background: var(--white); transition: border-color .25s ease, transform .25s ease; }
.others a:hover { border-color: var(--gold); transform: translateX(4px); }
.others svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Piè di pagina */
.foot { background: #0b1626; color: #aab4c3; font-size: 14px; padding: 36px 0 30px; }
.foot__inner { display: grid; gap: 18px; }
.foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.foot__brand strong { color: #fff; font-weight: 600; }
.foot__legal { margin: 0; overflow-wrap: anywhere; }
.foot a { color: var(--gold-soft); }

/* Barra rapida da telefono */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(11, 22, 38, .97); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; color: #e7ebf1; text-decoration: none; font-size: 12.5px; }
.dock a:first-child { color: var(--gold-soft); }
.dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock a:first-child svg { fill: currentColor; stroke: none; }

/* ---------- Schermi più larghi ---------- */
@media (min-width: 420px) { .top__call span { display: inline; } }
@media (min-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .chip { display: block; }
  .board { margin: 18px 10px 0 34px; }
}
@media (min-width: 760px) {
  body { font-size: 18px; padding-bottom: 0; }
  .dock { display: none; }
  .wrap { padding: 0 32px; }
  .hero { padding: 72px 0 96px; }
  .hero__veil { background: linear-gradient(100deg, rgba(14, 26, 45, .95) 0%, rgba(14, 26, 45, .82) 48%, rgba(14, 26, 45, .5) 100%), linear-gradient(0deg, rgba(14, 26, 45, .9), transparent 40%); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .trust__item:nth-last-child(2) { border-bottom: 0; }
  .who { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); column-gap: 48px; border-top: 0; }
  .service { border-top: 1px solid var(--line); border-bottom: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 84px 24px 26px; }
  .step__n { top: 24px; left: 24px; }
  .section { padding: 100px 0; }
  .section__head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 40px; }
  .section__head .section__intro { margin-bottom: 14px; }
  .months { margin: 0; padding-left: 2px; padding-right: 2px; flex-wrap: wrap; }
  .dl-panel { padding: 10px 30px; }
  .place { padding: 150px 0; }
  .studio { grid-template-columns: 380px 1fr; gap: 64px; }
  .check__body { padding: 28px 32px 30px; }
  .check__list { grid-template-columns: 1fr 1fr; column-gap: 34px; }
  .faq-wrap { grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .contact__grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .foot__inner { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .foot__legal { text-align: right; }
  .phero { padding: 90px 0 96px; }
  .incl { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 44px 44px; }
  .others { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .burger { display: none; }
  .nav { display: flex; gap: 24px; font-size: 15px; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
  .nav a:hover::after { transform: scaleX(1); }
  .hero { min-height: min(860px, calc(100vh - 66px)); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .board { margin: 0 0 0 30px; padding: 22px 24px 24px; }
  .hero__scroll { display: block; position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .45); }
  .hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-soft); }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { border-bottom: 0; padding: 26px 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) { .chip--b { left: -48px; } }

/* ---------- Animazioni (solo con html.anim) ----------
   Rete di sicurezza: lo stato normale è SEMPRE visibile.
   - Ingresso hero: il testo parte da opacità .35, mai invisibile; dopo 2,5 s script.js
     aggiunge .anim-done e toglie le animazioni d'ingresso.
   - Comparsa allo scorrimento: script.js mette .is-pre (opacità .3, mai 0) solo agli
     elementi sotto lo schermo; dopo 6 s, o se qualcosa va storto, la toglie a tutti.
   - Movimenti continui (foto, pannello, chip): decorativi, non nascondono nulla. */
@media (prefers-reduced-motion: no-preference) {
  .anim .a-rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
  .anim .a-fade { animation: fade 1.1s ease var(--d, 0s) both; }
  .anim .hero__photo img, .anim .phero__photo img { animation: kenburns 26s ease-in-out infinite alternate; }
  .anim .hero__bg { animation: drift 18s linear infinite alternate; }
  .anim .board__line { stroke-dasharray: 1; animation: drawloop 9s cubic-bezier(.45, .05, .25, 1) .6s infinite; }
  .anim .board__area { animation: arealoop 9s ease .6s infinite; }
  .anim .board__peak { transform-box: fill-box; transform-origin: center; animation: peakloop 9s ease .6s infinite; }
  .anim .board__checks li { animation: checkloop 9s ease infinite; animation-delay: calc(1.6s + var(--i) * .45s); }
  .anim .board__checks .tick { animation: tickloop 9s ease infinite; animation-delay: calc(1.6s + var(--i) * .45s); }
  .anim .chip--a { animation: float 6s ease-in-out infinite; }
  .anim .chip--b { animation: float 7s ease-in-out 1.2s infinite reverse; }
  .anim .board__count { animation: pulse 2.8s ease-in-out 2s infinite; }
  .anim .btn--gold::after { animation: shine 5s ease-in-out 2s infinite; }
  .anim .hero__scroll span { animation: scrollcue 2s ease-in-out infinite; }
  .anim .reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .anim .reveal.is-pre { opacity: .3; transform: translateY(28px); }

  .anim-done .a-rise, .anim-done .a-fade { animation: none !important; opacity: 1 !important; transform: none !important; }
}
@keyframes rise { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-2.5%, -2%, 0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-56px, -56px, 0); } }
@keyframes drawloop { 0% { stroke-dashoffset: 1; } 35% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 96% { stroke-dashoffset: 0; opacity: .2; } 100% { stroke-dashoffset: 1; opacity: .2; } }
@keyframes arealoop { 0%, 20% { opacity: 0; } 40%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes peakloop { 0%, 30% { transform: scale(0); } 38% { transform: scale(1.6); } 44%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes checkloop { 0% { background: rgba(255, 255, 255, .05); } 6% { background: rgba(232, 211, 166, .16); } 14%, 100% { background: rgba(255, 255, 255, .05); } }
@keyframes tickloop { 0% { background: transparent; } 5%, 90% { background: var(--gold-soft); } 100% { background: transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 211, 166, .55); } 50% { box-shadow: 0 0 0 8px rgba(232, 211, 166, 0); } }
@keyframes shine { 0%, 70% { left: -60%; opacity: 0; } 72% { opacity: 1; } 88% { left: 130%; opacity: 0; } 100% { left: 130%; opacity: 0; } }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes slidein { from { opacity: .3; transform: translateX(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .top, .hero, .trust, .dock, .foot, .section:not(#documenti), .place, .check__tabs, .check__actions, .check__progress { display: none !important; }
  #documenti { padding: 0; }
  .check { box-shadow: none; border: 0; }
  .check__list[hidden] { display: none !important; }
}
