:root {
  --night: #13264A;
  --night-dk: #0B1833;
  --orange: #E2703A;
  --orange-dk: #C65B28;
  --cream: #F8F3E8;
  --sky: #EAF1F5;
  --ink: #1E2533;
  --muted: #5E6778;
  --line: #E3E6EC;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 16.5px/1.7 var(--sans); color: var(--muted); background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--night); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font: 700 1.1rem/1.3 var(--sans); }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 700; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--soft { background: var(--sky); }
.section--dark { background: var(--night); color: #C9D2E3; }
.section--dark h2 { color: var(--cream); }

.eyebrow { font: 800 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.eyebrow--light { color: #F2A77E; }
.lead { font-size: 1.1rem; max-width: 60ch; }
.head { margin-bottom: 48px; }
.head--center { text-align: center; }
.head--center .lead { margin-inline: auto; }
.head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.link { color: var(--orange-dk); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 .95rem/1 var(--sans); text-decoration: none; border: 2px solid var(--orange); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--orange-dk); border-color: var(--orange-dk); transform: translateY(-1px); }
.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--outline { background: transparent; color: var(--night); border-color: var(--night); }
.btn--outline:hover { background: var(--night); border-color: var(--night); color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(248, 243, 232, .7); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); border-color: var(--cream); color: var(--night); }
.btn--block { width: 100%; }

/* Topbar */
.topbar { background: var(--night-dk); color: #B9C4D8; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__contacts { display: flex; gap: 24px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; fill: var(--orange); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night); }
.brand__mark { width: 50px; height: 50px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font: 400 1.35rem var(--serif); color: var(--night); }
.brand__txt em { font: italic 400 1rem var(--serif); color: var(--orange-dk); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink); }
.nav__links a:not(.btn):hover { color: var(--orange-dk); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 2.5px; border-radius: 2px; background: var(--night); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; padding: clamp(96px, 14vw, 170px) 0 clamp(130px, 16vw, 190px); color: var(--cream);
  background: linear-gradient(95deg, rgba(11, 24, 51, .9) 0%, rgba(11, 24, 51, .65) 42%, rgba(11, 24, 51, .1) 75%, rgba(11, 24, 51, 0) 100%),
              #1a1712 url("hero-studio.jpeg") center 62% / cover no-repeat; }
.hero h1 { color: var(--cream); font-size: clamp(2.3rem, 5vw, 4rem); max-width: 20ch; margin-bottom: .4em; }
.hero h1 em { display: block; font-size: .5em; line-height: 1.3; margin-top: .5em; color: #E7DDC6; max-width: 30ch; }
.hero__sub { font-size: 1.1rem; max-width: 50ch; color: #D6DDEA; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Targets (overlap) */
.targets-wrap { position: relative; z-index: 2; margin-top: -80px; }
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(11, 24, 51, .45); overflow: hidden; }
.target { position: relative; padding: 32px 30px; text-decoration: none; border-right: 1px solid var(--line); transition: background .25s; }
.target:last-child { border-right: 0; }
.target:hover { background: var(--cream); }
.target__label { display: block; font: 400 1.6rem var(--serif); color: var(--night); margin-bottom: 8px; }
.target p { margin: 0; font-size: .95rem; padding-right: 24px; }
.target__go { position: absolute; top: 34px; right: 28px; color: var(--orange); font-weight: 800; font-size: 1.2rem; transition: transform .2s; }
.target:hover .target__go { transform: translateX(4px); }

/* Studio */
.studio { overflow-x: clip; }
.studio__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.quote { margin: 0 0 28px; font: 400 clamp(1.8rem, 3vw, 2.5rem)/1.2 var(--serif); color: var(--night); }
.facts { list-style: none; margin: 28px 0; padding: 24px 0; display: flex; gap: 40px; flex-wrap: wrap; border-block: 1px solid var(--line); }
.facts b { display: block; font: 400 2.2rem/1 var(--serif); color: var(--orange-dk); }
.facts span { font-size: .88rem; }
.studio__sign { font: italic 400 1.3rem var(--serif); color: var(--night); margin: 0; }
.studio__sign small { display: block; font: 400 .85rem var(--sans); color: var(--muted); }
.studio__photo { margin: 0; position: relative; }
.studio__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--orange); border-radius: var(--radius); z-index: -1; }
.studio__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(11, 24, 51, .4); }
.service__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--night); margin-bottom: 18px; }
.service__icon svg { width: 24px; height: 24px; fill: var(--cream); }
.service__area { font: 800 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dk); margin-bottom: 6px; }
.service p { font-size: .92rem; flex: 1; }
.service__go { align-self: flex-start; font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--night); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.service__go:hover { color: var(--orange-dk); }

