/* =========================================================
   Antica Trattoria dagli Angeli — Static rebuild
   Font: Open Sans · Accento brand: senape/ocra #c8912a
   ========================================================= */

/* ---- Font self-hosted (Open Sans + Playfair Display) · subset latin/latin-ext ----
   Ospitati in locale (niente richieste a Google Fonts) per conformita GDPR. */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/open-sans-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/open-sans-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/open-sans-normal-300-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/open-sans-normal-300-800-latin.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-normal-600-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-normal-600-700-latin.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Variabili ---- */
:root {
  --accento: #c8912a;         /* senape/ocra */
  --accento-scuro: #a0731f;   /* ocra scuro: hover e testo su chiaro */
  --accento-profondo: #8f5f14; /* fondo sezione, per leggibilita del testo bianco */
  --scuro: #313131;
  --scuro-2: #333333;
  --chiaro: #ffffff;
  --crema: #fdfdfd;
  --grigio: #f3f3f3;
  --bordo: #e2e2e2;
  --testo: #333333;
  --testo-soft: #666666;
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-titoli: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --max: 1080px;
  --header-h: 84px;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .14);
  --transizione: .25s ease;
}

/* ---- Reset di base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--testo);
  background: var(--chiaro);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accento-scuro); text-decoration: none; transition: color var(--transizione); }
a:hover { color: var(--accento); }

h1, h2, h3 {
  font-family: var(--font-titoli);
  line-height: 1.2;
  color: var(--scuro);
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--crema { background: var(--crema); }
.section--grigio { background: var(--grigio); }
.section--scuro { background: var(--scuro); color: #eaeaea; }
.section--scuro h2,
.section--scuro h3 { color: #fff; }
.section--accento { background: var(--accento-profondo); color: #fff; }
.section--accento h2,
.section--accento h3 { color: #fff; }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section__head .sub {
  color: var(--accento);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.section--scuro .section__head .sub,
.section--accento .section__head .sub { color: #f6e7c6; }

.eyebrow {
  display: inline-block;
  color: var(--accento);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---- Bottoni ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 2px solid var(--accento);
  background: var(--accento);
  color: #fff !important;
  cursor: pointer;
  transition: all var(--transizione);
  white-space: nowrap;
}
.btn:hover { background: var(--accento-scuro); border-color: var(--accento-scuro); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accento) !important; }
.btn--ghost:hover { background: var(--accento); color: #fff !important; }
.btn--light { background: #fff; border-color: #fff; color: var(--accento-scuro) !important; }
.btn--light:hover { background: #f0f0f0; border-color: #f0f0f0; color: var(--accento-profondo) !important; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: height var(--transizione), box-shadow var(--transizione), border-color var(--transizione);
}
.site-header.scrolled { height: 68px; box-shadow: var(--shadow); border-color: var(--bordo); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; transition: height var(--transizione); }
.site-header.scrolled .brand img { height: 44px; }
.brand__name {
  font-family: var(--font-titoli);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--scuro);
  line-height: 1.1;
}
.brand__name small { display: block; font-family: var(--font); font-weight: 400; font-size: .72rem; color: var(--testo-soft); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--scuro);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
}
.nav a:hover { color: var(--accento); }
.nav .btn { color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--scuro); transition: all var(--transizione); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--header-h) + 60px) 0 70px;
  background:
    linear-gradient(rgba(15, 25, 35, .24), rgba(15, 25, 35, .40)),
    url('../assets/img/angeli-trattoria.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed; /* effetto parallasse */
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 6vw, 4rem);
  margin-bottom: .35em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 2px 24px rgba(0, 0, 0, .45);
}
.hero .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto 2em;
  color: #f2f2f2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   QR MENU
   ========================================================= */
