/* =====================================================================
   CASCINA CORTENUOVA — shared design system
   Bio editoriale premium · Fraunces + Inter + Caveat wordmark
   ===================================================================== */

:root {
  --green-forest: #2F4220;
  --green-olive:  #415A2A;
  --green-sage:   #7D9A52;
  --green-deep:   #1E2C13;
  --cream-paper:  #F5F2E8;
  --cream-bright: #FCFAF3;
  --cream-warm:   #EFE8D4;
  --green-box:    #E7EDD7;
  --ink:          #2B3320;
  --ink-soft:     rgba(43,51,32,0.72);
  --ink-mute:     rgba(43,51,32,0.52);
  --rule:         rgba(43,51,32,0.22);
  --rule-soft:    rgba(43,51,32,0.12);
  --honey:        #B8954A;
  --honey-bright: #C9A64F;
  --terracotta:   #B5613B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-paper);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.20  0 0 0 0 0.13  0 0 0 0.08 0'/></filter><rect width='600' height='600' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.08;
}
em { font-style: italic; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.wrap-narrow { max-width: 940px; margin: 0 auto; padding: 0 48px; }

/* ---- Kicker / eyebrow ---- */
.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin: 0;
}
.eyebrow { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.eyebrow hr { width: 56px; height: 1px; background: var(--rule); border: 0; margin: 0; flex-shrink: 0; }

.lead {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.34;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 144;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 500; letter-spacing: 0.02em;
  padding: 16px 30px; border-radius: 100px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--honey); color: var(--cream-bright); }
.btn--primary:hover { background: var(--honey-bright); }
.btn--ghost { background: transparent; color: var(--cream-bright); border-color: rgba(252,250,243,0.5); }
.btn--ghost:hover { background: rgba(252,250,243,0.12); border-color: rgba(252,250,243,0.85); }
.btn--solid { background: var(--green-forest); color: var(--cream-bright); }
.btn--solid:hover { background: var(--green-olive); }
.btn--sm { padding: 12px 22px; font-size: 14px; }

/* text link with underline */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500;
  color: var(--green-olive); text-decoration: none;
  border-bottom: 1.5px solid var(--green-sage); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.tlink:hover { color: var(--honey); border-color: var(--honey); }

/* =====================================================================
   HEADER — persistent, transparent over hero, solid on scroll
   ===================================================================== */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 18px 48px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
/* Interior pages / scrolled → solid cream head */
body.solid-head .site-head,
.site-head.scrolled {
  background: rgba(245,242,232,0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule-soft);
  padding: 12px 48px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; display: block; }
.brand .bm {
  font-family: 'Caveat', cursive; font-weight: 600; font-size: 28px; line-height: 1;
  color: var(--cream-bright); white-space: nowrap; transition: color .3s ease;
}
body.solid-head .brand .bm, .site-head.scrolled .brand .bm { color: var(--green-olive); }

.nav { display: flex; align-items: center; gap: 22px; min-width: 0; }
/* margine minimo invalicabile tra wordmark e prima voce: solo dove la nav desktop è visibile */
@media (min-width: 1151px) { .nav { margin-left: 40px; } }
.nav-links { display: flex; align-items: center; gap: 19px; }
/* il wordmark non deve mai essere coperto: margine minimo invalicabile prima della nav */
@media (min-width: 1151px) and (max-width: 1360px) {
  .nav { margin-left: 32px; gap: 16px; }
  .nav-links { gap: 13px; }
  .nav-links > a, .nav-item > a, .nav-item > button { font-size: 13px; }
}
.nav-links > a, .nav-item > a, .nav-item > button {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; color: rgba(252,250,243,0.9); white-space: nowrap;
  transition: color .25s ease; background: none; border: 0; cursor: pointer; padding: 0;
}
body.solid-head .nav-links > a, body.solid-head .nav-item > a, body.solid-head .nav-item > button,
.site-head.scrolled .nav-links > a, .site-head.scrolled .nav-item > a, .site-head.scrolled .nav-item > button {
  color: var(--ink-soft);
}
.nav-links a:hover, .nav-item > a:hover, .nav-item > button:hover { color: var(--honey) !important; }
.nav-links a.active { color: var(--honey) !important; }

/* dropdown */
.nav-item { position: relative; }
.nav-item > button { display: inline-flex; align-items: center; gap: 5px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; line-height: 1; }
.nav-item > button .chev { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-item:hover > button .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px; padding: 12px; margin-top: 8px;
  background: var(--cream-bright); border: 1px solid var(--rule-soft); border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(30,44,19,0.45);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content:''; position:absolute; top:-10px; left:0; right:0; height:10px; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--ink-soft) !important;
  text-decoration: none; transition: background .18s ease, color .18s ease;
}
.dropdown a:hover { background: var(--green-box); color: var(--green-forest) !important; }
.dropdown .dd-head {
  padding: 6px 14px 10px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-sage); font-weight: 600; border-bottom: 1px solid var(--rule-soft); margin-bottom: 8px;
}

