/* Pagina di presentazione (visitatori non collegati). Usa i colori e il carattere di style.css. */
.lp { background: #fff; color: var(--ink); }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.lp h1, .lp h2, .lp h3 { color: var(--navy); letter-spacing: -0.02em; }
.lp h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; line-height: 1.15; margin: 0 0 1rem; }
.lp h3 { font-size: 1.1rem; font-weight: 750; margin: 0 0 .35rem; }
.lp p { line-height: 1.6; }

/* barra in alto */
.lp-top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-top-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.lp-brand img { display: block; }
.lp-nav { display: flex; gap: 1.4rem; margin-right: auto; }
.lp-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lp-nav a:hover { color: var(--navy); }
.lp-auth { display: flex; gap: .5rem; }

/* pulsanti */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: .55rem 1rem; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; }
.lp-btn-solid { background: var(--navy); color: #fff; }
.lp-btn-solid:hover { background: var(--navy-hover); }
.lp-btn-ghost { color: var(--navy); border-color: var(--field); background: #fff; }
.lp-btn-ghost:hover { border-color: var(--navy); }
.lp-btn-lg { padding: .85rem 1.35rem; font-size: 1rem; }
.lp-btn-block { width: 100%; }
.lp a:focus-visible, .lp input:focus-visible, .lp summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* apertura */
.lp-hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.45rem); line-height: 1.07; font-weight: 800; margin: 0 0 1.25rem; max-width: 17em; }
.lp-lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 1.75rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* il foglio della prenotazione: l'unico elemento animato */
.lp-sheet { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(1, 47, 85, .06), 0 24px 48px -24px rgba(1, 47, 85, .28); overflow: hidden; }
.lp-sheet-head { display: grid; gap: .1rem; padding: 1.1rem 1.35rem; background: var(--navy); color: #fff; }
.lp-sheet-head strong { font-size: 1.15rem; }
.lp-sheet-head span { color: #b9d3e3; font-size: .9rem; }
.lp-sheet-head .lp-sheet-place { color: #fff; }
.lp-sheet-list { list-style: none; margin: 0; padding: .4rem 1.35rem 1rem; }
.lp-sheet-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.lp-sheet-list li:last-child { border-bottom: 0; }
.lp-sheet-list strong { display: block; color: var(--navy); font-size: .98rem; }
.lp-sheet-list div span { color: var(--muted); font-size: .88rem; }
.lp-tick { flex: 0 0 26px; height: 26px; border-radius: 50%; margin-top: 1px; background: var(--teal); position: relative; }
.lp-tick::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
  .lp-sheet-list li { animation: lp-row .45s ease-out both; }
  .lp-sheet-list li .lp-tick { animation: lp-tick .35s ease-out both; }
  .lp-sheet-list li:nth-child(1), .lp-sheet-list li:nth-child(1) .lp-tick { animation-delay: .3s; }
  .lp-sheet-list li:nth-child(2), .lp-sheet-list li:nth-child(2) .lp-tick { animation-delay: .75s; }
  .lp-sheet-list li:nth-child(3), .lp-sheet-list li:nth-child(3) .lp-tick { animation-delay: 1.2s; }
  .lp-sheet-list li:nth-child(4), .lp-sheet-list li:nth-child(4) .lp-tick { animation-delay: 1.65s; }
}
@keyframes lp-row { from { opacity: .25; } to { opacity: 1; } }
@keyframes lp-tick { from { transform: scale(.3); background: var(--line); } to { transform: scale(1); background: var(--teal); } }

/* sezioni */
.lp-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.lp-band { padding: clamp(3rem, 7vw, 5.5rem) 0; background: #eef6f8; }
.lp-intro { font-size: 1.08rem; color: var(--muted); max-width: 40em; margin: 0 0 2rem; }

/* passi: è davvero una sequenza, quindi numerati */
.lp-steps { list-style: none; counter-reset: lp; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.lp-steps li { counter-increment: lp; position: relative; padding-top: 3.25rem; }
.lp-steps li::before {
  content: counter(lp); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800;
}
.lp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: 3rem; right: -1.5rem; height: 2px; background: #c6dde6; }
.lp-steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* confronto */
.lp-table-wrap { overflow-x: auto; }
.lp-compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.lp-compare th, .lp-compare td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.lp-compare thead th { font-size: .85rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--navy); }
.lp-compare tbody th { color: var(--navy); font-weight: 750; width: 24%; }
.lp-compare td:nth-child(2) { color: var(--muted); width: 36%; }
.lp-compare td:nth-child(3) { color: var(--ink); font-weight: 600; }
.lp-compare thead th:nth-child(3) { color: var(--teal-ink); }

/* perché */
.lp-why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3.5rem; margin: 1.75rem 0 0; }
.lp-why-list dt { font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-bottom: .35rem; padding-left: 1rem; border-left: 3px solid var(--teal); }
.lp-why-list dd { margin: 0; padding-left: calc(1rem + 3px); color: var(--muted); line-height: 1.6; }

/* prezzi */
.lp-price-grid { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-included { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.lp-included li { padding-left: 1.6rem; position: relative; font-weight: 600; }
.lp-included li::before { content: ""; position: absolute; left: .2rem; top: .35em; width: 6px; height: 11px; border: solid var(--teal-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.lp-calc { background: var(--navy); color: #fff; border-radius: 18px; padding: 1.75rem; display: grid; gap: .9rem; }
.lp-calc label { font-weight: 700; font-size: 1.05rem; color: #fff; display: block; }
.lp-calc-row { display: flex; align-items: center; gap: 1rem; }
.lp-calc output { min-width: 2.2ch; font-size: 1.6rem; font-weight: 800; text-align: right; }
.lp-calc input[type=range] {
  flex: 1; margin: 0; border: 0; height: 8px; border-radius: 99px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(to right, var(--teal) var(--fill, 7%), rgba(255, 255, 255, .25) var(--fill, 7%));
}
.lp-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.lp-calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.lp-calc-total { margin: .2rem 0 0; font-size: 1.05rem; color: #b9d3e3; }
.lp-calc-total span { display: block; font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.lp-calc-note { margin: 0; font-size: .9rem; color: #b9d3e3; }
.lp-calc .lp-btn-solid { background: var(--teal); color: var(--navy); }
.lp-calc .lp-btn-solid:hover { background: #3cc6cd; }

/* domande */
.lp-faq > * { max-width: 760px; }
.lp-faq details { border-bottom: 1px solid #c6dde6; padding: 1rem 0; }
.lp-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-ink); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--muted); margin: .6rem 0 0; max-width: 40em; }

/* piede */
.lp-foot { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.lp-foot-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.lp-foot-inner p { margin: 0; }
.lp-foot-inner p:last-child { margin-left: auto; display: flex; gap: 1rem; }
.lp-foot a { color: var(--teal-ink); }

/* telefono */
@media (max-width: 900px) {
  .lp-hero-grid, .lp-price-grid { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-steps li::after { display: none; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 1rem; }
  .lp-nav { display: none; }
  .lp-top-inner { justify-content: space-between; }
  .lp-auth .lp-btn { padding: .5rem .8rem; font-size: .9rem; }
  .lp-steps, .lp-why-list { grid-template-columns: 1fr; }
  .lp-compare thead { display: none; }
  .lp-compare tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .lp-compare th, .lp-compare td { display: block; border: 0; padding: .2rem 0; width: auto !important; }
  .lp-compare td:nth-child(2)::before { content: "A mano: "; font-weight: 700; }
  .lp-compare td:nth-child(3)::before { content: "Con Guestix: "; font-weight: 700; color: var(--teal-ink); }
  .lp-foot-inner p:last-child { margin-left: 0; }
}
.lp-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 .4rem; border: 0; background: rgba(255, 255, 255, .12); border-radius: 12px; }
.lp-plan label { display: block; cursor: pointer; font-size: .92rem; }
.lp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.lp-plan span { display: block; text-align: center; padding: .55rem .5rem; border-radius: 9px; color: #b9d3e3; font-weight: 700; }
.lp-plan input:checked + span { background: #fff; color: var(--navy); }
.lp-plan input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
#calc-per { display: inline; font-size: 1rem; font-weight: 400; color: #b9d3e3; letter-spacing: 0; }

/* documenti legali */
.legal { max-width: 760px; padding-top: 2.5rem; padding-bottom: 4rem; }
.legal h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); font-weight: 800; line-height: 1.15; margin: 0 0 .4rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal-meta { color: var(--muted); margin: 0 0 1.5rem; }
.legal-draft { background: var(--warn-tint); color: var(--warn); padding: .6rem .9rem; border-radius: 10px; font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .6rem .6rem .6rem 0; border-bottom: 1px solid var(--line); }
.lp-nav a[aria-current="page"] { color: var(--navy); }
.legal-form { border: 1px dashed var(--field); border-radius: 12px; padding: 1rem 1.2rem; background: #fafcfd; } .legal-form p { margin: .5rem 0; }
