/* ============================================
   L'angolo del Caffè — Styles
   ============================================ */

:root {
  --espresso: #1A0F0B;
  --espresso-2: #251812;
  --crema: #F4EAD5;
  --latte: #FBF6EC;
  --rosso: #B23A3A;
  --rosso-deep: #8E2828;
  --oro: #C8924A;
  --line-light: rgba(244, 234, 213, 0.12);
  --line-dark: rgba(26, 15, 11, 0.12);
  --text-on-dark: #EDE2CE;
  --text-on-dark-mute: rgba(237, 226, 206, 0.62);
  --text-on-light: #1A0F0B;
  --text-on-light-mute: rgba(26, 15, 11, 0.62);
  --social-icon: 34px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--espresso);
  color: var(--text-on-dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--rosso); color: var(--latte); }
a { color: inherit; text-decoration: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.light .eyebrow { color: var(--text-on-light-mute); }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

/* ---------- Bean strip (animated coffee beans) ---------- */
.bean-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: var(--espresso);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  z-index: 101;
  display: flex;
  align-items: center;
}
.bean-track {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-left: 48px;
  animation: scroll-beans 50s linear infinite;
  flex-shrink: 0;
  will-change: transform;
}
@keyframes scroll-beans {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.bean {
  width: 20px;
  height: 27px;
  flex-shrink: 0;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.bean.red { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAzMiI+PGVsbGlwc2UgY3g9IjEyIiBjeT0iMTYiIHJ4PSI4IiByeT0iMTMiIGZpbGw9IiNCMjNBM0EiLz48cGF0aCBkPSJNMTIgNCBDIDkgMTAgMTUgMjIgMTIgMjgiIHN0cm9rZT0icmdiYSgwLDAsMCwwLjQ1KSIgc3Ryb2tlLXdpZHRoPSIxLjMiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvc3ZnPg=="); }
.bean.dark { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAzMiI+PGVsbGlwc2UgY3g9IjEyIiBjeT0iMTYiIHJ4PSI4IiByeT0iMTMiIGZpbGw9IiNGNEVBRDUiIGZpbGwtb3BhY2l0eT0iMC4zNSIvPjxwYXRoIGQ9Ik0xMiA0IEMgOSAxMCAxNSAyMiAxMiAyOCIgc3Ryb2tlPSJyZ2JhKDAsMCwwLDAuNDUpIiBzdHJva2Utd2lkdGg9IjEuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+"); }
.bean.mid { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAzMiI+PGVsbGlwc2UgY3g9IjEyIiBjeT0iMTYiIHJ4PSI4IiByeT0iMTMiIGZpbGw9IiNDODkyNEEiIGZpbGwtb3BhY2l0eT0iMC43NSIvPjxwYXRoIGQ9Ik0xMiA0IEMgOSAxMCAxNSAyMiAxMiAyOCIgc3Ryb2tlPSJyZ2JhKDAsMCwwLDAuNDUpIiBzdHJva2Utd2lkdGg9IjEuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+"); }
.bean.r1 { transform: rotate(18deg); }
.bean.r2 { transform: rotate(-12deg); }
.bean.r3 { transform: rotate(32deg); }
.bean.r4 { transform: rotate(-26deg); }
.bean.r5 { transform: rotate(6deg); }
.bean.r6 { transform: rotate(-8deg); }
.bean.r7 { transform: rotate(24deg); }
.bean.r8 { transform: rotate(-20deg); }
.bean-strip:hover .bean-track { animation-play-state: paused; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 50px; left: 0; right: 0;
  z-index: 100;
  padding: 22px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(26, 15, 11, 0.55);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s ease;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo .apo { color: var(--rosso); }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--text-on-dark-mute);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--rosso);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text-on-dark); }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 150px 32px 56px;
  position: relative;
  overflow: hidden;
}

.corner-mark {
  position: absolute;
  width: 38px;
  height: 38px;
  border-color: var(--rosso);
}
.corner-mark.tl { top: 140px; left: 32px; border-top: 2px solid; border-left: 2px solid; }
.corner-mark.tr { top: 140px; right: 32px; border-top: 2px solid; border-right: 2px solid; }
.corner-mark.bl { bottom: 60px; left: 32px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-mark.br { bottom: 60px; right: 32px; border-bottom: 2px solid; border-right: 2px solid; }

/* ---------- Hero status (analog clock + serif state) ---------- */
.hero-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px 10px 10px;
  border: 1px solid var(--line-light);
  border-radius: 100px;
  background: rgba(244, 234, 213, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.status-clock {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.status-clock svg {
  display: block;
  width: 100%;
  height: 100%;
}
#clockSec {
  transform-origin: 30px 30px;
  transition: transform 0.4s cubic-bezier(0.4, 2.5, 0.6, 1);
}
#clockMin, #clockHour {
  transform-origin: 30px 30px;
}
.status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
.status-state {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "opsz" 60, "wght" 400;
  color: var(--text-on-dark);
}
.status-state.open { color: var(--text-on-dark); }
.status-state.closed { color: rgba(237, 226, 206, 0.55); }
.status-detail {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--text-on-dark-mute);
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 350;
}
.hero-title .line { display: block; }
.hero-title .apo {
  color: var(--rosso);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 500;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 350;
  color: var(--text-on-dark);
}

/* ---------- Indicatore di scorrimento ---------- */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 44px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  transition: color 0.3s ease;
  cursor: pointer;
  width: fit-content;
}
.scroll-cue:hover { color: var(--rosso); }
.scroll-cue:hover .scroll-cue-line { background: rgba(178, 58, 58, 0.4); }
.scroll-cue-line {
  transition: background 0.3s ease;
  position: relative;
  width: 1px;
  height: 52px;
  background: var(--line-light);
  overflow: hidden;
}
.scroll-cue-dot {
  position: absolute;
  left: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rosso);
  animation: cue-fall 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes cue-fall {
  0%   { top: -8px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 52px; opacity: 0; }
}