.burger { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: flex-end; overflow: hidden;
}
.hero.hero--tall { min-height: 100vh; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero .veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(30,44,19,0.55) 0%, rgba(30,44,19,0.22) 34%, rgba(30,44,19,0.78) 100%),
    linear-gradient(180deg, rgba(47,66,32,0.24), rgba(47,66,32,0.24));
}
.hero .veil--green {
  background:
    linear-gradient(180deg, rgba(47,66,32,0.72) 0%, rgba(47,66,32,0.70) 38%, rgba(47,66,32,0.88) 100%),
    linear-gradient(180deg, rgba(30,44,19,0.18), rgba(30,44,19,0.18));
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 84px; padding-top: 112px; }
.hero .kicker-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .kicker { color: rgba(252,250,243,0.92); }
.hero .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(252,250,243,0.7); }
.hero .bm-script {
  font-family: 'Caveat', cursive; font-weight: 600; font-size: clamp(30px, 4vw, 48px);
  color: rgba(252,250,243,0.96); line-height: 1; margin-bottom: 8px;
  display: flex; align-items: center; gap: 18px;
}
.hero .bm-script img { width: clamp(38px, 4vw, 52px); height: clamp(38px, 4vw, 52px); }
.hero h1 {
  font-size: clamp(52px, 8.5vw, 122px); font-weight: 300; line-height: 0.94;
  color: var(--cream-bright); margin: 8px 0 24px; max-width: 15ch;
}
.hero h1 em { font-style: italic; font-weight: 300; }
.hero .tagline {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: clamp(22px, 3vw, 38px); line-height: 1.24; color: rgba(252,250,243,0.94);
  max-width: 900px; font-variation-settings: "opsz" 144; margin-bottom: 40px;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
/* hero bottom: hours bar first, CTAs below */
.hero-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 34px; }
.hero-bottom .cta-row { margin: 0; }
.hero-hours { width: min(700px, 100%); }
.hh {
  background: rgba(30,44,19,0.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(184,149,74,0.5); border-radius: 14px; padding: 20px 24px;
  color: rgba(252,250,243,0.92); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.6);
}
.hh-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.hh-k { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--honey-bright); }
.hh-status { display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: rgba(252,250,243,0.92); }
.hh-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hh-dot.open { background: #82c98a; box-shadow: 0 0 0 3px rgba(130,201,138,0.24); }
.hh-dot.closed { background: #d98a6a; box-shadow: 0 0 0 3px rgba(217,138,106,0.22); }
.hh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.hh-cell { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 15px; padding: 6px 10px; border-radius: 7px; }
.hh-cell .d { color: rgba(252,250,243,0.68); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.hh-cell .t { color: rgba(252,250,243,0.95); white-space: nowrap; }
.hh-cell.today { background: rgba(184,149,74,0.2); }
.hh-cell.today .d { color: var(--honey-bright); }
.hh-cell.closed .t { color: rgba(252,250,243,0.5); }
.hh-today { display: none; }
.hh-today-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hh-today-line { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--cream-bright); line-height: 1.35; }
.hh-tdetail { display: block; margin-top: 6px; font-size: 12px; color: rgba(252,250,243,0.7); }
.hh-toggle { flex-shrink: 0; background: none; border: 0; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--honey-bright); display: inline-flex; align-items: center; gap: 5px; padding: 4px 2px; }
.hh-chev { transition: transform .22s ease; display: inline-block; }
.hh-toggle.on .hh-chev { transform: rotate(180deg); }
.hh-acc { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(252,250,243,0.16); }
.hh-acc.open { display: block; }
.hh-arow { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13px; }
.hh-arow .d { color: rgba(252,250,243,0.72); }
.hh-arow .t { color: rgba(252,250,243,0.95); text-align: right; }
.hh-arow.today .d, .hh-arow.today .t { color: var(--honey-bright); font-weight: 600; }
.hh-arow.closed .t { color: rgba(252,250,243,0.5); }
.hh-notice { margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--honey-bright); }
@media (max-width: 1023px) { .hero-hours { width: min(100%, 720px); } }
@media (max-width: 900px) {
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-hours { width: 100%; }
}
@media (max-width: 767px) {
  .hh-grid { display: none; }
  .hh-today { display: block; }
}
/* compact interior hero */
.hero--page { min-height: 68vh; }
.hero--page .wrap { padding-bottom: 72px; padding-top: 130px; }
.hero--page h1 { font-size: clamp(46px, 7vw, 96px); margin-bottom: 8px; }

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
section { position: relative; }
.sec { padding: clamp(68px, 10vw, 128px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 92px) 0; }
.sec-head { max-width: 880px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 58px); }
.sec-head h2 em { font-style: italic; color: var(--green-olive); }
.sec-head .lead { margin-top: 22px; }
.bg-bright { background: var(--cream-bright); }
.bg-paper { background: var(--cream-paper); }
.bg-deep { background: var(--green-deep); color: var(--cream-bright); }
.bg-forest { background: var(--green-forest); color: var(--cream-bright); }
.bg-box { background: var(--green-box); }
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--cream-bright); }
.bg-deep .kicker, .bg-forest .kicker { color: var(--honey-bright); }
.bg-deep .eyebrow hr, .bg-forest .eyebrow hr { background: rgba(252,250,243,0.4); }
.bg-deep .lead, .bg-forest .lead { color: rgba(252,250,243,0.84); }

/* prose */
.prose p { color: var(--ink-soft); font-size: 19px; margin: 0 0 20px; max-width: 68ch; }
.prose p em { color: var(--green-olive); }
.bg-deep .prose p, .bg-forest .prose p { color: rgba(252,250,243,0.82); }

/* =====================================================================
   PHOTO PLACEHOLDER (elegant, labelled)
   ===================================================================== */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--cream-warm);
  background-image:
    repeating-linear-gradient(135deg, rgba(65,90,42,0.06) 0 2px, transparent 2px 11px);
  border: 1px solid var(--rule-soft);
  display: flex; align-items: center; justify-content: center;
}
.ph.is-photo { background-size: cover; background-position: center; background-repeat: no-repeat; border-color: transparent; }
.ph .ph-tag {
  position: relative; z-index: 1;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em;
  color: var(--green-olive); background: rgba(252,250,243,0.82);
  padding: 8px 13px; border: 1px solid var(--rule-soft); border-radius: 6px; text-align: center; line-height: 1.4;
  max-width: 82%;
}
.ph .ph-tag b { display:block; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; font-size:10px; color: var(--green-sage); margin-bottom:3px; }

/* =====================================================================
   CARD GRID (generic)
   ===================================================================== */
.tiles { display: grid; gap: 2px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.tiles.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--cream-bright); padding: 44px 40px; }

/* linked feature cards (image + title) */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--cream-bright); border: 1px solid var(--rule-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(30,44,19,0.4); }
.feature .fimg { height: 210px; }
.feature .fbody { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature .fnum { font-family: 'Fraunces', serif; font-weight: 300; font-size: 20px; color: var(--green-sage); font-variation-settings:"opsz" 144; }
.feature h3 { font-size: 25px; }
.feature h3 em { font-style: italic; color: var(--green-olive); }
.feature p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.feature .go {
  margin-top: 8px; font-family:'Inter',sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--green-olive); display: inline-flex; align-items: center; gap: 7px;
}
.feature:hover .go { color: var(--honey); }

/* =====================================================================
   INFO / DETAIL GRID
   ===================================================================== */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.detail-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.detail-item { padding: 34px 0 0; border-top: 2px solid var(--green-sage); }
.detail-item .k { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--green-sage); font-weight: 600; margin-bottom: 13px; }
.detail-item .v { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 350; line-height: 1.24; color: var(--ink); font-variation-settings:"opsz" 144; }
.detail-item .v em { font-style: italic; }
.detail-item .sub { font-size: 15px; color: var(--ink-mute); margin-top: 8px; line-height: 1.45; }

/* =====================================================================
   HIGHLIGHT BOX (orari, callout)
   ===================================================================== */
.callout {
  border: 1px solid var(--rule-soft); border-left: 3px solid var(--honey);
  background: var(--cream-bright); padding: 30px 34px; border-radius: 4px;
}
.callout .k { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-sage); font-weight: 600; margin-bottom: 10px; }
.callout p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.callout p em { color: var(--green-olive); }