.qr {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.qr img {
  width: 190px; height: 190px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.qr__text { max-width: 420px; text-align: left; }
.qr__text h3 { font-size: 1.5rem; }

/* =========================================================
   INTRO / CHI SIAMO
   ========================================================= */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { color: var(--testo); }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.feature {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature .ico { font-size: 2rem; margin-bottom: 10px; }
.feature--photo { padding: 0 0 30px; overflow: hidden; }
.feature--photo h3,
.feature--photo p { padding-left: 24px; padding-right: 24px; }
.feature__img {
  width: 100%;
  margin: 0 0 18px;
  height: 170px;
  object-fit: cover;
  display: block;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { font-size: .95rem; color: var(--testo-soft); margin: 0; }

/* =========================================================
   CERTIFICAZIONI
   ========================================================= */
.certs { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; align-items: center; }
.certs img {
  max-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

/* =========================================================
   ORARI
   ========================================================= */
.hours {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--bordo);
}
.hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 26px;
  list-style: none;
  border-bottom: 1px solid var(--grigio);
}
.hours ul { margin: 0; padding: 0; }
.hours li:last-child { border-bottom: 0; }
.hours .giorno { font-weight: 700; color: var(--scuro); }
.hours .ore { color: var(--testo-soft); text-align: right; }
.hours li.chiuso { background: #fafafa; }
.hours li.chiuso .ore { color: #b03a2e; font-weight: 600; }
.hours li.oggi { background: #fbf1da; }

/* =========================================================
   STORIA
   ========================================================= */
.storia__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: center;
}
.storia__grid .prose { max-width: none; margin: 0; }

.storia__foto {
  margin: 0;
  padding: 14px;
  background: #fffdf8;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
  transition: transform var(--transizione);
}
.storia__foto:hover { transform: rotate(0); }
.storia__foto img {
  width: 100%;
  display: block;
  border-radius: 3px;
  filter: sepia(.18) contrast(1.03);
}

.storia .prose p:first-of-type::first-letter {
  font-family: var(--font-titoli);
  font-size: 3.4rem;
  line-height: .8;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accento);
}

/* =========================================================
   GNOCCO (split)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
}
.split .media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 46px;
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; justify-content: center; }

.info-list { list-style: none; margin: 0 0 34px; padding: 0; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.info-list li:first-child { padding-top: 0; }
.info-ico {
  flex: none;
  width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accento);
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.info-label {
  display: block;
  color: var(--accento);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-value { display: block; color: #ececec; line-height: 1.6; }
.info-value a { color: #ececec; }
.info-value a:hover { color: #fff; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  min-height: 360px;
}
.contact-map iframe {
  width: 100%; height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: grayscale(.12) contrast(1.02);
}
.map-consent {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 30px 26px;
  background: linear-gradient(135deg, #3a3a3a, #2b2b2b);
}
.map-consent__title { font-family: var(--font-titoli); font-size: 1.4rem; color: #fff; margin: 0; }
.map-consent__text { color: #c4c4c4; font-size: .88rem; max-width: 340px; margin: 4px 0 16px; }
.map-consent .btn { margin-bottom: 4px; }
.map-consent__alt { color: #cdb27a; font-size: .85rem; font-weight: 600; }
.map-consent__alt:hover { color: #fff; }

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

.socials { display: flex; gap: 14px; margin-top: 26px; }
.socials a {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 700;
  transition: all var(--transizione);
}
.socials a:hover { background: #fff; color: var(--accento); transform: translateY(-3px); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #262626;
  color: #b8b8b8;
  padding: 50px 0 26px;
  font-size: .9rem;
  text-align: center;
}
.site-footer img { height: 60px; margin: 0 auto 18px; opacity: .95; }
.site-footer .foot-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.site-footer .foot-links a { color: #cfcfcf; }
.site-footer .foot-links a:hover { color: #fff; }
.site-footer .foot-links button { background: none; border: 0; color: #cfcfcf; font: inherit; cursor: pointer; padding: 0; }
.site-footer .foot-links button:hover { color: #fff; text-decoration: underline; }
.site-footer .copy { margin-top: 14px; font-size: .82rem; color: #8a8a8a; }
.site-footer .copy a { color: #b8b8b8; }

/* =========================================================
   PAGINE LEGALI
   ========================================================= */
.legal { padding: calc(var(--header-h) + 60px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .4em; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; color: var(--accento); }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .aggiornato { color: var(--testo-soft); font-size: .9rem; margin-bottom: 2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.legal th, .legal td { border: 1px solid var(--bordo); padding: 10px 14px; text-align: left; font-size: .92rem; }
.legal th { background: var(--grigio); }
.legal-back { display: inline-block; margin-top: 2.5em; }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 1200;
  transform: translateY(150%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .9rem; margin-bottom: 14px; color: var(--testo); }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 20px; font-size: .85rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .contact-map { min-height: 300px; }
  .split { grid-template-columns: 1fr; }
  .split .media { min-height: 240px; }

  .storia__grid { grid-template-columns: 1fr; gap: 34px; }
  .storia__foto { transform: none; max-width: 460px; margin: 0 auto; }
  .storia__foto:hover { transform: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .brand__name { display: none; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--bordo);
    box-shadow: var(--shadow);
    padding: 8px 0 16px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--grigio); }
  .nav .btn { margin: 12px 24px 0; justify-content: center; }

  /* parallasse (background-attachment: fixed) e' inaffidabile su mobile */
  .hero { background-attachment: scroll; }

  .section { padding: 60px 0; }
  .features { grid-template-columns: 1fr; }
  .qr { flex-direction: column; }
  .qr__text { text-align: center; }
  .hours li { padding: 13px 20px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero { min-height: 70vh; }
  .certs img { max-width: 45%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero { background-attachment: scroll; }
}
