/* Aggiunte minime sopra ai fogli di stile originali del tema/Elementor —
   nessuno stile di contenuto qui, solo comportamento (sticky header, scroll). */

/* Il reset del tema imposta body{overflow-x:clip} per evitare scroll
   orizzontale indesiderato da elementi full-bleed — ma QUALSIASI asse non
   "visible" su html O body rompe position:sticky per i discendenti (l'header
   smette di restare fisso durante lo scroll, bug reale confermato). Nessun
   contenuto del sito genera overflow orizzontale reale, quindi rimuoviamo il
   clip invece di spostarlo: sticky vince su una precauzione mai necessaria. */
body {
  overflow-x: visible !important;
}

/* position:sticky è corretto qui (nessun antenato con overflow/transform/
   contain che lo romperebbe, verificato) ma in alcuni contesti di rendering
   non risulta affidabile — usiamo direttamente position:fixed, visivamente
   identico a sticky dato che l'header è già in cima alla pagina (nessun
   contenuto lo precede da "superare" scorrendo). js/nav.js inserisce lo
   spacer per non far saltare il contenuto sottostante. */
header[data-elementor-type="header"] > .elementor-element:first-child {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

html {
  scroll-behavior: smooth;
}

/* Menu mobile: mostra/nascondi diretto (vedi commento in js/nav.js sul
   perché non si riusa il meccanismo max-height/animazione originale). */
.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  display: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}
header .elementor-nav-menu--dropdown.elementor-nav-menu__container.wc-nav-open {
  display: block !important;
  position: fixed !important;
  top: var(--wc-header-h, 72px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: calc(100vh - var(--wc-header-h, 72px)) !important;
  overflow-y: auto !important;
  background: #fff !important;
}

[data-lang] {
  display: none;
}

/* ── Hover bottoni: più moderno del semplice "translateY" originale
   (ombra morbida + leggero scale + accento colore reale del brand) ── */
.elementor-button {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background-color .25s ease !important;
}
.elementor-button:hover,
.elementor-button:focus-visible {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 24px -8px rgba(67, 106, 99, .45);
}
.elementor-button:active {
  transform: translateY(-1px) scale(1) !important;
  box-shadow: 0 6px 12px -6px rgba(67, 106, 99, .4);
}

/* ── Pagina Staff: espansa rispetto all'originale (solo 2 foto+nomi) con
   ruolo/bio dei fondatori, punti di forza e la card dello chef. ── */
.wc-staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: center;
  margin-top: 48px;
}
.wc-staff-card { text-align: center; max-width: 300px; }
.wc-staff-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.wc-staff-name {
  margin-top: 20px;
  font-family: 'Cormorant Upright', serif;
}
.wc-staff-role {
  font-family: 'Noto Serif', serif;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #69A89C;
  margin: 4px 0 14px;
}
.wc-staff-bio {
  font-family: 'Noto Serif', serif;
  font-size: 14.5px;
  line-height: 1.75;
  color: #55605b;
}
.wc-staff-values {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
}
.wc-staff-chef {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
}
.wc-staff-chef-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #436A63 0%, #69A89C 100%);
  color: #F8FCF9;
  font-family: 'Cormorant Upright', serif;
  font-size: 26px;
  letter-spacing: 1px;
}
.wc-staff-chef-quote {
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: #55605b;
  margin-top: 18px;
}
.wc-staff-chef-quote-author {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #69A89C;
}

/* ── Fascia opinioni scorrevole in homepage ── stesso pattern (una citazione
   alla volta in crossfade, stelle, barra di avanzamento, frecce, auto-play)
   già usato per Casale de' Pasquinelli, qui con i colori del kit Wedding &
   Co. Sostituisce la vecchia pagina "Opinioni" indipendente, ora rimossa dal
   menu. */
