/* L'Acciughina — home statica
   Palette e tipografia rilevate dal sito attuale (vedi docs/01-colori-e-font.md). */

:root {
  --rosso: #c50c20;
  --antracite: #212121;
  --bianco: #fff;
  --grigio: #7a7a7a;
  --scuro: #292a2a;
  --petrolio: #143140;
  --ridotto: #ededed;

  --font-testo: "Poppins", system-ui, sans-serif;
  --font-titoli: "Montserrat", system-ui, sans-serif;
  --font-cta: "Roboto", system-ui, sans-serif;
  --font-form: "Inter", system-ui, sans-serif;

  --wrap: 1140px;
  --gutter: 24px;
  --radius-btn: 30px 0 30px 0;
  --focus: 3px solid #ffd400;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bianco);
  color: var(--antracite);
  font-family: var(--font-testo);
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2 { font-family: var(--font-titoli); line-height: 1.2; margin: 0; }

:focus-visible { outline: var(--focus); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 12px 18px;
  background: var(--bianco);
  color: var(--antracite);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 0;
  border-radius: 3px;
  font-family: var(--font-cta);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.btn--primary { background: var(--rosso); color: var(--bianco); border-radius: var(--radius-btn); }
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--bianco); color: #000; }
.btn--primary:hover span,
.btn--primary:focus-visible span { color: #000; }

.btn--ghost {
  background: transparent;
  color: var(--bianco);
  border: 2px solid var(--bianco);
  border-radius: var(--radius-btn);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--bianco); color: var(--antracite); }

.btn--dark { background: var(--antracite); color: var(--bianco); font-family: var(--font-testo); font-size: 17px; }
.btn--dark:hover,
.btn--dark:focus-visible { background: #000; }

.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  background: var(--antracite);
  padding: 22px var(--gutter);
  display: flex;
  justify-content: center;
}
.site-header__brand img { width: 400px; max-width: 100%; height: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--bianco);
  padding: 56px 0 64px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.45) 100%);
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 32px;
}

.hero__content { max-width: 620px; }
.hero__logo { width: 300px; margin-bottom: 20px; }
.hero__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  background: var(--rosso);
  border-radius: var(--radius-btn);
  font-family: var(--font-cta);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 300;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero h1 em {
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  white-space: nowrap;
}
.hero__lead {
  margin: 18px 0 26px;
  font-size: 18px;
  max-width: 30em;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__card {
  background: var(--antracite);
  padding: 26px;
  border-radius: 4px;
  max-width: 420px;
  width: 100%;
  justify-self: start;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.hero__card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--bianco);
}

/* ---------- contatti in evidenza ---------- */
.hero__card-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ridotto); }
.hero__card-line { margin: 0 0 14px; font-size: 18px; font-weight: 500; }
.hero__card-line a { color: var(--bianco); text-decoration: underline; text-underline-offset: 4px; }
.hero__card-line a:hover,
.hero__card-line a:focus-visible { color: #ffd400; }
.hero__card .btn { margin-top: 10px; }

/* ---------- fasce ---------- */
.band { padding: 64px 0; }
.band--red { background: var(--rosso); color: var(--bianco); }
.band--dark { background: var(--antracite); color: var(--bianco); }

.band h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
}
.band__copy p { margin: 0 0 18px; font-size: 18px; text-align: center; }
.band__copy { max-width: 960px; margin-inline: auto; }
.band__highlight {
  margin: 28px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
}
.band__highlight strong {
  font-weight: 600;
  color: var(--ridotto);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- split ---------- */
.split { padding: 64px 0 0; }
.split--restaurant { padding-bottom: 56px; }
.split__row {
  display: grid;
  gap: 32px;
  align-items: center;
}
.split__media { margin: 0; }
.split__media img { width: 100%; border-radius: 2px; }
.split__text h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  color: var(--antracite);
  margin-bottom: 18px;
}
.split__text p { margin: 0 0 14px; color: var(--grigio); font-size: 16px; }

/* ---------- galleria ---------- */
.gallery-band h2 { margin-bottom: 28px; }
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.gallery a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background-color .3s ease;
}
.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.04); }
.gallery a:hover::after,
.gallery a:focus-visible::after { background: rgba(0,0,0,.45); }

/* ---------- due CTA ---------- */
.cta-pair { padding: 40px 0; }
.cta-pair__row { display: grid; gap: 16px; justify-items: center; }
.cta-pair .btn { width: 100%; max-width: 380px; }

/* ---------- contatti ---------- */
.contact-band { padding: 56px 0; }
.contact-band h2 { margin-bottom: 24px; font-size: clamp(22px, 2.2vw, 27px); }
.contact-band__line {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
}
.contact-band__line a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- informazioni ---------- */
.info { padding: 64px 0; }
.info__row { display: grid; gap: 32px; }
.info__data h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; color: var(--scuro); margin-bottom: 24px; }
.info__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.info__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; font-weight: 500; }
.info__list a { text-decoration: none; }
.info__list a:hover, .info__list a:focus-visible { text-decoration: underline; }
.i { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
.ico { display: inline-flex; line-height: 1; color: var(--scuro); margin-top: 3px; }
.btn .i { width: 18px; height: 18px; }
.info__actions .btn .i { width: 17px; height: 17px; }
.info__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.social {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--antracite);
  color: var(--bianco);
  border-radius: 50%;
  text-decoration: none;
}
.social svg { width: 22px; height: 22px; }
.social:hover, .social:focus-visible { background: #000; }

.info__map {
  background: #f4f6f8;
  border: 1px solid #dde3e8;
  border-radius: 4px;
  padding: 36px;
  min-height: 420px;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: start;
}
.info__map-title { margin: 0; font-family: var(--font-titoli); font-weight: 600; font-size: 20px; }
.info__map-address { margin: 0; color: var(--grigio); }
.info__map-note { margin: 0; font-size: 13px; color: var(--grigio); }
.info__map-link { font-size: 14px; color: var(--antracite); }
.info__map iframe { width: 100%; height: 420px; border: 0; border-radius: 3px; }

/* ---------- footer ---------- */
.site-footer { background: var(--antracite); color: var(--bianco); padding: 36px 0; }
.site-footer__row { display: grid; gap: 22px; }
.site-footer img { width: 200px; }
.site-footer__legal p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.site-footer a { color: #fff; }
.site-footer__policies { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px !important; }
.site-footer__policies a { font-size: 13px; text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); }
.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(1400px, 94vw);
  max-height: 92vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  object-fit: contain;
}
.lightbox__figure figcaption { color: #fff; font-size: 14px; text-align: center; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { top: -56px; right: 0; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: -58px; }
.lightbox__nav--next { right: -58px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.3); }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero { padding: 72px 0 80px; }
  .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr); align-items: center; gap: 48px; }
  .hero__card { justify-self: end; }
  .split__row { grid-template-columns: 1fr 1fr; gap: 48px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-pair__row { grid-template-columns: 1fr 1fr; justify-items: stretch; }
  .cta-pair .btn { max-width: none; }
  .info__row { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .site-footer__row { grid-template-columns: 200px 1fr; align-items: center; gap: 32px; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .band { padding: 80px 0; }
  .split { padding-top: 80px; }
  .info { padding: 80px 0; }
  .hero__logo { width: 380px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gallery a:hover img, .gallery a:focus-visible img { transform: none; }
}
