/* ==========================================================
   Nautica Italiana Distribution — stile condiviso
   Palette: blu golfo, verde mare, schiuma, giallo limone di Napoli
   ========================================================== */
:root {
  --navy: #16304d;
  --navy-2: #1f4466;
  --sea: #157596;
  --foam: #e4f0f2;
  --paper: #f7fafb;
  --white: #ffffff;
  --lemon: #f4b400;
  --lemon-dark: #c99300;
  --ink: #0e1d2c;
  --muted: #566a7b;
  --line: #d3e0e6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 40px -18px rgba(11, 37, 64, .35);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }

:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--lemon); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--foam { background: var(--foam); }
.section--navy { background: var(--navy); color: #dbe7ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }
.section--navy .section-head p { color: #aebfcc; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font: 700 1rem var(--font-body);
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--lemon); color: var(--navy); }
.btn--primary:hover { background: #ffc61f; color: var(--navy); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 251, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; background: var(--navy);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.05; letter-spacing: -.02em; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .55rem 1rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; color: var(--navy); font-size: .98rem;
}
.nav a:hover { background: var(--foam); }
.nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav .nav-cta { background: var(--lemon); margin-left: .5rem; }
.nav .nav-cta:hover { background: #ffc61f; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--paper); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 1rem; }
  .nav .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #dbe7ee;
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { color: #b5c6d3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-boat { position: relative; margin-bottom: -1px; }
.hero-boat .boat-art { animation: bob 6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-8px) rotate(.8deg); }
}
.hero-waves { display: block; width: 100%; height: 90px; margin-top: -40px; position: relative; }
.hero-waves path:nth-child(1) { fill: #1f4466; }
.hero-waves path:nth-child(2) { fill: var(--paper); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-boat { order: -1; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-boat .boat-art { animation: none; }
  html { scroll-behavior: auto; }
}

/* Hero interno (pagine secondarie) */
.page-hero { background: var(--navy); color: #b5c6d3; padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-hero p { max-width: 58ch; margin: 0; font-size: 1.15rem; }
.breadcrumb { font-size: .9rem; margin-bottom: 1.2rem; color: #8ea6b8; }
.breadcrumb a { color: #cfe0ea; }

/* ---------- Statistiche / punti di forza ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { padding-top: 1.25rem; border-top: 3px solid var(--lemon); }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* ---------- Doppia colonna ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split-art { background: var(--foam); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---------- Schede (card) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sea); color: inherit; }
.card-media { position: relative; background: var(--foam); aspect-ratio: 5 / 3; overflow: hidden; }
.card-media svg { width: 100%; height: 100%; }
.badge {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--navy); color: var(--white);
  font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
}
.badge--new { background: var(--lemon); color: var(--navy); }
.card-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .2em; }
.card-meta { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; }
.card-specs {
  display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: 0 0 1.1rem; padding: 0; list-style: none;
}
.card-specs li {
  background: var(--foam); color: var(--navy);
  font-size: .85rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px;
}
.card-foot {
  margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  border-top: 1px solid var(--line); padding-top: .9rem;
}
.price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.price small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.card-link { font-weight: 700; color: var(--sea); font-size: .95rem; }

/* ---------- Filtri ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 600 .95rem var(--font-body); color: var(--navy);
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sort { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--muted); font-size: .95rem; }
.sort select { min-width: 190px; }
.result-count { color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* ---------- Form ---------- */
label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s;
}
input:hover, select:hover, textarea:hover { border-color: #a9bec9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(26, 107, 124, .2); }
textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { width: auto; margin-top: .3rem; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.form-ok { display: none; background: #e3f5e8; border: 1px solid #9ad3a9; color: #17502a; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 600; }
.form-ok.is-visible { display: block; }

/* ---------- Passi / FAQ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lemon); color: var(--navy); font: 800 1.1rem var(--font-display);
  margin-bottom: 1rem;
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Destinazioni ---------- */
.dest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dest div {
  padding: 1.4rem 1.2rem; border-radius: var(--radius);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.dest strong { display: block; font: 700 1.25rem var(--font-display); color: var(--white); margin-bottom: .2rem; }
.dest span { font-size: .95rem; color: #aebfcc; }
@media (max-width: 860px) { .dest { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Banner CTA ---------- */
.cta-band { background: var(--lemon); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.6rem; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band .btn--primary { background: var(--navy); color: var(--white); }
.cta-band .btn--primary:hover { background: var(--navy-2); color: var(--white); }

/* ---------- Dettaglio scheda ---------- */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail-gallery .main {
  background: var(--foam); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 5 / 3; border: 1px solid var(--line);
}
.detail-gallery .main svg { width: 100%; height: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .7rem; }
.thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm);
  background: var(--foam); cursor: pointer; overflow: hidden; aspect-ratio: 5 / 3;
}
.thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.thumbs svg { width: 100%; height: 100%; }
.detail-side { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
@media (max-width: 960px) { .detail-side { position: static; } }
.detail-side .price { font-size: 2.1rem; display: block; margin: .6rem 0 1.2rem; }
.detail-side .btn + .btn { margin-top: .7rem; }
.detail-side ul.contact-quick { list-style: none; margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.detail-side .contact-quick li { margin-bottom: .4rem; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.spec-table th, .spec-table td { padding: .75rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }
.spec-table td { font-weight: 700; color: var(--navy); }
.tick-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
.tick-list li { padding-left: 1.7rem; position: relative; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: .55rem;
  border-left: 3px solid var(--sea); border-bottom: 3px solid var(--sea); transform: rotate(-45deg) scale(.85);
}
@media (max-width: 560px) { .tick-list { grid-template-columns: 1fr; } }
.detail-block h2 { font-size: 1.55rem; margin-top: 2rem; }
.related-title { margin-bottom: 1.5rem; }

/* ---------- Contatti ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 24px; height: 24px; flex: none; color: var(--sea); margin-top: 2px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--sea); text-decoration: underline; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); margin-top: 1.5rem; background: var(--foam); }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a {
  padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy);
}
.social a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebfcc; padding: 4rem 0 1.5rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #cfe0ea; text-decoration: none; }
.site-footer a:hover { color: var(--lemon); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand .brand-mark { background: var(--navy-2); }
.footer-brand .brand-text small { color: #8ea6b8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.3rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---------- Logo e partner ---------- */
.brand-mark { width: auto; height: 34px; background: none; border-radius: 0; }
.brand-mark img { height: 34px; width: auto; }
.footer-brand .brand-mark { background: none; }
.partner-badge { display: inline-flex; flex-direction: column; gap: .5rem; background: var(--white); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-top: .5rem; }
.partner-badge img { height: 40px; width: auto; }
.partner-badge span { color: var(--navy); font-size: .82rem; font-weight: 600; }
.partner-logo { display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; }
.partner-logo img { width: min(100%, 360px); height: auto; }

/* ---------- Hero con foto ---------- */
.hero--photo { min-height: clamp(560px, 82vh, 780px); display: flex; align-items: center; padding: 4.5rem 0 9rem; }
.hero--photo .wrap { grid-template-columns: 1fr; position: relative; z-index: 2; }
.hero--photo .hero-copy { max-width: 600px; }
.hero--photo h1 { text-shadow: 0 2px 24px rgba(10, 25, 45, .35); }
.hero--photo .lead { color: #e1ebf2; }
.hero-slides { position: absolute; inset: 0; z-index: 0; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 33, 56, .90) 0%, rgba(14, 33, 56, .66) 42%, rgba(14, 33, 56, .12) 100%),
              linear-gradient(0deg, rgba(14, 33, 56, .55) 0%, rgba(14, 33, 56, 0) 38%);
}
.hero--photo .hero-waves { position: absolute; left: 0; bottom: -1px; margin: 0; z-index: 2; }
.hero--photo .hero-waves path:nth-child(1) { fill: rgba(31, 68, 102, .55); }
.hero-dots { position: absolute; z-index: 3; right: max(1.25rem, calc((100% - var(--wrap)) / 2)); bottom: 5.5rem; display: flex; gap: .5rem; }
.hero-dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: background .2s, transform .2s; }
.hero-dots button[aria-pressed="true"] { background: var(--lemon); border-color: var(--lemon); transform: scale(1.15); }
@media (max-width: 860px) {
  .hero--photo { min-height: 620px; padding: 3.5rem 0 8rem; }
  .hero-slides::after { background: linear-gradient(0deg, rgba(14, 33, 56, .82) 0%, rgba(14, 33, 56, .55) 100%); }
  .hero-dots { left: 1.25rem; right: auto; bottom: 4.75rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---------- Foto delle imbarcazioni ---------- */
.card-media { aspect-ratio: 4 / 3; }
.card-media img, .detail-gallery .main img, .thumbs img, .split-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.detail-gallery .main { aspect-ratio: 6 / 5; }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.thumbs button { aspect-ratio: 4 / 3; }
.split-art { aspect-ratio: 4 / 3; }
.price--ask { font-size: 1.15rem; font-weight: 700; }
.detail-side .price--ask { font-size: 1.5rem; }
.chip[hidden] { display: none; }
.sort label { white-space: nowrap; }