/* ---------- Riga alta dell'hero: titolo + social ---------- */
.hero-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  margin-top: 2vh;
}
.hero-top .hero-title { flex: none; text-align: center; }

/* ---------- Social nell'hero (lato opposto al logo) ---------- */
.hero-social {
  display: flex;
  flex-shrink: 0;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  z-index: 3;
}
.hero-social-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-social-label::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.hero-social a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  transition: color 0.25s ease;
}
.hero-social a svg {
  width: var(--social-icon);
  height: var(--social-icon);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.hero-social a:hover {
  color: var(--rosso);
}
.hero-social a:hover svg {
  transform: translateY(-2px) scale(1.06);
}
.hero-social a svg {
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hero-social a:hover svg { opacity: 1; }

/* Gruppo "ngo" con tettino sovrapposto (come nel logo) */
.ngo-group {
  position: relative;
  display: inline-block;
}
.hero-mark {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  line-height: 0;
  pointer-events: none;
  color: var(--rosso);
  margin-bottom: -0.05em;
}
.hero-mark svg {
  width: clamp(60px, 5.8vw, 94px);
  height: auto;
  display: block;
}

/* Chicco di caffè al posto della "o" finale di "angolo" */
.hero-bean {
  display: inline-block;
  width: 0.58em;
  height: 0.78em;
  vertical-align: -0.04em;
  margin: 0 0.015em;
  line-height: 0;
}
.hero-bean svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(18deg);
}

/* ---------- Hero logo (immagine al posto del titolo testuale) ---------- */
.hero-logo {
  display: block;
  width: min(680px, 70vw);
  max-width: 100%;
  height: auto;
  margin: auto;
  align-self: center;
}
/* ---------- Hero meta (place + live clock) ---------- */
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.meta-where {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.meta-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.01em;
}
.meta-place {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 400;
  color: var(--rosso);
}
.meta-address {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-on-dark);
  margin-top: 6px;
  letter-spacing: 0.005em;
}

.meta-time {
  text-align: right;
  line-height: 1;
}
.live-clock {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 350;
  font-variation-settings: "SOFT" 50, "opsz" 144, "wght" 350;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  line-height: 1;
}
.live-clock .live-sec {
  color: var(--rosso);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 350;
  font-size: 0.55em;
  vertical-align: top;
  margin-left: 4px;
  letter-spacing: 0.02em;
}
.live-date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--text-on-dark-mute);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ---------- Sections (generic) ---------- */
section {
  padding: 120px 0;
  position: relative;
}
section[id] { scroll-margin-top: 120px; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 350;
  font-variation-settings: "SOFT" 80, "opsz" 144, "wght" 350;
}
.section-head h2 em {
  font-style: italic;
  color: var(--rosso);
}
.light .section-head h2 em { color: var(--rosso-deep); }
.section-head .lead {
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  color: var(--text-on-dark-mute);
}
.light .section-head .lead { color: var(--text-on-light-mute); }