.hours-box { background: var(--green-forest); color: var(--cream-bright); padding: 40px 44px; border-radius: 6px; }
.hours-box .k { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--honey-bright); font-weight: 600; margin-bottom: 20px; }
.hours-box .hr-row { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid rgba(252,250,243,0.16); font-size: 17px; }
.hours-box .hr-row:last-child { border-bottom: 0; }
.hours-box .hr-row .d { color: rgba(252,250,243,0.86); }
.hours-box .hr-row .t { font-family: 'Fraunces', serif; font-variation-settings:"opsz"144; font-size: 19px; }
.hours-box .hr-row.closed .t { color: rgba(252,250,243,0.5); }
.hours-box .note { margin-top: 18px; font-style: italic; font-family:'Fraunces',serif; font-variation-settings:"opsz"144; font-size: 15px; color: rgba(252,250,243,0.7); }

/* numbered puntata rows */
.puntata { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: clamp(48px,6vw,84px) 0; border-top: 1px solid var(--rule-soft); }
.puntata:nth-child(even) .p-media { order: 2; }
.puntata .p-media { height: 420px; }
.puntata .p-num { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(48px,6vw,72px); line-height: 0.8; color: var(--green-sage); font-variation-settings:"opsz"144; }
.puntata .p-kicker { margin: 22px 0 14px; }
.puntata h3 { font-size: clamp(28px, 3.4vw, 42px); }
.puntata h3 em { font-style: italic; color: var(--green-olive); }
.puntata p { color: var(--ink-soft); font-size: 18px; margin: 18px 0 0; max-width: 56ch; }
.puntata .badge { display:inline-flex; align-items:center; gap:8px; margin-top:18px; padding:7px 15px; border:1px solid var(--honey); border-radius:100px; font-family:'Inter',sans-serif; font-size:12px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--honey); }

/* timeline */
.timeline { max-width: 900px; margin: 0 auto; }
.tl-row { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--rule-soft); }
.tl-row:first-child { border-top: 0; }
.tl-year { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(38px,4.4vw,56px); line-height: 0.9; color: var(--green-olive); font-variation-settings:"opsz"144; }
.tl-body p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 52ch; }
.tl-body .tl-h { font-family: 'Fraunces', serif; font-size: 22px; color: var(--ink); font-variation-settings:"opsz"144; margin-bottom: 8px; display:block; }

/* blocchi testuali senza fotografia */
.tblocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); border-radius: 4px; overflow: hidden; }
.tblocks .tblock { background: var(--cream-bright); padding: 34px 36px 38px; }
.tblocks .tb-num { font-family: 'Fraunces', serif; font-weight: 300; font-size: 40px; line-height: 0.8; color: var(--green-sage); font-variation-settings:"opsz"144; }
.tblocks .tb-k { margin: 18px 0 10px; }
.tblocks h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.tblocks h3 em { font-style: italic; color: var(--green-olive); }
.tblocks p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; margin: 14px 0 0; max-width: 46ch; }
@media (max-width: 860px) { .tblocks { grid-template-columns: 1fr; } .tblocks .tblock { padding: 28px 26px 30px; } }
.tblocks .tblock:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* assortimento placeholder list */
.assort { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.assort .row { background: var(--cream-bright); padding: 22px 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.assort .row .nm { font-family: 'Fraunces', serif; font-size: 20px; font-variation-settings:"opsz"144; color: var(--ink); }
.assort .row .pr { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.assort .row .dsc { display:block; font-size: 14px; color: var(--ink-mute); margin-top: 4px; }

/* =====================================================================
   FORM (reused on didattica + contatti)
   ===================================================================== */
.form-card { background: var(--cream-bright); border-radius: 16px; padding: 46px 44px; color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4); }
.form-card .fc-head { font-family: 'Fraunces', serif; font-size: 27px; font-weight: 350; margin-bottom: 6px; font-variation-settings:"opsz"144; }
.form-card .fc-sub { font-size: 15px; color: var(--ink-mute); margin-bottom: 30px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family:'Inter',sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-olive); }
.field label .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  font-family:'Inter',sans-serif; font-size: 16px; color: var(--ink);
  background: var(--green-box); border: 1px solid rgba(125,154,82,0.4); border-radius: 10px;
  padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-olive); background:#fff; box-shadow: 0 0 0 3px rgba(125,154,82,0.18); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23415A2A' stroke-width='1.6'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-foot .priv { font-size: 13px; color: var(--ink-mute); max-width: 360px; line-height: 1.4; }
