/* Spirale Watches — sito pubblico */
:root {
  --navy: #0c1524;          /* blu iconico del logo */
  --navy-2: #121e33;
  --navy-3: #1b2a44;
  --ivory: #f5f2ec;
  --paper: #fbfaf7;
  --ink: #0c1524;
  --muted: #5d6676;
  --line: #ddd6c8;
  --line-dark: rgba(255, 255, 255, .12);
  --gold: #b89b6a;          /* accento, usato con parsimonia */
  --ok: #3f7d5a;
  --warn: #a8742a;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 500 11px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.h-display {
  font: 300 clamp(40px, 6.4vw, 88px)/1.02 var(--serif);
  letter-spacing: -.01em;
  margin: 0;
}
.h-section {
  font: 300 clamp(32px, 4.2vw, 54px)/1.08 var(--serif);
  margin: 14px 0 0;
}
.lead { font-size: 16px; color: var(--muted); max-width: 56ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Bottoni ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid currentColor; border-radius: var(--radius);
  background: transparent;
  font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn--light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost { color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--wa { background: #1f3b2d; border-color: #1f3b2d; color: #fff; }
.btn--wa:hover { background: #24513a; border-color: #24513a; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow {
  font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 6px;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid, .site-header.is-static { background: var(--navy); box-shadow: 0 1px 0 var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img.mark { width: 34px; height: auto; }
.brand img.word { width: 112px; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; opacity: .82; transition: opacity .2s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav .btn { min-height: 40px; padding: 0 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: #fff; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 24px var(--gutter);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav a { display: block; width: 100%; padding: 20px 0; border-bottom: 1px solid var(--line-dark); font-size: 12px; }
  .nav .btn { margin-top: 28px; width: 100%; min-height: 48px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open .site-header { background: var(--navy); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 920px);
  background: radial-gradient(120% 90% at 78% 40%, var(--navy-3) 0%, var(--navy) 58%);
  color: #fff;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 9vh, 104px);
}
.hero__balance {
  position: absolute; right: -6vw; top: 50%;
  width: min(62vw, 760px); aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: .07; pointer-events: none;
}
.hero__balance img { width: 100%; height: 100%; object-fit: contain; animation: balance 2.4s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes balance { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.hero .wrap { position: relative; width: 100%; }
.hero__title { max-width: 14ch; }
.hero__sub { max-width: 46ch; margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(48px, 8vh, 88px);
  padding-top: 24px; border-top: 1px solid var(--line-dark);
  font: 500 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6);
}

/* ── Marquee brand ───────────────────────────────────────────────────── */
.brands-strip { background: var(--navy-2); color: rgba(255,255,255,.55); border-top: 1px solid var(--line-dark); overflow: hidden; }
.brands-strip__track { display: flex; gap: 72px; padding: 22px 0; width: max-content; animation: marquee 40s linear infinite; }
.brands-strip span { font: 400 22px/1 var(--serif); letter-spacing: .08em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sezioni ─────────────────────────────────────────────────────────── */
.section { padding: clamp(80px, 12vw, 148px) 0; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .lead { color: rgba(255,255,255,.68); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ── Filtri collezione ───────────────────────────────────────────────── */
.filters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 40px;
}
.filters label { display: block; background: var(--paper); padding: 12px 16px 10px; }
.filters label > span { display: block; font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.filters select {
  width: 100%; border: 0; background: transparent; padding: 4px 22px 4px 0; font-size: 14px;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230c1524' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } }
.result-count { font-size: 13px; color: var(--muted); margin: -20px 0 28px; }

/* ── Griglia orologi ─────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card { text-decoration: none; display: block; }
.card__media {
  position: relative; aspect-ratio: 1; background: var(--ivory); overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card__media img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img:first-child { transform: scale(1.035); }
.card:hover .card__media img + img { opacity: 1; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.card__placeholder img { width: 30%; opacity: .14; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 8px 10px;
}
.badge--riservato { background: var(--warn); color: #fff; }
.badge--venduto { background: var(--navy); color: #fff; }
.card__body { padding: 20px 2px 0; }
.card__brand { font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.card__model { font: 400 26px/1.15 var(--serif); margin: 10px 0 6px; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__price { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 14px/1 var(--sans); letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.card__price .arrow { font-size: 18px; transition: transform .3s var(--ease); }
.card:hover .card__price .arrow { transform: translateX(4px); }
.card.is-sold .card__media img { filter: grayscale(.6); opacity: .8; }

.empty {
  border: 1px solid var(--line); padding: clamp(40px, 7vw, 88px) 24px; text-align: center;
}
.empty img { width: 64px; margin: 0 auto 24px; opacity: .5; }
.empty h3 { font: 300 34px/1.1 var(--serif); margin: 0 0 12px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }

.skeleton { background: linear-gradient(90deg, var(--ivory), #ece7dd, var(--ivory)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Servizi ─────────────────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.service { padding: 44px 36px 8px 0; border-right: 1px solid var(--line-dark); }
.service + .service { padding-left: 36px; }
.service:last-child { border-right: 0; }
.service__num { font: 300 15px/1 var(--serif); color: var(--gold); letter-spacing: .1em; }
.service h3 { font: 300 34px/1.1 var(--serif); margin: 20px 0 14px; }
.service p { color: rgba(255,255,255,.68); margin: 0 0 28px; }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
}

/* ── Form ────────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font: 300 18px/1.4 var(--serif); color: var(--gold); }
.steps strong { display: block; font-weight: 500; }
.steps span { color: var(--muted); font-size: 14px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 10px 0; font-size: 15px; border-radius: 0; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy); }
.section--navy .field input, .section--navy .field textarea { border-color: var(--line-dark); color: #fff; }
.section--navy .field label { color: rgba(255,255,255,.6); }
.dropzone {
  display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px dashed var(--line); cursor: pointer;
  font-size: 14px; color: var(--muted); transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--navy); background: var(--ivory); }
.dropzone { position: relative; overflow: hidden; }
.dropzone input { position: absolute; inset: 0; width: 100%; opacity: 0; pointer-events: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; min-height: 1.5em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: #a33; }
.contact-choice { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-choice:not([hidden]) + .form:not([hidden]) { margin-top: 36px; }
.contact-choice:not([hidden]) + .form:not([hidden])::before {
  content: "Oppure compila il modulo"; grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line);
  font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.section--navy .contact-choice:not([hidden]) + .form:not([hidden])::before { border-color: var(--line-dark); color: rgba(255,255,255,.5); }

/* ── About ───────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__visual { aspect-ratio: 1; background: var(--navy); display: grid; place-items: center; position: relative; overflow: hidden; }
.about__visual img { width: 52%; }
.about__visual::after { content: ""; position: absolute; inset: 22px; border: 1px solid var(--line-dark); }
.about__text p { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.pillars strong { display: block; font: 400 20px/1.2 var(--serif); margin-bottom: 6px; }
.pillars span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .pillars { grid-template-columns: 1fr; } }

/* ── Contatti ────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list li span:first-child { font: 500 10.5px/1.9 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; }
.contact-list a:hover { border-color: var(--gold); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.55); font-size: 13px; padding: 56px 0 40px; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.site-footer img { width: 150px; opacity: .9; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal { flex-basis: 100%; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }

/* ── Scheda orologio ─────────────────────────────────────────────────── */
.watch { padding: 120px 0 clamp(64px, 10vw, 120px); }
.crumbs { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.watch__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .watch__grid { grid-template-columns: 1fr; } }
.gallery__main { position: relative; aspect-ratio: 1; background: var(--ivory); overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { padding: 0; border: 1px solid transparent; background: var(--ivory); aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--navy); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.watch__info { position: sticky; top: 104px; }
.watch__brand { font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.watch__model { font: 300 clamp(38px, 4.6vw, 58px)/1.05 var(--serif); margin: 14px 0 10px; }
.watch__ref { color: var(--muted); font-size: 14px; }
.watch__price { font: 400 30px/1 var(--serif); margin: 30px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.status-pill { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 8px 10px; border: 1px solid currentColor; }
.status-pill--disponibile { color: var(--ok); }
.status-pill--riservato { color: var(--warn); }
.status-pill--venduto { color: var(--muted); }
.watch__cta { display: grid; gap: 12px; }
.watch__note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font: 500 10.5px/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); width: 42%; }
.watch__desc { margin-top: clamp(48px, 7vw, 88px); max-width: 72ch; }
.watch__desc p { white-space: pre-line; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,21,36,.96); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 92vh; max-width: 92vw; object-fit: contain; }

.inquiry-panel { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); display: none; }
.inquiry-panel.is-open { display: block; }

/* ── Pagine testuali ─────────────────────────────────────────────────── */
.prose { max-width: 72ch; padding: 140px 0 100px; }
.prose h1 { font: 300 clamp(38px, 5vw, 60px)/1.05 var(--serif); margin: 0 0 32px; }
.prose h2 { font: 400 26px/1.2 var(--serif); margin: 40px 0 10px; }
.prose p, .prose li { color: var(--muted); }

/* ── Reveal ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