/* ---------- Orari / schedule ---------- */
.orari-section { background: var(--crema); color: var(--text-on-light); }
.schedule {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.schedule-row.today {
  background: rgba(178, 58, 58, 0.04);
  margin: 0 -16px;
  padding: 14px 16px;
  border-radius: 4px;
}
.schedule-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-light);
}
.schedule-row.today .schedule-day { color: var(--rosso-deep); font-weight: 500; }
.schedule-bar {
  position: relative;
  height: 14px;
  background: rgba(26, 15, 11, 0.06);
  border-radius: 2px;
  overflow: visible;
}
.schedule-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(26, 15, 11, 0.05);
}
.schedule-slot {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--espresso);
  border-radius: 2px;
}
.schedule-slot.accent { background: var(--rosso); }
.schedule-now {
  position: absolute;
  top: -6px; bottom: -6px;
  width: 2px;
  background: var(--rosso);
  z-index: 2;
}
.schedule-now::before {
  content: "";
  position: absolute;
  top: -4px; left: -3px;
  width: 8px; height: 8px;
  background: var(--rosso);
  border-radius: 50%;
}
.schedule-now::after {
  content: "adesso";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rosso);
  white-space: nowrap;
}
.schedule-times {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-on-light);
  text-align: right;
}
.schedule-times .closed {
  color: var(--text-on-light-mute);
  font-style: italic;
}
.schedule-axis {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 24px;
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-on-light-mute);
  letter-spacing: 0.05em;
}
.schedule-axis .axis-ticks {
  display: flex;
  justify-content: space-between;
}

/* ---------- Reels / video verticali ---------- */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.hero-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  background: var(--espresso-2);
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.4s ease;
}
.reel-card:hover {
  border-color: var(--rosso);
  transform: translateY(-4px);
}
.reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(178, 58, 58, 0.92);
  color: var(--latte);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.reel-play svg { width: 13px; height: 13px; }
.reel-card:hover .reel-play { transform: scale(1.12); }
.reel-card:hover .reel-caption { opacity: 1; }
.reel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 10px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.3s ease;
  letter-spacing: 0.06em;
  color: var(--text-on-dark);
  background: linear-gradient(to top, rgba(26, 15, 11, 0.85), rgba(26, 15, 11, 0));
}
/* Lightbox */
.reel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 6, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.reel-lightbox.open { opacity: 1; }
.reel-lightbox video {
  max-height: 100%;
  max-width: 100%;
  border-radius: 6px;
}
.reel-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--text-on-dark);
  font-size: 20px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.reel-close:hover { border-color: var(--rosso); color: var(--rosso); }

/* ---------- Specialità (home grid) ---------- */
.specialita-section {
  background: var(--espresso);
  padding-top: 110px;
}
.specialita-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.specialita-grid.cols-5 .spec-card:nth-child(5) {
  grid-column: 1 / -1;
}
.spec-card {
  background: var(--espresso);
  padding: 48px 40px;
  transition: background 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.spec-card:hover { background: var(--espresso-2); }
.spec-card-link {
  color: inherit;
  display: block;
}
.spec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rosso);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.spec-title {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  font-variation-settings: "SOFT" 80, "opsz" 60, "wght" 400;
}
.spec-title em { font-style: italic; }
.spec-brands {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 24px;
}
.spec-brands li {
  font-size: 13px;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.02em;
}
.spec-brands li:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: var(--rosso);
}
.spec-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-on-dark-mute);
  margin-bottom: 24px;
}
.spec-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rosso);
  transition: gap 0.2s;
}
.spec-card-link:hover .spec-link { gap: 14px; }

/* ---------- Visita ---------- */
.visita-section { background: var(--crema); color: var(--text-on-light); }
.visita-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.visita-address {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 350;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 80, "opsz" 144, "wght" 350;
  margin-bottom: 32px;
}
.visita-address em {
  font-style: italic;
  color: var(--rosso-deep);
}
.visita-map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--espresso);
  color: var(--crema);
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s;
}
.visita-map-link:hover {
  background: var(--rosso-deep);
  transform: translateY(-2px);
}
.visita-map-link svg { transition: transform 0.2s; }
.visita-map-link:hover svg { transform: translate(3px, -3px); }