.wc-testi {
  background: linear-gradient(150deg, #24322e 0%, #16201d 100%);
  padding: 110px 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wc-testi::before {
  content: '\201C';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Upright', serif;
  font-size: 420px;
  line-height: 1;
  color: rgba(105, 168, 156, .07);
  pointer-events: none;
  user-select: none;
}
.wc-testi-label {
  font-family: 'Noto Serif', serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #69A89C;
  margin: 0 0 56px;
  position: relative;
}
.wc-testi-stars {
  color: #69A89C;
  letter-spacing: 6px;
  font-size: 14px;
  margin-bottom: 32px;
  position: relative;
}
.wc-testi-content {
  max-width: 760px;
  width: 90%;
  position: relative;
  transition: opacity .22s ease, transform .22s ease;
}
.wc-testi-content.wc-testi-fade-out { opacity: 0; transform: translateY(8px); }
.wc-testi-quote {
  font-family: 'Cormorant Upright', serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: #F8FCF9;
  line-height: 1.7;
  margin: 0 0 36px;
}
.wc-testi-divider {
  width: 40px; height: 1px;
  background: #69A89C;
  margin: 0 auto 24px;
  opacity: .7;
}
.wc-testi-name {
  font-family: 'Cormorant Upright', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  color: #9FCFC2;
  margin: 0 0 6px;
}
.wc-testi-source {
  font-family: 'Noto Serif', serif;
  font-size: 12.5px;
  font-style: italic;
  color: rgba(248,252,249,.45);
  margin: 0;
}
.wc-testi-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.wc-testi-progress {
  width: 180px; height: 1px;
  background: rgba(105,168,156,.2);
}
.wc-testi-progress-fill {
  height: 100%;
  background: #69A89C;
  transition: width .5s ease;
}
.wc-testi-arrows { display: flex; align-items: center; gap: 32px; }
.wc-testi-arrow {
  width: 40px; height: 40px;
  border: 1px solid rgba(105,168,156,.4);
  border-radius: 50%;
  background: none;
  color: #9FCFC2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s ease, background .25s ease;
}
.wc-testi-arrow:hover { border-color: #69A89C; background: rgba(105,168,156,.12); }
.wc-testi-counter {
  font-family: 'Noto Serif', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(248,252,249,.4);
  min-width: 44px;
  text-align: center;
}
@media (max-width: 600px) {
  .wc-testi { padding: 80px 24px; }
  .wc-testi::before { font-size: 240px; top: -30px; }
}

/* ── Blog: card moderne, stessi colori/font del resto del sito (kit-12:
   primary #69A89C, secondary #436A63, Cormorant Upright per i titoli). ── */
.wc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.wc-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px -8px rgba(50, 79, 74, .18);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.wc-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px -14px rgba(50, 79, 74, .32);
}
.wc-blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1ef;
}
.wc-blog-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.wc-blog-card:hover .wc-blog-card-media img { transform: scale(1.08); }
.wc-blog-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(67, 106, 99, .92);
  color: #fff;
  font-family: 'Noto Serif', serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.wc-blog-card-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.wc-blog-card-date {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #69A89C;
  margin: 0 0 10px;
}
.wc-blog-card-title {
  margin: 0 0 12px;
  font-family: 'Cormorant Upright', serif;
  font-size: 26px;
  line-height: 1.25;
  color: #312F2B;
}
.wc-blog-card-title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.wc-blog-card:hover .wc-blog-card-title a { color: #436A63; }
.wc-blog-card-excerpt {
  font-family: 'Noto Serif', serif;
  font-size: 14.5px;
  line-height: 1.75;
  color: #55605b;
  margin: 0 0 20px;
  flex: 1;
}
.wc-blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #436A63;
  text-decoration: none;
  border-bottom: 1px solid rgba(67,106,99,.35);
  padding-bottom: 2px;
  transition: gap .2s ease, color .2s ease, border-color .2s ease;
}
.wc-blog-card-cta-arrow { transition: transform .25s ease; }
.wc-blog-card-cta:hover { gap: 12px; color: #69A89C; border-color: #69A89C; }

/* ── Dettaglio articolo blog ── */
.wc-blog-post-head { text-align: center; margin-bottom: 8px; }
.wc-blog-post-tag { position: static; display: inline-block; margin-bottom: 18px; }
.wc-blog-post-title {
  font-family: 'Cormorant Upright', serif;
  font-size: clamp(32px, 5vw, 48px);
  color: #312F2B;
  margin: 0 0 12px;
  line-height: 1.15;
}
.wc-blog-post-date { justify-content: center; text-align: center; margin: 0 0 8px; }
.wc-blog-post-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 6px;
  margin: 36px 0;
}
.wc-blog-post-content {
  max-width: 740px;
  margin: 0 auto;
  font-family: 'Noto Serif', serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: #33403b;
}
.wc-blog-post-content p { margin: 0 0 22px; }
.wc-blog-post-back { margin-top: 12px; }

/* ── Footer moderno ── mantiene solo la sfumatura di sfondo originale del
   kit Elementor (linear-gradient #F2F2F2 → #D7E0D4, vedi post-99-footer.css
   sull'elemento 32239b94); tutto il resto — layout, tipografia, gerarchia —
   è stato ricostruito da zero per leggibilità e resa moderna, come richiesto. */
.wc-footer {
  background: linear-gradient(180deg, #F2F2F2 0%, #D7E0D4 100%);
  padding: 72px 5% 0;
}
.wc-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.wc-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(67, 106, 99, .18);
}
.wc-footer-logo { height: 64px; width: auto; display: block; margin-bottom: 20px; opacity: .92; }
.wc-footer-tagline {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  line-height: 1.7;
  color: #3c4a45;
  max-width: 34ch;
  margin: 0;
}
.wc-footer-heading {
  font-family: 'Cormorant Upright', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #436A63;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 12px;
}
.wc-footer-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: #69A89C;
}
.wc-footer-heading span[data-lang] { display: inline; }
.wc-footer-text {
  font-family: 'Noto Serif', serif;
  font-size: 14.5px;
  line-height: 1.8;
  color: #3c4a45;
  margin: 0 0 16px;
}
.wc-footer-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.wc-footer-links a,
.wc-footer-nav a {
  color: #33413c;
  text-decoration: none;
  font-family: 'Noto Serif', serif;
  font-size: 14.5px;
  transition: color .2s ease, padding-left .2s ease;
}
.wc-footer-links a:hover,
.wc-footer-nav a:hover { color: #436A63; padding-left: 3px; }
.wc-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wc-footer-nav a.elementor-item-active { color: #436A63; font-weight: 600; }
.wc-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 24px 0;
  font-family: 'Noto Serif', serif;
  font-size: 12.5px;
  letter-spacing: .3px;
  color: #5c6963;
}
.wc-footer-copy, .wc-footer-credit { margin: 0; }
@media (max-width: 900px) {
  .wc-footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 560px) {
  .wc-footer { padding: 56px 24px 0; }
  .wc-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .wc-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--e-global-color-secondary, #436A63);
  color: #fff;
  padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-family: 'Noto Serif', serif;
  font-size: 14px;
}
#cookie-banner a { color: #fff; text-decoration: underline; }

.wc-form-msg { margin-top: 12px; font-family: 'Noto Serif', serif; font-size: 14px; }
.wc-form-msg.success { color: #2c6b2f; }
.wc-form-msg.error { color: #a33; }