.form-card .btn--solid { background: var(--honey); color: var(--cream-bright); }
.form-card .btn--solid:hover { background: var(--honey-bright); }
.err { border-color: var(--terracotta) !important; box-shadow: 0 0 0 3px rgba(181,97,59,0.16) !important; }
.consent label.check { display:flex; gap:12px; align-items:flex-start; font-size:14px; font-weight:400; letter-spacing:0; text-transform:none; color:var(--ink-soft); line-height:1.45; cursor:pointer; margin-top:22px; }
.consent input[type="checkbox"] { width:20px; height:20px; min-width:20px; margin-top:1px; accent-color:var(--green-forest); cursor:pointer; }
.consent a { color:var(--green-olive); text-decoration:underline; }
.success { display:none; flex-direction:column; align-items:center; text-align:center; padding:56px 40px; }
.success.show { display:flex; }
.success .ck { width:72px; height:72px; border-radius:50%; background:var(--green-box); display:flex; align-items:center; justify-content:center; margin-bottom:24px; }
.success .ck svg { width:36px; height:36px; color:var(--green-olive); }
.success h3 { font-size:28px; margin-bottom:12px; }
.success p { color:var(--ink-soft); font-size:17px; max-width:420px; margin:0 0 8px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot { background: var(--green-deep); color: rgba(252,250,243,0.8); padding: 72px 0 40px; }
.foot .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 44px; align-items: start; }
.foot .bm { font-family:'Caveat',cursive; font-weight:600; font-size:34px; color:var(--cream-bright); display:flex; align-items:center; gap:13px; margin-bottom:16px; }
.foot .bm img { width:36px; height:36px; }
.foot p { font-size:15px; line-height:1.6; margin:0; max-width:320px; color: rgba(252,250,243,0.72); }
.foot h4 { font-family:'Inter',sans-serif; font-size:12px; letter-spacing:0.22em; text-transform:uppercase; color:var(--honey-bright); font-weight:600; margin:0 0 18px; }
.foot ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:11px; }
.foot ul a { text-decoration:none; font-size:15px; color:rgba(252,250,243,0.82); transition:color .2s; }
.foot ul a:hover { color:var(--honey-bright); }
.foot .badge-row { display:flex; align-items:center; gap:14px; margin-top:22px; }
.foot .badge-row img { height:58px; width:auto; background:#fff; border-radius:8px; padding:6px; }
.foot .badge-row span { font-size:12px; color:rgba(252,250,243,0.6); line-height:1.4; }
.foot .social-row { display:flex; gap:10px; margin-top:20px; }
.foot .social-row a { width:38px; height:38px; border-radius:50%; border:1px solid rgba(252,250,243,0.32); display:flex; align-items:center; justify-content:center; color:rgba(252,250,243,0.85); transition:background .2s ease,border-color .2s ease,color .2s ease; }
.foot .social-row a:hover { background:rgba(252,250,243,0.12); border-color:var(--honey-bright); color:var(--honey-bright); }
.foot .social-row svg { width:18px; height:18px; }
.foot .copy { margin-top:52px; padding-top:24px; border-top:1px solid rgba(252,250,243,0.18); display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:13px; color:rgba(252,250,243,0.55); }
.foot .copy a { color:rgba(252,250,243,0.72); text-decoration:underline; }
.foot .copy a:hover { color:var(--honey-bright); }

/* =====================================================================
   COOKIE BANNER
   ===================================================================== */
.cookie-banner { position:fixed; left:0; right:0; bottom:0; z-index:500; display:none; padding:18px 24px; background:rgba(30,44,19,0.97); backdrop-filter:blur(8px); color:rgba(252,250,243,0.92); }
.cookie-banner.show { display:block; }
.cookie-banner .cb-in { max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:24px; flex-wrap:wrap; justify-content:space-between; }
.cookie-banner p { margin:0; font-size:14px; line-height:1.55; max-width:780px; }
.cookie-banner a { color:var(--honey-bright); text-decoration:underline; }
.cookie-banner .cb-btn { font-family:'Inter',sans-serif; font-size:14px; font-weight:600; padding:11px 26px; border-radius:100px; border:1px solid var(--honey); background:var(--honey); color:var(--cream-bright); cursor:pointer; flex-shrink:0; }
.cookie-banner .cb-btn:hover { background:var(--honey-bright); }
.cookie-banner .cb-acts { display:flex; gap:10px; flex-wrap:wrap; }
.cookie-banner .cb-btn--ghost { background:transparent; border-color:rgba(252,250,243,0.5); color:rgba(252,250,243,0.95); }
.cookie-banner .cb-btn--ghost:hover { background:rgba(252,250,243,0.12); border-color:rgba(252,250,243,0.9); }
.foot .copy .copy-link { background:none; border:0; padding:0; font:inherit; color:rgba(252,250,243,0.72); text-decoration:underline; cursor:pointer; }
.foot .copy .copy-link:hover { color:var(--honey-bright); }
.foot .copy .legal-line { line-height:1.7; }

/* didactic steps (percorso, on dark) */
.dsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; }
.dstep .ph { height: 240px; margin-bottom: 22px; }
.dstep .drow { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dstep .dnum { font-family: 'Fraunces', serif; font-weight: 350; font-size: 32px; color: var(--honey-bright); font-variation-settings:"opsz"144; line-height: 1; }
.dstep .dline { flex: 1; height: 1px; background: rgba(252,250,243,0.25); }
.dstep h3 { font-size: 24px; color: var(--cream-bright); line-height: 1.18; margin-bottom: 10px; }
.dstep p { font-size: 15px; color: rgba(252,250,243,0.74); margin: 0; line-height: 1.5; }
.dstep p b { display: block; color: var(--honey-bright); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
@media (max-width:1024px){ .dsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width:760px){ .dsteps { grid-template-columns: 1fr; } }

/* icona link esterno */
.ext { width: 11px; height: 11px; margin-left: 6px; vertical-align: -1px; opacity: 0.7; }
a:hover > .ext { opacity: 1; }
.btn .ext, .go .ext { width: 13px; height: 13px; margin-left: 2px; vertical-align: -2px; opacity: 0.9; }

/* rimando esterno al Bistrò (home) */
.bistro-away { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: stretch; background: var(--cream-bright); border: 1px solid var(--rule-soft); border-radius: 4px; overflow: hidden; box-shadow: 0 26px 60px -46px rgba(30,44,19,0.7); }
.bistro-away .ba-photo { min-height: 330px; background-size: cover; background-position: center 45%; }
.bistro-away .ba-txt { padding: 50px 54px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.bistro-away h2 { font-size: clamp(28px, 3.2vw, 42px); margin: 0; }
.bistro-away h2 em { font-style: italic; color: var(--green-olive); }
.bistro-away p { margin: 20px 0 0; font-size: 17.5px; color: var(--ink-soft); max-width: 52ch; line-height: 1.62; }
.bistro-away .btn { margin-top: 32px; }
.bistro-away .ba-logo { width: 96px; aspect-ratio: 1; margin: 0 0 22px; flex-shrink: 0; }
.bistro-away .ba-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width:860px){ .bistro-away { grid-template-columns: 1fr; } .bistro-away .ba-photo { min-height: 230px; } .bistro-away .ba-txt { padding: 36px 28px; } .bistro-away .ba-logo { width: 76px; margin-bottom: 16px; } }

/* feature grid modifiers */
.feature-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-6 .fimg { height: 210px; }
@media (max-width:900px){ .feature-grid.cols-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:560px){ .feature-grid.cols-6 { grid-template-columns: 1fr; } }
.feature-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.feature-grid.cols-5 .fimg { height: 180px; }
.feature-grid.cols-5 h3 { font-size: 22px; }
@media (max-width:1200px){ .feature-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:820px){ .feature-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:560px){ .feature-grid.cols-5 { grid-template-columns: 1fr; } }

/* =====================================================================
   CASCINA BISTRÒ — warm, materic deviation
   ===================================================================== */
.gingham {
  background-image:
    repeating-linear-gradient(0deg, rgba(65,90,42,0.105) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(90deg, rgba(65,90,42,0.105) 0 16px, transparent 16px 32px),
    linear-gradient(0deg, rgba(65,90,42,0.045), rgba(65,90,42,0.045));
}
.sec.gingham { position: relative; isolation: isolate; }
.sec.gingham > .wrap { position: relative; z-index: 1; }
.sec.gingham::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(125% 68% at 50% 20%, rgba(245,242,232,0.94) 0%, rgba(245,242,232,0.6) 44%, rgba(245,242,232,0) 76%); }
.gingham-rule { height: 14px; background-size: 14px 14px;
  background-image:
    repeating-linear-gradient(90deg, var(--green-sage) 0 14px, rgba(125,154,82,0.45) 14px 28px);
  opacity: 0.5; }
.bistro-hero-word {
  font-family: 'Pacifico', cursive; font-weight: 400;
  font-size: clamp(46px, 8vw, 104px); line-height: 1.05;
  color: var(--honey-bright);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  margin-bottom: 10px;
}
.bistro-kicker { color: var(--honey-bright) !important; }
.bistro-hero-logo {
  width: clamp(116px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFFDF7 0%, #F7F4EA 72%, #EDE6D2 100%);
  box-shadow: 0 22px 50px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(252,250,243,0.55), 0 0 0 10px rgba(252,250,243,0.13);
  display: grid; place-items: center; margin-bottom: 24px;
}
.bistro-hero-logo img { width: 84%; height: 84%; object-fit: contain; display: block; }
@media (max-width:640px){ .bistro-hero-logo { width: 104px; margin-bottom: 18px; } }

/* pannello leggibile sopra la tovaglia */
.prog-panel { background: rgba(252,250,243,0.95); border: 1px solid var(--rule-soft); border-top: 3px solid var(--honey);
  padding: 38px 44px 40px; box-shadow: 0 28px 64px -44px rgba(30,44,19,0.8); }
@media (max-width:640px){ .prog-panel { padding: 28px 24px 30px; } }

/* volantino scaricabile */
.vol-dl { margin-top: 34px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--cream-bright); border: 1px solid var(--rule-soft); border-left: 3px solid var(--honey); padding: 24px 30px; }
.vol-dl .vd-txt { flex: 1 1 300px; }
.vol-dl .k { font-family:'Inter',sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--green-sage); margin-bottom: 8px; }
.vol-dl h3 { font-size: 22px; margin: 0; }
.vol-dl p { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }
.btn--dl { display: inline-flex; align-items: center; gap: 10px; }
.btn--dl svg { flex-shrink: 0; }
.btn--wa { background: #1FA855; color: #fff; border-color: #1FA855; }
.btn--wa:hover { background: #178A45; border-color: #178A45; }
.btn--wa svg { flex-shrink: 0; }
.pd-wa { margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 100px; background: #1FA855; color: #fff; text-decoration: none;
  font-family:'Inter',sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; transition: background .2s ease; }
.pd-wa:hover { background: #178A45; color: #fff; }
.btn--outline { background: transparent; color: var(--green-olive); border-color: var(--rule); }
.btn--outline:hover { background: var(--green-box); border-color: var(--green-sage); }
@media (max-width:560px){ .vol-dl { padding: 22px; } .vol-dl .btn { width: 100%; justify-content: center; } }

/* event/polaroid cards */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; padding-top: 20px; }
.evt {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--cream-bright); padding: 14px 14px 22px; border: 1px solid var(--rule-soft);
  box-shadow: 0 16px 34px -20px rgba(30,44,19,0.5);
  position: relative; transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease;
}
.evt:nth-child(3n+1) { transform: rotate(-1.6deg); }
.evt:nth-child(3n+2) { transform: rotate(1.1deg); }
.evt:nth-child(3n+3) { transform: rotate(-0.7deg); }
.evt:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 26px 52px -24px rgba(30,44,19,0.55); z-index: 2; }
.evt::before {
  content: ''; position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 108px; height: 26px; background: rgba(184,149,74,0.32);
  border: 1px solid rgba(184,149,74,0.28); box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.evt .poster { position: relative; aspect-ratio: 3/4; }
.evt .tag-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family:'Inter',sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-bright); background: rgba(30,44,19,0.82); padding: 5px 10px; border-radius: 100px;
}
.evt .ebody { padding: 18px 8px 0; }
.evt .edate { font-family:'Fraunces',serif; font-weight: 350; font-size: 24px; color: var(--green-olive); font-variation-settings:"opsz"144; line-height: 1.1; }
.evt .etime { font-family:'IBM Plex Mono',monospace; font-size: 12px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.04em; }
.evt h3 { font-size: 24px; margin-top: 12px; }
.evt .edesc { font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.5; }
.evt .eprice {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 7px 15px; border: 1px solid var(--honey); border-radius: 100px;
  font-family:'Inter',sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--honey);
}
.events-empty {
  border: 1.5px dashed var(--rule); border-radius: 12px; background: var(--cream-bright);
  padding: 56px 40px; text-align: center; max-width: 640px; margin: 0 auto;
}
.events-empty h3 { font-size: 26px; margin-bottom: 12px; }
.events-empty p { color: var(--ink-soft); font-size: 17px; margin: 0 auto; max-width: 44ch; }
@media (max-width:1024px){ .events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:640px){ .events { grid-template-columns: 1fr; } }