.visita-contacts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
}
.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-on-light-mute);
  margin-bottom: 10px;
}
.contact-value {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  font-variation-settings: "SOFT" 80, "opsz" 60, "wght" 400;
  color: var(--text-on-light);
  transition: color 0.2s;
  word-break: break-word;
}
a.contact-value:hover { color: var(--rosso-deep); }

/* ---------- Footer ---------- */
footer {
  background: var(--espresso);
  padding: 60px 0 40px;
  border-top: 1px solid var(--line-light);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  text-align: center;
}
.footer-logo { height: 88px; width: auto; opacity: 0.95; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; }
.footer-cookie-link {
  font: inherit; text-transform: uppercase; letter-spacing: 0.08em;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--text-on-dark-mute); text-decoration: underline; text-underline-offset: 3px;
}
.footer-cookie-link:hover { color: var(--text-on-dark); }
.footer-inner a:hover { color: var(--text-on-dark); }

/* ===========================================================
   PRODUCT PAGE STYLES (chicchi, cialde, te-tisane, cioccolato, specialty)
   =========================================================== */

/* Hero ridotto per le pagine prodotto */
.hero-page {
  min-height: 70vh;
  padding: 190px 32px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--espresso);
  border-bottom: 1px solid var(--line-light);
}
.hero-page.light {
  background: var(--crema);
  color: var(--text-on-light);
  border-bottom: 1px solid var(--line-dark);
}

.back-link {
  position: absolute;
  top: 140px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  transition: color 0.2s, gap 0.2s;
}
.hero-page.light .back-link { color: var(--text-on-light-mute); }
.back-link:hover { color: var(--rosso); gap: 14px; }
.hero-page.light .back-link:hover { color: var(--rosso-deep); }

.hero-page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 28px;
  display: block;
}
.hero-page.light .hero-page-eyebrow { color: var(--rosso-deep); }

.hero-page h1 {
  font-size: clamp(54px, 9vw, 140px);
  font-weight: 350;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 350;
}
.hero-page h1 em {
  font-style: italic;
  color: var(--rosso);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 400;
}
.hero-page.light h1 em { color: var(--rosso-deep); }

.hero-page-lead {
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-on-dark-mute);
}
.hero-page.light .hero-page-lead { color: var(--text-on-light-mute); }

/* Intro paragrafo */
.intro-section {
  padding: 100px 0 60px;
}
.intro-section.light { background: var(--crema); color: var(--text-on-light); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.intro-grid .intro-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  padding-top: 8px;
}
.intro-section.light .intro-grid .intro-label { color: var(--text-on-light-mute); }
.intro-grid .intro-body p {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 350;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 80, "opsz" 100, "wght" 350;
}
.intro-grid .intro-body p em {
  font-style: italic;
  color: var(--rosso);
}
.intro-section.light .intro-grid .intro-body p em { color: var(--rosso-deep); }

/* Brand list */
.brands-section {
  padding: 80px 0 120px;
}
.brands-section.light { background: var(--crema); color: var(--text-on-light); }

.brand-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-light);
}
.brands-section.light .brand-list { border-top-color: var(--line-dark); }

.brand-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 2fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-light);
  align-items: start;
  transition: background 0.2s;
}
.brands-section.light .brand-row { border-bottom-color: var(--line-dark); }
.brand-row:hover { background: rgba(178, 58, 58, 0.02); }

.brand-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--rosso);
  letter-spacing: 0.1em;
  padding-top: 8px;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 80, "opsz" 100, "wght" 350;
}
.brand-name em { font-style: italic; }
.brand-origin {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  margin-top: 12px;
  font-style: normal;
}
.brands-section.light .brand-origin { color: var(--text-on-light-mute); }

.brand-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-dark-mute);
  margin-bottom: 20px;
}
.brands-section.light .brand-body p { color: var(--text-on-light); }
.brand-body p:last-child { margin-bottom: 0; }

