/* Bacaro San Michele — sito statico (dicembre 2026) */

/* ---------- Font (self-hosted, SIL OFL: vedi assets/fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Token ---------- */
:root {
  --bg: #141414;
  --bar: #222222;
  --black: #000000;
  --text: #ffffff;
  --muted: #b9b9b9;
  --accent: #c1d2c7;
  --btn: #464d49;
  --btn-hover: #4c5650;
  --border: #363636;
  --radius-pill: 70px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffffff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; line-height: 1.25; margin: 0 0 .6em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #111; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, .92);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #2b2b2b;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #080808; }
}
.site-header .container { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; white-space: nowrap; }
.brand img { width: 44px; height: 44px; }
.brand:hover { color: var(--accent); }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav a { color: #e6e6e6; font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav__list { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.nav-toggle { display: none; }
.nav-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--btn); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); font-family: var(--font-head); font-size: .82rem; letter-spacing: .06em; white-space: nowrap; }
@media (hover: hover) {
  .nav-call:hover { background: var(--btn-hover); color: #fff; }
  .nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
}
.nav > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 860px) { .brand span { display: none; } }

/* Mobile: pulsante «Menu» che apre le voci a tendina sotto la barra */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    padding: 8px 16px 8px 12px; border: 1px solid #555; border-radius: var(--radius-pill);
    background: transparent; color: #fff; cursor: pointer;
    font: 400 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  }
  .nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .nav__list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px var(--gutter) 12px;
    background: #080808; border-bottom: 1px solid #2b2b2b; box-shadow: 0 16px 28px rgba(0, 0, 0, .5);
  }
  .nav-toggle[aria-expanded="true"] + .nav__list { display: block; }
  .nav__list li + li { border-top: 1px solid #2b2b2b; }
  .nav__list a { display: block; padding: 15px 4px; font-size: .95rem; letter-spacing: .16em; }
}
/* Telefoni stretti: il pulsante di chiamata diventa solo icona */
@media (max-width: 480px) {
  .nav-call { width: 44px; height: 44px; padding: 0; }
  .nav-call .icon { width: 1.35em; height: 1.35em; }
  .nav-call__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 900px);
  min-height: min(92svh, 900px);
  display: grid; place-items: center;
  padding: 72px var(--gutter);
  text-align: center;
  overflow: hidden;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -2; }
.hero__bg img { object-fit: cover; object-position: 50% 70%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.30) 70%, rgba(20,20,20,.85) 100%); }
.hero h1 { margin: 0; }
.hero__logo { width: clamp(200px, 34vw, 300px); height: auto; margin: 0 auto 40px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.45)); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: min(100%, 300px);
  padding: 16px 32px; border-radius: var(--radius-pill);
  background: var(--btn); color: #fff;
  font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; letter-spacing: .04em;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--btn-hover); color: #fff; transform: translateY(-1px); }
.btn small { font-family: var(--font-body); font-size: .9rem; opacity: .9; letter-spacing: 0; }
.btn--row { flex-direction: row; gap: 12px; }

/* ---------- Barra contatti ---------- */
.contact-bar { background: var(--bar); padding: 18px 0; }
.contact-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-bar__icons, .social { display: flex; gap: 6px; }
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.icon-link:hover { color: var(--accent); background: rgba(255,255,255,.06); }
.icon-link .icon { width: 24px; height: 24px; }
.contact-bar__text {
  flex: 1 1 420px; margin: 0; color: #eee;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 28px; row-gap: 2px;
}
.contact-bar__text strong { color: #fff; }
.contact-bar__text a { color: #fff; white-space: nowrap; }
.contact-bar__text a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .contact-bar .container { justify-content: center; }
  .contact-bar__text { flex-basis: 100%; order: -1; flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bar); }
.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-transform: uppercase; letter-spacing: .28em;
  text-align: center; margin-bottom: 1.6em;
}
.section-title::after { content: ""; display: block; width: 48px; height: 1px; background: var(--accent); margin: .9em auto 0; }