/* faux locandina (shared: bistro + home) */
.faux-poster { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:26px 20px; text-align:center; overflow:hidden; }
.faux-poster::after { content:''; position:absolute; inset:10px; border:1px solid rgba(252,250,243,0.35); pointer-events:none; }
.faux-poster .fp-word { font-family:'Pacifico',cursive; font-size:22px; color:var(--honey-bright); line-height:1; }
.faux-poster .fp-title { font-family:'Fraunces',serif; font-weight:350; font-variation-settings:"opsz"144; font-size:26px; color:var(--cream-bright); line-height:1.12; }
.faux-poster .fp-date { font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.12em; color:rgba(252,250,243,0.82); text-transform:uppercase; }
.faux-poster .fp-note { position:absolute; bottom:14px; left:0; right:0; font-family:'IBM Plex Mono',monospace; font-size:9px; letter-spacing:0.04em; color:rgba(252,250,243,0.5); }

/* home — prossimo evento */
.home-event { display:grid; grid-template-columns:55fr 45fr; gap:56px; align-items:center; }
.home-event .he-poster { max-width:400px; }
.home-event .he-poster .evt { margin:0; }
.home-event .edate { font-family:'Fraunces',serif; font-weight:350; font-variation-settings:"opsz"144; font-size:clamp(30px,3.4vw,44px); color:var(--green-olive); line-height:1.05; }
.home-event .etime { font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--ink-mute); letter-spacing:0.06em; margin-top:8px; }
.home-event h3 { font-size:clamp(26px,2.8vw,34px); margin-top:14px; }
.home-event .edesc { color:var(--ink-soft); font-size:18px; margin:16px 0 0; max-width:46ch; }
.home-event .he-cta { margin-top:28px; display:flex; gap:14px; flex-wrap:wrap; }
.home-event .tag-badge { position:static; display:inline-block; margin-bottom:14px; }
@media (max-width:900px){ .home-event { grid-template-columns:1fr; gap:36px; } .home-event .he-poster { max-width:340px; margin:0 auto; } }
.he-strip { margin-top:48px; padding:24px 28px; border:1px solid var(--rule-soft); border-left:3px solid var(--honey); border-radius:4px; background:var(--cream-paper); display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.he-strip .hs-hours { display:flex; flex-direction:column; gap:5px; }
.he-strip .hs-hours .k { font-size:12px; letter-spacing:0.22em; text-transform:uppercase; color:var(--green-sage); font-weight:600; }
.he-strip .hs-times { font-family:'Fraunces',serif; font-variation-settings:"opsz"144; font-size:17px; color:var(--ink); }

/* ===== Cascina Bistrò — programma del mese (impaginato come il volantino) ===== */
.prog-claim{font-family:'Fraunces',serif;font-variation-settings:"opsz"144;font-weight:300;font-size:clamp(24px,2.9vw,38px);line-height:1.1;color:var(--green-sage);margin:0 0 18px;text-wrap:pretty}
.prog-claim b{display:block;font-weight:400;font-style:italic;color:var(--green-olive)}
.prog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding-top:6px;align-items:stretch}
.pday{display:flex;flex-direction:column;background:var(--cream-bright);border:1px solid var(--rule-soft);box-shadow:0 20px 44px -34px rgba(30,44,19,.6)}
.pd-head{background:var(--green-deep);color:var(--cream-bright);padding:20px 26px 16px;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;position:relative;overflow:hidden}
.pd-head::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:repeating-linear-gradient(90deg,var(--honey) 0 10px,transparent 10px 20px)}
.pd-wd{flex:1 0 100%;font-family:'Inter',sans-serif;font-size:11px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--honey-bright)}
.pd-num{font-family:'Fraunces',serif;font-variation-settings:"opsz"144;font-weight:300;font-size:clamp(52px,5.4vw,76px);line-height:.88;letter-spacing:-.02em}
.pd-mo{font-family:'Fraunces',serif;font-style:italic;font-variation-settings:"opsz"144;font-size:19px;color:rgba(252,250,243,.78)}
.pd-body{padding:24px 26px 26px;display:flex;flex-direction:column;gap:16px;flex:1}
.pd-title{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--terracotta);margin:0;line-height:1.4}
.pd-slots{display:flex;flex-direction:column;gap:15px;margin:0;padding:0;list-style:none}
.pd-slots .slot{display:flex;flex-direction:column;gap:4px;padding-left:15px;border-left:2px solid var(--honey)}
.s-time{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.08em;color:var(--ink-mute)}
.s-label{font-family:'Fraunces',serif;font-variation-settings:"opsz"144;font-weight:400;font-size:21px;line-height:1.18;color:var(--ink)}
.s-note{font-size:14px;color:var(--ink-soft);line-height:1.5;margin-top:2px}
.pd-desc{font-size:15px;color:var(--ink-soft);line-height:1.55;margin:0;text-wrap:pretty}
.pd-meta{margin-top:auto;padding-top:4px;display:flex;flex-wrap:wrap;gap:8px}
.pd-pill{display:inline-flex;align-items:center;padding:6px 14px;border:1px solid var(--honey);border-radius:100px;font-family:'Inter',sans-serif;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--honey)}
.pd-pill--next{background:var(--honey);border-color:var(--honey);color:var(--cream-bright)}
.pd-pill--past{border-color:var(--rule);color:var(--ink-mute)}
.pday.is-past{opacity:.5}
.pday.is-next{border-color:var(--honey)}
.pday.is-next .pd-head{background:var(--green-olive)}
.prog-next{margin-top:34px;background:var(--green-box);border:1px solid var(--rule-soft);border-left:3px solid var(--terracotta);padding:30px 34px;display:grid;grid-template-columns:1fr auto;gap:24px 34px;align-items:center}
.prog-next .pn-k{font-family:'Inter',sans-serif;font-size:11px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--terracotta);margin-bottom:10px}
.prog-next h3{font-size:clamp(22px,2.4vw,30px);margin:0}
.prog-next p{margin:8px 0 0;color:var(--ink-soft);font-size:16px;max-width:56ch}
.prog-next .btn{justify-self:start}
@media (max-width:980px){.prog-grid{grid-template-columns:1fr 1fr}.prog-next{grid-template-columns:1fr}}
@media (max-width:620px){.prog-grid{grid-template-columns:1fr}.prog-next{padding:26px 22px}}