.brand-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.brand-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(237, 226, 206, 0.30);
  border-radius: 100px;
  color: var(--text-on-dark);
}
.brands-section.light .brand-tags li {
  border-color: rgba(26, 15, 11, 0.28);
  background: rgba(26, 15, 11, 0.04);
  color: var(--text-on-light);
}
/* Tag cliccabile: apre la foto della confezione */
.brand-tags li.has-photo { display: contents; }
.brand-tags .tag-photo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px 6px 28px;
  border: 1px solid rgba(26, 15, 11, 0.28);
  border-radius: 100px;
  color: var(--text-on-light);
  background: rgba(26, 15, 11, 0.04);
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.brand-tags .tag-photo::before {
  content: '';
  position: absolute;
  left: 11px; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='10'%20cy='10'%20r='6'%20fill='none'%20stroke='black'%20stroke-width='2.6'/%3E%3Cpath%20d='M14.5%2014.5%2020%2020'%20stroke='black'%20stroke-width='2.6'%20stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='10'%20cy='10'%20r='6'%20fill='none'%20stroke='black'%20stroke-width='2.6'/%3E%3Cpath%20d='M14.5%2014.5%2020%2020'%20stroke='black'%20stroke-width='2.6'%20stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
}
.brand-tags .tag-photo:hover {
  background: rgba(178, 58, 58, 0.10);
  border-color: var(--rosso);
  color: var(--rosso-deep);
  transform: translateY(-1px);
}
.brand-tags .tag-photo:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: 2px;
}
.brand-tags-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-on-light-mute);
  margin-top: 14px;
}

/* Lightbox foto confezione */
.photo-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(26, 15, 11, 0.74);
  opacity: 0; transition: opacity 0.25s;
}
.photo-lightbox.open { opacity: 1; }
.photo-frame {
  position: relative;
  width: 100%; max-width: 400px;
  background: var(--latte);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s;
}
.photo-lightbox.open .photo-frame { transform: none; }
.photo-close {
  position: absolute; top: -13px; right: -13px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--espresso); color: var(--latte);
  font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.photo-stage {
  aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden;
  background: var(--crema);
  display: flex; align-items: center; justify-content: center;
}
.photo-stage img { width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-placeholder {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 28px;
}
.photo-ph-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--rosso-deep);
}
.photo-ph-name {
  font-family: 'Fraunces', serif; font-size: 30px; font-weight: 400;
  line-height: 1.08; color: var(--text-on-light);
}
.photo-ph-note {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-light-mute);
  border: 1px dashed var(--line-dark); border-radius: 100px; padding: 5px 13px;
}
.photo-caption {
  font-family: 'Fraunces', serif; font-size: 19px;
  text-align: center; margin-top: 12px; color: var(--text-on-light);
}


/* Notes / disclosures */
.product-note {
  margin-top: 80px;
  padding: 32px;
  border: 1px dashed var(--line-light);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-on-dark-mute);
  line-height: 1.6;
}
.brands-section.light .product-note {
  border-color: var(--line-dark);
  color: var(--text-on-light-mute);
}
.product-note strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 8px;
}
.brands-section.light .product-note strong { color: var(--rosso-deep); }

/* Specialty: bouquet + note di degustazione */
.brand-bouquet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 18px !important;
}
.brands-section.light .brand-bouquet { color: var(--rosso-deep); }

.tasting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 6px 0 22px;
}
.tasting-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-light-mute);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}
.tasting-item p {
  font-size: 14px !important;
  line-height: 1.6;
  margin-bottom: 0 !important;
}
@media (max-width: 720px) {
  .tasting { grid-template-columns: 1fr; gap: 18px; }
}

.brand-figure {
  margin-top: 28px;
  max-width: 300px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  line-height: 0;
}
.brand-figure svg { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .brand-figure { max-width: 340px; margin-top: 18px; }
}