/* Band */
.band { background: var(--cream); padding: 44px 0; border-block: 1px solid #EDE4D0; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.band p { margin: 0; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.plan--featured { background: var(--night); border-color: var(--night); color: #C9D2E3; }
.plan--featured h3, .plan--featured .plan__price { color: var(--cream); }
.plan--featured li { border-color: rgba(255, 255, 255, .12) !important; }
.plan--highlight { outline: 3px solid var(--orange); outline-offset: 4px; }
.plan__badge { position: absolute; top: -13px; left: 30px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font: 400 1.7rem var(--serif); color: var(--night); margin-bottom: 4px; }
.plan__for { font-size: .9rem; min-height: 3em; }
.plan__price { font: 400 3rem/1 var(--serif); color: var(--night); margin: 6px 0 22px; }
.plan__price small { font: 600 .9rem var(--sans); color: inherit; opacity: .7; margin-left: 4px; }
.plan__price--quote { font-size: 1.8rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 9px 0 9px 26px; position: relative; font-size: .93rem; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 11px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.plan--featured .btn--outline { color: var(--cream); border-color: var(--cream); }

.swipe-hint { display: none; margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* Quiz */
.quiz { margin-top: 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 16px 20px; align-items: end; background: var(--cream); border-radius: var(--radius); padding: 28px; }
.quiz__intro h3 { font: 400 1.4rem var(--serif); margin-bottom: 4px; }
.quiz__intro p { margin: 0; font-size: .9rem; }
.quiz__check { grid-column: 2 / 4; flex-direction: row !important; align-items: center; gap: 10px; }
.quiz__out { grid-column: 1 / -1; margin: 0; min-height: 1.6em; color: var(--night); }
.quiz__out strong { color: var(--orange-dk); }

/* Contenzioso */
.conten__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.conten__photo { margin: 0; }
.conten__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.checks { list-style: none; padding: 0; margin: 20px 0 32px; }
.checks li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid rgba(255, 255, 255, .12); color: #E4E9F2; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

/* Scadenze */
.scad__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.scad { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.scad li { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px 22px; }
.scad time { flex-shrink: 0; width: 70px; text-align: center; font: 800 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dk); border-right: 1px solid var(--line); padding-right: 18px; }
.scad time b { display: block; font: 400 2.2rem/1 var(--serif); color: var(--night); letter-spacing: 0; }
.scad h3 { margin-bottom: 2px; }
.scad p { margin: 0; font-size: .9rem; }
.scad__note { grid-column: 2; margin: -36px 0 0; font-size: .82rem; }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(11, 24, 51, .4); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post__cat { font: 800 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dk); margin-bottom: 8px; }
.post h3 { font: 400 1.35rem/1.25 var(--serif); }
.post p { font-size: .92rem; flex: 1; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info { margin: 28px 0 0; }
.info div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #D6DFE7; }
.info dt { font: 800 .75rem var(--sans); color: var(--night); text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
.info dd { margin: 0; color: var(--ink); }
.info a { color: var(--orange-dk); text-decoration: none; font-weight: 700; }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--night); }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(226, 112, 58, .18); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.form { display: grid; gap: 16px; background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -40px rgba(11, 24, 51, .4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); }
.form__note { margin: 0; font-size: .8rem; text-align: center; }

/* Footer */
.footer { background: var(--night-dk); color: #A9B4C9; padding: 60px 0 24px; font-size: .92rem; }
.footer h4 { color: var(--cream); font: 800 .78rem var(--sans); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer p { margin: 0 0 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand { font: 400 1.6rem var(--serif); color: var(--cream); }
.footer__small { font-size: .82rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 20px; font-size: .8rem; }

/* Credito LUDOLUX */
.footer__credit { letter-spacing: .06em; }
.footer__credit a { color: #8E9AB2; transition: color .25s; }
.footer__credit a:hover { color: var(--cream); }
.ludolux { font-weight: 700; letter-spacing: .12em; background: linear-gradient(115deg, #B15CF5 0%, #7C6BFF 48%, #3E86EE 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barra azioni: solo su telefono */
.mbar { display: none; }

.totop { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(11, 24, 51, .3); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.totop.is-visible { opacity: 1; pointer-events: auto; }
.totop svg { width: 26px; height: 26px; fill: #fff; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1060px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .studio__grid, .conten__grid, .contact__grid, .scad__grid { grid-template-columns: 1fr; gap: 44px; }
  .scad__note { grid-column: auto; margin-top: -24px; }
  .studio__photo { max-width: 460px; }
  .targets { grid-template-columns: 1fr; }
  .target { border-right: 0; border-bottom: 1px solid var(--line); }
  .target:last-child { border-bottom: 0; }
  .plans, .news { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .quiz { grid-template-columns: 1fr; }
  .quiz__check { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 20px 20px; box-shadow: 0 14px 24px rgba(11, 24, 51, .12); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
  .section { padding: 60px 0; }
  .head { margin-bottom: 32px; }
  .topbar { display: none; }
  .nav__links { max-height: calc(100dvh - 70px); overflow-y: auto; }
  .totop { display: none; }

  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(11, 24, 51, .25); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 700; color: var(--night); }
  .mbar svg { width: 18px; height: 18px; fill: currentColor; }
  .mbar a[data-wa] svg { fill: #1FA855; }
  .mbar__cta { background: var(--orange); color: #fff !important; }

  /* Apertura */
  .hero { padding: 64px 0 112px; background-position: 58% center; }
  .hero h1 { font-size: 2.3rem; }
  .hero h1 em { font-size: .55em; }
  .hero__sub { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .targets-wrap { margin-top: -64px; }
  .target { padding: 20px 22px; }
  .target__label { font-size: 1.35rem; margin-bottom: 2px; }
  .target__go { top: 22px; right: 22px; }

  /* Studio */
  .studio__grid { gap: 36px; }
  .studio__photo { order: -1; max-width: none; }
  .studio__photo img { aspect-ratio: 4 / 3; object-position: center 25%; }
  .quote { font-size: 1.7rem; }
  .facts { gap: 20px; justify-content: space-between; }
  .facts b { font-size: 1.8rem; }

  /* Servizi compatti: icona a sinistra */
  .services { grid-template-columns: 1fr; gap: 12px; }
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; }
  .service__icon { width: 44px; height: 44px; margin: 0; grid-row: span 4; }
  .service__icon svg { width: 20px; height: 20px; }
  .service h3 { margin-bottom: 4px; }
  .service p { font-size: .9rem; margin-bottom: 8px; }
  .service__go { justify-self: start; }
  .service:hover { transform: none; }

  .band { padding: 36px 0; }
  .band__in .btn { width: 100%; }

  /* Pacchetti e news: carosello orizzontale con scatto */
  .plans, .news { display: flex; max-width: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 16px 16px 8px; scrollbar-width: none; }
  .plans::-webkit-scrollbar, .news::-webkit-scrollbar { display: none; }
  .plan, .post { flex: 0 0 84%; scroll-snap-align: center; }
  .plan__for { min-height: 0; }
  .swipe-hint { display: block; }

  .quiz { padding: 22px; margin-top: 28px; }
  .quiz .btn { width: 100%; }

  .conten__photo img { aspect-ratio: 16 / 9; }
  .conten__grid .btn { width: 100%; }
  .scad li { padding: 14px 16px; gap: 14px; }
  .scad time { width: 56px; padding-right: 12px; }
  .scad time b { font-size: 1.8rem; }
  .head--row .link { display: none; }

  .footer { padding-top: 48px; }
  .footer a { display: inline-block; padding: 4px 0; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar__hours { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__contacts { gap: 16px; font-size: .8rem; }
  .nav__in { height: 70px; }
  .brand__mark { width: 42px; height: 42px; }
  .services { grid-template-columns: 1fr; }
  .studio__photo::before { inset: 14px -10px -14px 14px; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .swipe-hint { display: none; } }