/* home — programma del mese in versione compatta */
.hprog{display:grid;grid-template-columns:40fr 60fr;gap:52px;align-items:start}
.hp-month{font-family:'Fraunces',serif;font-variation-settings:"opsz"144;font-weight:300;font-size:clamp(32px,3.8vw,50px);line-height:1.04;margin:0}
.hp-month em{font-style:italic;color:var(--green-olive)}
.hp-sub{font-family:'Fraunces',serif;font-style:italic;font-variation-settings:"opsz"144;font-size:20px;color:var(--ink-soft);margin:14px 0 0}
.hp-intro{font-size:16px;color:var(--ink-soft);margin:16px 0 0;line-height:1.6;max-width:42ch}
.hp-cta{margin-top:26px;display:flex;gap:14px;flex-wrap:wrap}
.hsat-list{display:flex;flex-direction:column;gap:1px;background:var(--rule-soft);border:1px solid var(--rule-soft)}
.hsat{display:grid;grid-template-columns:64px 1fr auto;gap:24px;align-items:center;background:var(--cream-bright);padding:22px 26px;text-decoration:none;color:inherit;transition:background .2s ease}
.hsat:hover{background:var(--green-box)}
.hsat .hd{font-family:'Fraunces',serif;font-variation-settings:"opsz"144;font-weight:300;font-size:42px;line-height:.9;color:var(--green-olive)}
.hsat .hd span{display:block;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-mute);margin-top:7px}
.hsat .hb{display:flex;flex-direction:column;gap:6px}
.hsat .ht{font-family:'Inter',sans-serif;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--terracotta)}
.hsat .hs{font-family:'Fraunces',serif;font-variation-settings:"opsz"144;font-size:19px;color:var(--ink);line-height:1.25}
.hsat .hrs{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--ink-mute);white-space:nowrap;letter-spacing:.04em}
.hsat.is-past{opacity:.45}
@media (max-width:900px){.hprog{grid-template-columns:1fr;gap:34px}.hsat{grid-template-columns:56px 1fr;gap:8px 18px}.hsat .hrs{grid-column:2}}