/* CTA finale */
.cta-section {
  background: var(--espresso);
  padding: 120px 0;
  border-top: 1px solid var(--line-light);
  text-align: center;
}
.cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 24px;
  display: block;
}
.cta-section h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 350;
  line-height: 1.05;
  margin-bottom: 20px;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 350;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section h2 em {
  font-style: italic;
  color: var(--rosso);
}
.cta-section p {
  color: var(--text-on-dark-mute);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
}
.cta-buttons {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--rosso);
  color: var(--latte);
}
.btn-primary:hover {
  background: var(--rosso-deep);
  transform: translateY(-2px);
}
.btn-secondary {
  border-color: var(--line-light);
  color: var(--text-on-dark);
}
.btn-secondary:hover {
  border-color: var(--rosso);
  color: var(--text-on-dark);
}
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translate(3px, -3px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .bean-strip { height: 44px; }
  .bean { width: 17px; height: 23px; }
  .bean-track { gap: 38px; padding-left: 38px; }
  .nav { top: 44px; padding: 14px 22px; }
  .nav-links { gap: 20px; font-size: 12px; }
  .nav-links a:nth-child(n+3) { display: inline-flex; }

  .hero { padding: 120px 22px 44px; }
  .scroll-cue { padding-top: 30px; font-size: 13px; }
  .scroll-cue-line { height: 40px; }
  @keyframes cue-fall {
    0%   { top: -8px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 40px; opacity: 0; }
  }
  .hero-top {
    align-items: center;
    gap: 26px;
    margin-top: 0;
  }
  .hero-brand { gap: 20px; }
  .hero-social { gap: 20px; }
  .hero-social a span { display: none; }
  .hero-social-label { display: none; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
  }
  section { padding: 80px 0; }

  .schedule-row { grid-template-columns: 60px 1fr; gap: 14px; padding: 12px 0; }
  .schedule-times {
    grid-column: 2;
    text-align: left;
    font-size: 11px;
    margin-top: 4px;
  }
  .schedule-bar { height: 12px; }
  .schedule-axis { grid-template-columns: 60px 1fr; gap: 14px; }
  .schedule-axis .axis-day { display: none; }

  .hero-reels {
    width: 100%;
    max-width: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    grid-template-columns: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 10px;
    padding-bottom: 6px;
  }
  .reel-card { scroll-snap-align: start; }
  .reel-card:hover { transform: none; }
  .reel-caption { opacity: 1; font-size: 11px; }
  .reel-play { width: 26px; height: 26px; top: 8px; right: 8px; }
  .reel-lightbox { padding: 16px; }

  .specialita-grid { grid-template-columns: 1fr; }
  .specialita-grid.cols-5 .spec-card:nth-child(5) { grid-column: auto; }
  .spec-card { padding: 36px 28px; }
  .spec-title { font-size: 26px; }

  .visita-grid { grid-template-columns: 1fr; gap: 50px; }

  .footer-inner { flex-direction: column; text-align: center; }

  /* Product pages */
  .hero-page { padding: 150px 22px 60px; }
  .back-link { top: 110px; left: 22px; }
  .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .brand-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
  }
  .brand-num { padding-top: 0; }
  .product-note { padding: 24px; margin-top: 50px; }
  .cta-section { padding: 80px 0; }
  .cta-buttons { flex-direction: column; gap: 12px; width: 100%; }
  .cta-buttons .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--espresso); color: var(--text-on-dark);
  transform: translateY(105%); transition: transform 0.35s ease;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.34);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text {
  flex: 1 1 320px;
  font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.55;
  color: var(--text-on-dark-mute); margin: 0;
}
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 100px; padding: 12px 22px; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(237, 226, 206, 0.32); background: none; color: var(--text-on-dark);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cookie-btn:hover { border-color: var(--text-on-dark); }
.cookie-btn-primary { background: var(--rosso); border-color: var(--rosso); color: var(--latte); }
.cookie-btn-primary:hover { background: var(--rosso-deep); border-color: var(--rosso-deep); }

.cookie-prefs {
  position: fixed; inset: 0; z-index: 3100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(26, 15, 11, 0.74); opacity: 0; transition: opacity 0.25s;
}
.cookie-prefs.show { opacity: 1; }
.cookie-prefs-panel {
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--latte); color: var(--text-on-light);
  border-radius: 12px; padding: 28px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) scale(0.98); transition: transform 0.25s;
}
.cookie-prefs.show .cookie-prefs-panel { transform: none; }
.cookie-prefs-panel h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 400; margin: 0 0 8px; }
.cookie-prefs-panel > p { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.55; color: var(--text-on-light-mute); margin: 0 0 20px; }
.cookie-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.cookie-row span { display: flex; flex-direction: column; gap: 3px; }
.cookie-row strong { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; }
.cookie-row small { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-on-light-mute); line-height: 1.45; }
.cookie-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rosso); flex: 0 0 auto; cursor: pointer; }
.cookie-row input:disabled { cursor: not-allowed; opacity: 0.55; }
.cookie-prefs-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.cookie-prefs-actions .cookie-btn { color: var(--text-on-light); border-color: var(--line-dark); }
.cookie-prefs-actions .cookie-btn:hover { border-color: var(--text-on-light); }
.cookie-prefs-actions .cookie-btn-primary { color: var(--latte); border-color: var(--rosso); }