/* Galleria */
.gallery { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; overflow: hidden; background: #0d0d0d; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.gallery img.pos-top { object-position: 50% 18%; }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gallery img, .btn { transition: none; } .gallery figure:hover img, .btn:hover { transform: none; } }

/* Chi siamo */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); max-width: 1000px; margin: 0 auto; }
.about p { margin: 0; color: #e9e9e9; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Banda fotografica (cicchetti) */
.photo-band {
  min-height: clamp(320px, 55vh, 560px);
  background-color: #1a1a1a;
  background-image: url("../img/cicchetti-900.webp");
  background-size: cover; background-position: center right;
  position: relative;
}
.photo-band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
@media (min-width: 901px) { .photo-band { background-image: url("../img/cicchetti.webp"); } }
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo-band { background-attachment: fixed; }
}

/* Dove siamo */
.visit { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.visit address { font-style: normal; }
.visit h3 { font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .4em; }
.visit p { margin: 0 0 1.2em; }
.visit a:not(.btn) { color: #fff; }
.visit a:not(.btn):hover { color: var(--accent); }
.visit .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit .actions .btn { min-width: 0; padding: 12px 22px; font-size: .95rem; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

.map {
  position: relative; min-height: 340px; border: 1px solid var(--border);
  background: #0e0e0e; display: grid; place-items: center; text-align: center; overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__consent { padding: 24px; max-width: 420px; }
.map__consent p { color: var(--muted); font-size: .95rem; margin: 0 0 1em; }
.map__consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.map__consent button {
  font: inherit; font-family: var(--font-head); cursor: pointer; border: 0;
  background: var(--btn); color: #fff; padding: 12px 24px; border-radius: var(--radius-pill);
}
.map__consent button:hover { background: var(--btn-hover); }
.map__alt { margin-top: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfcfcf; padding: 36px 0 28px; font-size: .95rem; }
.site-footer .container { display: grid; gap: 14px; justify-items: center; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer .fine { color: #a3a3a3; font-size: .85rem; }

/* ---------- Pagina Delivery ---------- */
.page-grazie {
  background-color: #bfd2c7;
  background-image: url("../img/pattern-grazie.jpg");
  background-repeat: repeat;
}
.grazie { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 56px var(--gutter); }
.grazie__card {
  width: 100%; max-width: 520px;
  background: #4b524d; color: #fff;
  border-radius: 20px;
  padding: clamp(32px, 6vw, 60px) clamp(20px, 8%, 48px);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  text-align: center;
}
.grazie h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1em; }
.grazie__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.grazie__links .btn { width: 100%; min-width: 0; flex-direction: row; gap: 12px; background: #444444; }
.grazie__links .btn--site { background: #ffffff; color: #000; }
.grazie__links .btn--site:hover { background: #f2f2f2; color: #000; }
.grazie__links .btn--playlist { background: #3db547; color: #000; }
.grazie__links .btn--playlist:hover { background: #359e41; color: #000; }
.grazie__links .btn--order:hover { background: #d41c00; }
.grazie__links .btn--fb:hover { background: #41578e; }
.grazie__links .btn--ig:hover { background: #c4105f; }
.grazie__links .btn--dark:hover { background: #222222; }
.grazie__links .sep-before { border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; margin-top: 6px; }
.grazie__note { margin: 1.6em 0 0; font-size: .85rem; color: #e3e3e3; }
.grazie__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pagine di testo (privacy) ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .08em; margin-bottom: 1em; }
.legal h2 { font-size: 1.25rem; color: var(--accent); margin-top: 2em; letter-spacing: .04em; }
.legal p, .legal li { color: #e6e6e6; }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound img { width: 160px; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .12em; text-transform: uppercase; }
.notfound p { color: var(--muted); }

/* ---------- Modalità a contrasto elevato ---------- */
@media (forced-colors: active) {
  .btn, .nav-call, .nav-toggle, .map__consent button { border: 1px solid ButtonText; }
}