/* polaroid gallery */
.polagal { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.pola { background: var(--cream-bright); padding: 12px 12px 30px; box-shadow: 0 14px 30px -18px rgba(30,44,19,0.5); border: 1px solid var(--rule-soft); }
.pola .pimg { width: 240px; height: 200px; }
.pola .pcap { font-family:'Caveat',cursive; font-weight: 600; font-size: 22px; color: var(--ink-soft); text-align: center; margin-top: 10px; line-height: 1; }
.pola:nth-child(4n+1){ transform: rotate(-2.4deg); }
.pola:nth-child(4n+2){ transform: rotate(1.8deg); }
.pola:nth-child(4n+3){ transform: rotate(-1.2deg); }
.pola:nth-child(4n+4){ transform: rotate(2.6deg); }
@media (max-width:560px){ .pola .pimg { width: 42vw; height: 38vw; } }

/* =====================================================================
   LEGAL PAGES (privacy / cookie)
   ===================================================================== */
.legal { padding: 132px 0 96px; }
.legal .eyebrow { margin-bottom: 20px; }
.legal h1 { font-size: clamp(38px, 5.4vw, 68px); }
.legal .updated { margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-mute); letter-spacing: 0.02em; }
.legal-body { margin-top: 12px; }
.legal-body h2 { font-size: clamp(24px, 3vw, 32px); margin: 52px 0 14px; }
.legal-body h2 .n { font-family: 'Fraunces', serif; font-weight: 300; color: var(--green-sage); font-variation-settings:"opsz"144; margin-right: 14px; }
.legal-body h3 { font-size: 20px; margin: 30px 0 8px; color: var(--green-olive); }
.legal-body p { color: var(--ink-soft); font-size: 17px; line-height: 1.68; margin: 0 0 16px; max-width: 74ch; }
.legal-body ul { padding-left: 22px; margin: 0 0 16px; max-width: 74ch; }
.legal-body li { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
.legal-body a { color: var(--green-olive); text-decoration: underline; }
.legal-body a:hover { color: var(--honey); }
.legal-body strong { color: var(--ink); }
.legal-box { background: var(--cream-bright); border: 1px solid var(--rule-soft); border-left: 3px solid var(--honey); border-radius: 6px; padding: 24px 28px; margin: 24px 0; }
.legal-box p { margin: 0 0 8px; }
.legal-box p:last-child { margin: 0; }
.legal-toc { background: var(--green-box); border-radius: 12px; padding: 26px 30px; margin: 8px 0 8px; }
.legal-toc .k { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-sage); font-weight: 600; margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; }
.legal-toc li { font-size: 15px; margin-bottom: 8px; break-inside: avoid; }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.legal-table th { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-olive); font-weight: 600; background: var(--cream-bright); }
.legal-table td { color: var(--ink-soft); line-height: 1.5; }
.legal-table td strong { color: var(--ink); }
.legal-table .wrap-td { min-width: 120px; }
@media (max-width: 680px) {
  .legal-toc ol { columns: 1; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td, .legal-table th { display: block; }
  .legal-table th { display: none; }
  .legal-table td { border: 0; padding: 3px 0; }
  .legal-table tr { border-bottom: 1px solid var(--rule-soft); padding: 14px 0; }
}

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .foot .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .tiles.cols-2, .tiles.cols-3 { grid-template-columns: 1fr; }
  .detail-grid, .detail-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .orari-grid, .nl-grid,
  .sec .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  .museo-gal { grid-template-columns: 1fr 1fr !important; }
  .museo-gal > * { grid-column: auto !important; }
  .puntata { grid-template-columns: 1fr; gap: 30px; }
  .puntata:nth-child(even) .p-media { order: 0; }
  .puntata .p-media { height: 320px; }
  .tl-row { grid-template-columns: 130px 1fr; gap: 26px; }
  .assort { grid-template-columns: 1fr; }
}
/* header: switch to hamburger earlier — the nav + yellow CTA no longer fit below ~1150px */
@media (max-width: 1150px) and (min-width: 901px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; right: 16px; left: 16px; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 14px; margin-top: 8px;
    background: var(--cream-bright); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(30,44,19,0.45);
    max-height: calc(100svh - 108px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open > a, .nav-links.open .nav-item > a, .nav-links.open .nav-item > button {
    color: var(--ink-soft) !important; padding: 12px 14px; font-size: 16px; width: 100%; text-align: left;
  }
  .nav-links.open .nav-item { width: 100%; }
  .nav-links.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--green-box); margin: 4px 0 8px; min-width: 0; }
  .nav-links.open .nav-item > button .chev { display: none; }
  .burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
  .burger span { width: 24px; height: 2px; background: var(--cream-bright); transition: background .3s; }
  body.solid-head .burger span, .site-head.scrolled .burger span { background: var(--green-olive); }
  .nav { gap: 18px; }
}

@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .site-head, body.solid-head .site-head, .site-head.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; right: 16px; left: 16px; flex-direction: column;
    align-items: stretch; gap: 4px; background: var(--cream-bright); padding: 16px; border-radius: 14px;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
    max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open > a, .nav-links.open .nav-item > a, .nav-links.open .nav-item > button { color: var(--ink-soft) !important; padding: 11px 12px; }
  .nav-links.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--green-box); margin: 4px 0 8px; min-width: 0; }
  .nav-links.open .nav-item > button .chev { display: none; }
  .burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
  .burger span { width: 24px; height: 2px; background: var(--cream-bright); transition: background .3s; }
  body.solid-head .burger span, .site-head.scrolled .burger span { background: var(--green-olive); }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; }
  .museo-gal { grid-template-columns: 1fr !important; }
  .detail-grid, .detail-grid.cols-2, .fgrid, .foot .grid { grid-template-columns: 1fr; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { justify-content: center; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .form-card { padding: 32px 24px; }

  /* header: on mobile show only the hamburger, hide the CTA button */
  .nav-cta, .nav > .btn { display: none; }
  .nav { gap: 0; }
  /* tighten hero top padding now that the header is compact + wordmark removed */
  .hero .wrap { padding-top: 118px; padding-bottom: 60px; }
  .hero--page .wrap { padding-top: 120px; padding-bottom: 52px; }
  .hero--page { min-height: 56vh; }
}

/* novità tag — nav + dropdown */
.new-tag {
  display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 3px;
  background: var(--honey); color: var(--cream-bright);
  font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3;
  vertical-align: middle; transform: translateY(-1px);
}
.dropdown a .new-tag, .foot ul a .new-tag { margin-left: 7px; }
.nav-links a:hover .new-tag, .dropdown a:hover .new-tag { background: var(--honey-bright); color: var(--cream-bright) !important; }
.soon-tag {
  display: inline-block; margin-left: 7px; padding: 2px 5px; border-radius: 3px;
  background: transparent; border: 1px solid currentColor; color: inherit; opacity: 0.6;
  font-family: 'Inter', sans-serif; font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
  vertical-align: middle; transform: translateY(-1px);
}

/* =====================================================================
   APP DELLA CASCINA — CTA box + store buttons + footer strip
   ===================================================================== */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 17px; border-radius: 8px; text-decoration: none;
  background: var(--cream-bright); border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -18px rgba(30,44,19,0.7); }