@media (max-width: 600px) {
  .cookie-banner { padding: 16px; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .cookie-btn { flex: 1 1 auto; text-align: center; }
}


/* ---------- Sezione contatti / newsletter ---------- */
.newsletter-section { background: var(--espresso); padding: 100px 0; border-top: 1px solid var(--line-light); }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.nl-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rosso); display: block; margin-bottom: 20px; }
.newsletter-inner h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; margin: 0 0 18px; color: var(--text-on-dark); }
.newsletter-inner h2 em { font-style: italic; color: var(--oro); }
.nl-lead { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; color: var(--text-on-dark-mute); margin: 0 auto 40px; max-width: 46ch; }
.newsletter-form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.nl-field { display: flex; flex-direction: column; gap: 8px; }
.nl-field label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-mute); }
.nl-field label span { text-transform: none; letter-spacing: 0; opacity: 0.65; }
.nl-field input, .nl-field textarea {
  font-family: 'Inter', sans-serif; font-size: 15px; width: 100%;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(244, 234, 213, 0.18);
  background: rgba(244, 234, 213, 0.05);
  color: var(--text-on-dark); resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.nl-field input::placeholder, .nl-field textarea::placeholder { color: rgba(244, 234, 213, 0.34); }
.nl-field input:focus, .nl-field textarea:focus { outline: none; border-color: var(--rosso); background: rgba(244, 234, 213, 0.08); }
.nl-submit {
  align-self: center; margin-top: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--rosso); color: var(--latte); border: none; border-radius: 100px; padding: 14px 38px;
  transition: background 0.2s, transform 0.1s;
}
.nl-submit:hover { background: var(--rosso-deep); transform: translateY(-1px); }
.nl-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.nl-feedback { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-align: center; margin: 6px 0 0; min-height: 16px; }
.nl-feedback.ok { color: var(--oro); }
.nl-feedback.err { color: #E29A9A; }
.nl-feedback a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) { .newsletter-section { padding: 76px 0; } }
.schedule-note { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--rosso); text-align: center; margin-top: 28px; }

/* ---------- Ricorrenze (Natale / Pasqua) ---------- */
.ricorrenze-section {
  background: var(--espresso-2);
  padding: 110px 0;
  border-top: 1px solid var(--line-light);
}
.ricorrenze-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.ric-card {
  background: var(--espresso);
  padding: 48px 40px;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}
.ric-card:hover { background: var(--espresso-2); }
.ric-season {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 16px;
  display: block;
}
.ric-title {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  font-variation-settings: "SOFT" 80, "opsz" 60, "wght" 400;
}
.ric-title em { font-style: italic; color: var(--rosso); }
.ric-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-on-dark-mute);
  margin-bottom: 24px;
}
.ric-points { list-style: none; margin-top: auto; display: grid; gap: 8px; }
.ric-points li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  padding-left: 16px;
  position: relative;
}
.ric-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--rosso);
}
.ric-cta {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-on-dark-mute);
}
.ric-cta a {
  color: var(--oro);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ric-cta a:hover { color: var(--rosso); }

/* ---------- Blocco testo SEO ---------- */
.seo-section {
  background: var(--latte);
  color: var(--text-on-light);
  padding: 100px 0;
}
.seo-inner { max-width: 820px; }
.seo-inner h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 28px;
}
.seo-inner h2 em { font-style: italic; color: var(--rosso-deep); }
.seo-inner p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-on-light-mute);
  margin-bottom: 18px;
}
.seo-inner strong { color: var(--text-on-light); font-weight: 500; }

/* ---------- Contatore visite ---------- */
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
}
.visit-counter.is-ready { opacity: 1; transform: none; }
.visit-counter:hover { border-color: rgba(178, 58, 58, 0.5); }
.vc-bean { width: 11px; height: 15px; color: var(--rosso); display: block; }
.vc-bean svg { width: 100%; height: 100%; display: block; }
.vc-digits {
  color: var(--text-on-dark);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .ricorrenze-grid { grid-template-columns: 1fr; }
  .ricorrenze-section { padding: 76px 0; }
  .ric-card { padding: 36px 28px; }
  .seo-section { padding: 76px 0; }
}
