:root {
  --cream: #f5efe3;
  --cream-2: #ebe3d2;
  --ink: #143845;
  --ink-2: #3a5560;
  --muted: #6a7e86;
  --muted-2: #8a9aa0;
  --blue: #15536f;
  --blue-accent: #2d86ad;
  --deep: #0f3a4f;
  --deepest: #0a2a3a;
  --paper: #fffefb;
  --on-deep: #dcebef;
  --on-deep-2: #eaf3f6;
  --sky: #7cc2dd;
  --gold: #e0a93b;
  --wa: #25D366;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id],
header[id] {
  scroll-margin-top: 76px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--blue-accent);
  color: var(--paper);
}

/* Accessibilità: focus visibile */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  font-size: 14px;
}

.skip:focus {
  left: 0;
}

@keyframes sugFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

@keyframes sugFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  height: var(--nav-h);
  background: rgba(245, 239, 227, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 56, 69, 0.10);
  transition: background .3s ease, box-shadow .3s ease;
}

.nav.scrolled {
  background: rgba(245, 239, 227, 0.97);
  box-shadow: 0 8px 30px -22px rgba(20, 56, 69, .6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: auto;
  height: 66px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.navlink {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  opacity: .82;
  transition: opacity .2s ease;
}

.navlink:hover {
  opacity: 1;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.btn-book:hover {
  background: #0f3a4f;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav.open .nav-toggle span {
  background: transparent;
}

.nav.open .nav-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Sfondo mediterraneo: sostituibile con una vera foto (vedi commento HTML) */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(255, 240, 200, .42), transparent 55%),
    linear-gradient(180deg, #3a9bc1 0%, #2d86ad 34%, #15536f 70%, #0f3a4f 100%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 42, 58, .42) 0%, rgba(13, 42, 58, .12) 32%, rgba(13, 42, 58, .30) 64%, rgba(11, 35, 48, .88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 8vh, 96px);
  color: var(--paper);
}

.hero-inner {
  max-width: 760px;
  animation: sugFade .9s ease both;
}

.eyebrow-hero {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .9;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 254, 251, .5);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 104px);
  line-height: .98;
  margin: 0 0 20px;
  letter-spacing: -.5px;
}

.hero-sub {
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.45;
  max-width: 560px;
  margin: 0 0 34px;
  opacity: .94;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-solid {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .5);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 254, 251, .12);
  color: var(--paper);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 254, 251, .55);
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}

.cta-ghost:hover {
  background: rgba(255, 254, 251, .22);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--paper);
  font-size: 24px;
  animation: sugFloat 2.6s ease-in-out infinite;
  opacity: .85;
}

/* ===================== INTRO STRIP ===================== */
.strip {
  background: var(--blue);
  color: var(--on-deep-2);
  text-align: center;
  padding: clamp(30px, 5vw, 46px) clamp(20px, 5vw, 64px);
}

.strip p {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.4;
  max-width: 880px;
  margin: 0 auto;
  font-weight: 400;
}

/* ===================== LAYOUT GENERICO ===================== */
.section {
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-accent);
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

.center {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ===================== STORIA ===================== */
.storia {
  background: var(--cream);
}

.storia .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.storia h2 {
  margin-bottom: 26px;
}

.storia p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--ink-2);
}

.storia p:last-of-type {
  margin-bottom: 0;
}

.stats {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 38px;
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

.storia-figure {
  position: relative;
}

.figure-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 6px;
  box-shadow: 0 16px 40px -22px rgba(20, 56, 69, .5);
  max-width: 200px;
}

.figure-badge .t {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.figure-badge .d {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ===================== FOTO / PLACEHOLDER ===================== */
/* I .photo sono segnaposto eleganti: sostituiscili con <img> reali.
   Esempio:  <img class="photo" src="img/crudo.jpg" alt="Crudo di pesce"> */
.photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  color: var(--paper);
  text-align: center;
  background: linear-gradient(135deg, #2d86ad, #0f3a4f);
  object-fit: cover;
}

.photo.sand {
  background: linear-gradient(135deg, #d8c9a6, #bfa97e);
  color: #5a4a2c;
}

.photo.deep {
  background: linear-gradient(135deg, #15536f, #0a2a3a);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .10;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 80%, #fff 1px, transparent 1.4px);
  background-size: 22px 22px;
}

.photo span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .5px;
  padding: 0 14px;
  opacity: .92;
}

.photo--portrait {
  aspect-ratio: 4/5;
  box-shadow: 0 24px 60px -28px rgba(20, 56, 69, .55);
}

/* ===================== GALLERIA ===================== */
.galleria {
  background: var(--cream-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-grid .photo {
  width: 100%;
  height: 100%;
}

.span-2 {
  grid-row: span 2;
}

/* ===================== RECENSIONI ===================== */
.recensioni {
  background: var(--cream);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.review {
  margin: 0;
  background: var(--paper);
  border-radius: 8px;
  padding: 32px 30px;
  box-shadow: 0 14px 40px -28px rgba(20, 56, 69, .5);
  display: flex;
  flex-direction: column;
}

.review .stars {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review blockquote {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  flex: 1;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
}

.review .name {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.review .meta {
  display: block;
  font-size: 12.5px;
  color: var(--muted-2);
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
  color: var(--blue-accent);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

/* ===================== CONTATTI + MAPPA ===================== */
.contatti {
  background: var(--deep);
  color: var(--on-deep);
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contatti-info {
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
}

.eyebrow-deep {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 16px;
}

.contatti h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.06;
  margin: 0 0 36px;
  color: var(--paper);
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.info-label {
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 7px;
}

.info-value {
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-deep-2);
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--sky);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.hours {
  font-size: 16px;
  line-height: 1.85;
  color: var(--on-deep-2);
}

.hours .closed {
  color: #9fb6bd;
}

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.pill-tel,
.pill-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--deep);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
}

.pill-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #0a3d20;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
}

.map-wrap {
  position: relative;
  min-height: 360px;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.85);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--deepest);
  color: #9fb6bd;
  padding: 42px clamp(20px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer .brand-mark {
  width: auto;
  height: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand .name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--on-deep);
}

.footer-meta {
  font-size: 13px;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width:768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(245, 239, 227, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 56, 69, .10);
    padding: 8px clamp(20px, 5vw, 64px) 22px;
    transform: translateY(-130%);
    transition: transform .35s ease;
    box-shadow: 0 18px 40px -28px rgba(20, 56, 69, .6);
  }

  .nav.open .nav-links {
    transform: translateY(0);
  }

  .navlink {
    padding: 15px 0;
    font-size: 16px;
    opacity: 1;
    border-bottom: 1px solid rgba(20, 56, 69, .08);
  }

  .nav-links .btn-book {
    margin-top: 14px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}