.store-btn svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--green-forest); }
.store-btn .sb-txt { display: flex; flex-direction: column; gap: 4px; line-height: 1.15; }
.store-btn .sb-k { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.store-btn .sb-n { font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.05; font-weight: 400; color: var(--ink); font-variation-settings: "opsz" 144; white-space: nowrap; }
.store-btn--ghost { background: transparent; border-color: rgba(252,250,243,0.42); }
.store-btn--ghost:hover { background: rgba(252,250,243,0.1); border-color: rgba(252,250,243,0.9); }
.store-btn--ghost svg { color: var(--honey-bright); }
.store-btn--ghost .sb-k { color: rgba(252,250,243,0.6); }
.store-btn--ghost .sb-n { color: var(--cream-bright); }

.app-cta {
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: center;
  background: var(--green-forest); color: var(--cream-bright);
  border-radius: 6px; padding: 52px 56px; position: relative; overflow: hidden;
}
.app-cta::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(184,149,74,0.13); pointer-events: none;
}
.app-cta .k { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--honey-bright); margin-bottom: 14px; }
.app-cta h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; color: var(--cream-bright); line-height: 1.06; margin: 0; }
.app-cta h3 em { font-style: italic; color: var(--honey-bright); }
.app-cta > div { position: relative; z-index: 1; }
.app-cta p { margin: 18px 0 0; font-size: 17px; color: rgba(252,250,243,0.82); max-width: 52ch; }
.app-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.app-steps li { display: flex; align-items: flex-start; gap: 13px; font-family: 'Inter', sans-serif; font-size: 15.5px; color: rgba(252,250,243,0.9); line-height: 1.45; }
.app-steps li span {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(184,149,74,0.85); color: var(--honey-bright);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; margin-top: 1px;
}
.app-cta-act .store-row { flex-direction: column; align-items: stretch; }
.app-cta-act .store-btn { justify-content: flex-start; }
.app-note { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: rgba(252,250,243,0.55); margin: 16px 0 0 !important; }

/* footer strip */
.foot-app {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 38px; border-top: 1px solid rgba(252,250,243,0.16);
}
.foot-app h4 { margin: 0 0 8px !important; }
.foot-app .fa-txt p { margin: 0; font-size: 15px; color: rgba(252,250,243,0.68); max-width: 46ch; line-height: 1.5; }
.foot-app .fa-h { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 350; color: var(--cream-bright); font-variation-settings: "opsz" 144; margin: 0 0 8px; line-height: 1.2; }
.foot-app .fa-h em { font-style: italic; color: var(--honey-bright); }

@media (max-width: 900px) {
  .app-cta { grid-template-columns: 1fr; gap: 34px; padding: 40px 32px; }
  .app-cta-act .store-row { flex-direction: row; flex-wrap: wrap; }
  .foot-app { gap: 26px; }
}

/* =====================================================================
   MOBILE FINE-TUNING (phones)
   ===================================================================== */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow { padding: 0 18px; }
  html { scroll-padding-top: 76px; }

  /* section rhythm: less air so pages don't feel endless on a phone */
  .sec { padding: 60px 0; }
  .sec--tight { padding: 48px 0; }
  .sec-head { margin-bottom: 36px; }

  /* hero type + spacing */
  .hero { min-height: 76vh; }
  .hero--tall { min-height: 88vh; }
  .hero .wrap { padding-top: 108px; padding-bottom: 48px; }
  .hero--page .wrap { padding-top: 112px; padding-bottom: 44px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); max-width: 18ch; }
  .hero .tagline { font-size: clamp(19px, 5vw, 24px); margin-bottom: 28px; }
  .hero .kicker-row { gap: 12px; margin-bottom: 18px; }
  .bistro-hero-word { font-size: clamp(40px, 13vw, 68px); }

  /* full-width tap targets */
  .btn { padding: 15px 26px; width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }

  /* readable prose measures */
  .prose p, .lead { max-width: 100%; }
  .prose p { font-size: 17px; }

  /* single-column grids across components */
  .detail-grid, .detail-grid.cols-2, .tiles.cols-2, .tiles.cols-3,
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr !important; }
  .tile { padding: 32px 26px; }
  .feature .fimg { height: 200px; }

  /* hours box: comfortable on narrow screens */
  .hours-box { padding: 30px 24px; }
  .hh { padding: 18px 18px; }

  /* footer stacks */
  .foot { padding: 56px 0 32px; }
  .foot .grid { grid-template-columns: 1fr; gap: 34px; }
  .foot .copy { flex-direction: column; gap: 10px; }

  /* app CTA on phones */
  .app-cta { padding: 34px 22px; border-radius: 4px; gap: 28px; }
  .app-cta::after { display: none; }
  .app-cta h3 { font-size: clamp(27px, 8.5vw, 36px); }
  .app-cta p { font-size: 16px; }
  .app-steps li { font-size: 15px; }
  .app-cta-act .store-row, .foot-app .store-row { flex-direction: column; }
  .store-btn { width: 100%; justify-content: flex-start; padding: 14px 20px; }
  .foot-app { margin-top: 38px; padding-top: 30px; }

  /* cookie banner stacks button under text */
  .cookie-banner .cb-in { flex-direction: column; align-items: stretch; }
  .cookie-banner .cb-acts { flex-direction: column; }
  .cookie-banner .cb-btn { width: 100%; }
}


/* =====================================================================
   MENU MOBILE — sottomenu Spaccio a tendina (accordion)
   Il desktop resta invariato: .ni-link e .ni-toggle esistono solo nel
   pannello hamburger.
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-item > .ni-link, .nav-item > .ni-toggle { display: none; }
@media (max-width: 1150px) {
  .nav-links.open .nav-item { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 4px; }
  .nav-links.open .nav-item > .ni-trigger { display: none; }
  .nav-links.open .nav-item > .ni-link { display: block; }
  .nav-links.open .nav-item > .ni-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
    background: none; border: 0; border-radius: 10px; cursor: pointer;
    color: var(--ink-soft); text-align: center; font-size: inherit;
  }
  .nav-links.open .nav-item > .ni-toggle:hover { background: var(--green-box); }
  .nav-links.open .nav-item > .ni-toggle:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
  .nav-links.open .nav-item > .ni-toggle svg { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
  .nav-links.open .nav-item.open > .ni-toggle svg { transform: rotate(180deg); }
  .nav-links.open .nav-item > .dropdown {
    grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: var(--green-box); min-width: 0; border-radius: 10px;
    max-height: 0; overflow: hidden; padding: 0 12px; margin: 0;
    transition: max-height .34s cubic-bezier(.2,.7,.3,1), padding .28s ease, margin .28s ease;
  }
  .nav-links.open .nav-item.open > .dropdown { padding: 8px 12px; margin: 2px 0 8px; }
  .nav-links.open .nav-item > .dropdown .dd-head { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links.open .nav-item > .dropdown, .nav-links.open .nav-item > .ni-toggle svg { transition: none; }
}
