/*
Theme Name: Rondina Store
Theme URI: https://www.rondinastore.it
Author: Michael Coltra
Author URI: mailto:coltra.michael3011@icloud.com
Description: Tema del sito Rondina Store (outlet grandi marche, San Bartolomeo in Bosco – Ferrara), ricavato dal sito Angular. Alla prima attivazione crea pagine, menu e home e importa gli articoli del blog. Contatti, orari e vetrina della home si modificano da Aspetto › Personalizza › Rondina Store.
Version: 1.4.5
Requires at least: 6.2
Requires PHP: 7.4
License: Uso privato
Text Domain: rondina
*/

/* Rondina Store – stili globali e design tokens */

:root {
  --nero: #111111;
  --nero-profondo: #000000;
  --rosso: #c23b22;
  --rosso-scuro: #a12f1a;
  --grigio-chiaro: #f4f4f4;
  --bordo: #e6e6e6;
  --bordo-input: #cccccc;
  --testo: #111111;
  --testo-2: #3f3f3f;
  --testo-3: #5e5e5e;
  --testo-su-scuro: #cfcfcf;
  --bianco: #ffffff;

  --font-titoli: 'Archivo', system-ui, sans-serif;
  --font-testo: 'DM Sans', system-ui, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --radius: 16px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: var(--font-testo);
  color: var(--testo);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--testo);
}

a:hover {
  color: var(--rosso);
}

:focus-visible {
  outline: 3px solid var(--rosso);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-titoli);
  margin: 0;
}

p {
  margin: 0;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section--tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

.bg-grigio {
  background: var(--grigio-chiaro);
}

.bg-nero {
  background: var(--nero);
  color: var(--bianco);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.split > * {
  flex: 1 1 460px;
  min-width: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 220px), 100%), 1fr));
}

/* ---------- Tipografia ---------- */

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rosso);
}

.h1 {
  font-weight: 800;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -1.3px;
}

.h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--testo-2);
  max-width: 560px;
}

.muted {
  color: var(--testo-3);
}

.bg-nero .lead,
.bg-nero .muted {
  color: var(--testo-su-scuro);
}

.link-arrow {
  font-weight: 700;
  font-size: 16px;
}

.bg-nero .link-arrow {
  color: var(--bianco);
}

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn--rosso {
  background: var(--rosso);
  color: var(--bianco);
}

.btn--rosso:hover {
  background: var(--rosso-scuro);
  color: var(--bianco);
}

.btn--nero {
  background: var(--nero);
  color: var(--bianco);
}

.btn--nero:hover {
  background: #333;
  color: var(--bianco);
}

.btn--outline {
  border-color: var(--nero);
  color: var(--nero);
  background: transparent;
}

.btn--outline:hover {
  background: var(--nero);
  color: var(--bianco);
}

.btn--outline-chiaro {
  border-color: var(--bianco);
  color: var(--bianco);
  background: transparent;
}

.btn--outline-chiaro:hover {
  background: var(--bianco);
  color: var(--nero);
}

.btn--bianco {
  background: var(--bianco);
  color: var(--nero);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Pulsanti filtro */
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--nero);
  background: var(--bianco);
  color: var(--nero);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.chip[aria-pressed='true'] {
  background: var(--nero);
  color: var(--bianco);
}

/* ---------- Card e segnaposto ---------- */

.card {
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bianco);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: var(--font-titoli);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--rosso);
}

.foto {
  border-radius: var(--radius-lg);
  background: var(--tint, #e8e8e8);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  min-height: var(--h, 320px);
  background-size: cover;
  background-position: center;
}

.foto-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--grigio-chiaro);
}

.foto__label {
  font-size: 13px;
  color: var(--testo-2);
  background: rgba(255, 255, 255, 0.78);
  padding: 6px 12px;
  border-radius: 999px;
}

.lista-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
}

.faq details {
  border: 1px solid var(--bordo);
  border-radius: 14px;
  padding: 18px 22px;
  background: var(--bianco);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
}

.faq details p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--testo-2);
}

/* Form */
.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo label {
  font-size: 14px;
  font-weight: 700;
}

.campo input,
.campo select {
  min-height: 48px;
  border: 1px solid var(--bordo-input);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  background: var(--bianco);
  color: var(--testo);
}

.campo--errore input {
  border-color: var(--rosso);
}

.errore {
  font-size: 13px;
  color: var(--rosso);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .split {
    gap: 32px;
  }
}

/* ---------- Testo degli articoli (Markdown) ---------- */

.prosa { font-size: 18px; line-height: 1.75; color: var(--testo-2); }
.prosa > * + * { margin-top: 1em; }
.prosa h2, .prosa h3 { color: var(--nero); line-height: 1.2; margin-top: 1.6em; }
.prosa h2 { font-size: 28px; }
.prosa h3 { font-size: 22px; }
.prosa p, .prosa ul, .prosa ol, .prosa blockquote { margin-bottom: 0; }
.prosa ul, .prosa ol { padding-left: 1.4em; }
.prosa li + li { margin-top: 0.3em; }
.prosa a { color: var(--rosso); }
.prosa strong { color: var(--nero); }
.prosa img { border-radius: var(--radius); margin: 1.4em 0; height: auto; }
.prosa blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--rosso); font-style: italic; }
.prosa table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prosa th, .prosa td { border: 1px solid var(--bordo); padding: 8px 10px; text-align: left; }
.prosa iframe, .prosa .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }


/* =====================================================================
   Componenti (dal sito Angular)
   ===================================================================== */

.icon { display: inline-block; flex: none; vertical-align: middle; }
.salta:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--bianco); padding: 10px 16px; border-radius: 8px; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { display: block; flex: none; }
.logo__testo { display: flex; flex-direction: column; gap: 6px; }
.logo__claim { white-space: nowrap; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--testo-3); }
@media (max-width: 640px) { .logo__claim { display: none; } }

/* ---------- Topbar e header ---------- */
.topbar { background: var(--nero); color: var(--bianco); font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.header { border-bottom: 1px solid var(--bordo); background: var(--bianco); position: relative; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 18px; padding-bottom: 18px; }
.header__logo { text-decoration: none; color: var(--nero); }
.nav { display: flex; flex-wrap: nowrap; gap: 4px 20px; white-space: nowrap; font-weight: 500; font-size: 16px; }
.nav__link { text-decoration: none; color: var(--nero); padding: 10px 0; border-bottom: 2px solid transparent; }
.nav__link--attivo { border-bottom-color: var(--rosso); }
.header__toggle, .nav__cta-mobile { display: none; }
.header__toggle .icona-chiudi { display: none; }
.header__toggle[aria-expanded='true'] .icona-apri { display: none; }
.header__toggle[aria-expanded='true'] .icona-chiudi { display: inline; }

@media (max-width: 1360px) {
  .topbar__orari, .header__cta { display: none; }
  .header__toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--nero); cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bianco); border-bottom: 1px solid var(--bordo); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
  .nav--aperto { display: flex; }
  .nav__link { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--bordo); }
  .nav__link--attivo { color: var(--rosso); border-bottom-color: var(--bordo); }
  .nav__cta-mobile { display: inline-flex; margin-top: 16px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--nero-profondo); color: var(--testo-su-scuro); font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.footer__info { display: flex; flex-direction: column; gap: 14px; max-width: 340px; line-height: 1.6; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer__titolo { color: var(--bianco); font-weight: 700; }
.footer a { color: var(--testo-su-scuro); text-decoration: none; }
.footer a:hover { color: var(--bianco); text-decoration: underline; }
.footer__bottom { border-top: 1px solid #2a2a2a; padding-top: 16px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer__credito { color: #8a8a8a; }
.footer__credito a { text-decoration: underline; text-underline-offset: 2px; }

.wa-fab { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
@media (max-width: 640px) { .wa-fab { display: flex; } .footer { padding-bottom: 72px; } }

/* ---------- Home ---------- */
.hero { padding-top: 56px; padding-bottom: 72px; }
.hero__mosaico { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero__grande { grid-row: span 2; height: 460px; }
.hero__piccola { height: 222px; }
.hero__promo { background: var(--nero); color: var(--bianco); border-radius: var(--radius-lg); min-height: 222px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; text-decoration: none; transition: transform 0.15s ease; }
a.hero__promo:hover { transform: translateY(-2px); color: var(--bianco); }
.hero__promo--rosso { background: var(--rosso); }
.hero__promo-kicker { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; }
.hero__promo-testo { font-family: var(--font-titoli); font-weight: 800; font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.hero__promo-testo span { color: #f2b8a8; }
.hero__promo--rosso .hero__promo-testo span { color: #ffe1a8; }
.freccia { font-size: 15px; font-weight: 700; }

.reparti-scroll { display: flex; flex-wrap: nowrap; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 16px; margin-top: -4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #bdbdbd transparent; }
.reparto { flex: 1 0 190px; scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: var(--nero); background: var(--bianco); border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.reparto:hover { color: var(--nero); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.reparto__foto { display: block; width: 100%; height: 200px; object-fit: cover; }
.reparto__testo { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; }

.passi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card .titolo { font-weight: 700; font-size: 19px; }
.card .testo { font-size: 15px; line-height: 1.5; color: var(--testo-3); }
.card > .icon { color: var(--rosso); }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 16px; animation: scorri 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; display: inline-flex; align-items: center; height: 88px; padding: 0 32px; border: 1px solid #3a3a3a; border-radius: 16px; }
.marquee__item img { display: block; width: auto; height: auto; max-height: 50px; max-width: 150px; filter: invert(1); }
@keyframes scorri { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; } .duplicato { display: none; } }

.fidelity { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; background: var(--grigio-chiaro); border-radius: 24px; padding: 56px; }
.fidelity__testo { flex: 1 1 440px; min-width: 0; }
.fidelity__vantaggi { display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 500; }
.fidelity__vantaggi li { display: flex; align-items: center; gap: 12px; }
.fidelity__vantaggi .icon { color: var(--rosso); }
.fidelity__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; padding: 16px 0; }
.carta { width: 100%; max-width: 440px; height: auto; border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); transform: rotate(-4deg); }
.fidelity--inversa { flex-direction: row-reverse; }
.sezione-fid + .sezione-gift { padding-top: 0; }
.fidelity--inversa .carta { transform: rotate(4deg); }
.carta-wrap { display: flex; justify-content: center; padding: 24px 0; }
.carta-wrap .carta { max-width: 480px; border-radius: 24px; }

.mappa { min-height: 400px; border-radius: var(--radius-lg); overflow: hidden; background: #e8e8e8; }
.mappa iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
.riga { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.6; }
.riga .icon { color: var(--rosso); margin-top: 3px; }
.orari { border-collapse: collapse; font-size: 17px; width: 100%; max-width: 440px; }
.orari th { text-align: left; font-weight: 500; padding: 10px 0; }
.orari td { text-align: right; padding: 10px 0; }
.orari tr + tr { border-top: 1px solid var(--bordo); }

.articolo { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--nero); }
.articolo:hover { color: var(--nero); }
.articolo:hover .h3 { text-decoration: underline; }
.articolo__foto { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.articolo__testo { display: flex; flex-direction: column; gap: 10px; }
.articolo__estratto { font-size: 15px; line-height: 1.55; color: var(--testo-2); }
.articolo--card { gap: 0; background: var(--bianco); border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.articolo--card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.articolo--card:hover .h3 { text-decoration: none; }
.articolo--card .articolo__foto { aspect-ratio: 16 / 9; border-radius: 0; }
.articolo--card .articolo__testo { padding: 20px 22px 24px; }

.cta { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta__testi { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.newsletter { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.newsletter__testi { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.newsletter__form { flex: 1 1 460px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.newsletter__form input[type='email'] { flex: 1 1 240px; min-height: 52px; border: 1px solid var(--bordo-input); border-radius: 999px; padding: 0 20px; font: inherit; font-size: 16px; }
.newsletter .consenso { flex: 1 1 100%; color: var(--testo-3); }
.newsletter .msg { flex: 1 1 100%; font-size: 14px; color: var(--rosso); font-weight: 500; }
.newsletter__ok { flex: 1 1 460px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.newsletter__ok strong { font-size: 18px; }
[hidden] { display: none !important; }

/* ---------- Reparto ---------- */
.briciole { padding-top: 20px; font-size: 14px; color: var(--testo-3); }
.briciole a { color: var(--testo-3); }
.briciole span { color: var(--nero); }
.hero--pagina { padding-top: 32px; padding-bottom: 64px; }
.sottocat { display: flex; align-items: center; gap: 12px; background: var(--bianco); border: 1px solid var(--bordo); border-radius: 14px; padding: 18px 20px; font-size: 17px; font-weight: 500; }
.sottocat .icon { color: var(--rosso); }

/* ---------- Marchi ---------- */
.marchio { height: 140px; border: 1px solid var(--bordo); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; text-align: center; }
.marchio--reparto { height: 120px; }
.marchio__logo { display: block; width: auto; height: auto; max-width: 75%; max-height: 64px; }
.marchio--reparto .marchio__logo { max-height: 56px; }
.marchio__reparti { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--testo-3); }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip:hover { color: var(--nero); border-color: var(--rosso); }
a.chip[aria-pressed='true']:hover { color: var(--bianco); }

/* ---------- Negozio ---------- */
.foto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.foto-grid .larga { grid-column: span 2; }
.numeri { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.numero { font-family: var(--font-titoli); font-weight: 800; font-size: 52px; line-height: 1; }
.contatti { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contatto { text-decoration: none; }
.contatto .icon { color: var(--rosso); }
.contatto--wa { background: var(--rosso); border-color: var(--rosso); color: var(--bianco); }
.contatto--wa:hover { color: var(--bianco); background: var(--rosso-scuro); }
.contatto--wa .icon, .contatto--wa .etichetta { color: var(--bianco); }
.etichetta { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--testo-3); }
.valore { font-family: var(--font-titoli); font-weight: 800; font-size: 24px; overflow-wrap: anywhere; }

/* ---------- Fidelity ---------- */
.pannello { background: var(--bianco); color: var(--nero); border-radius: var(--radius-lg); padding: 32px; }
.pannello .muted { color: var(--testo-2); }
.ok { color: #1f7a4d; }
.modulo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.intera { grid-column: 1 / -1; }
.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--testo-2); }
.consenso input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rosso); flex: none; }
.bg-nero .pannello a { color: var(--rosso); }

/* ---------- Blog ---------- */
.evidenza { display: flex; flex-wrap: wrap; text-decoration: none; color: var(--nero); border: 1px solid var(--bordo); border-radius: var(--radius-lg); overflow: hidden; }
.evidenza:hover { color: var(--nero); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.evidenza__img { flex: 1 1 520px; min-width: 0; height: 380px; object-fit: cover; }
.evidenza__testo { flex: 1 1 400px; min-width: 0; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.meta-cat { display: flex; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--testo-3); }
.rosso { color: var(--rosso); }
.articoli { --min: 300px; gap: 32px 24px; }
.articolo-pagina { max-width: 760px; margin: 0 auto; padding-top: 40px; padding-bottom: 72px; }
.articolo-pagina .briciole { padding-top: 0; margin-bottom: 24px; }
.copertina { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 40px; }
.altri { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.altro { text-decoration: none; }
.altro:hover { color: var(--nero); border-color: var(--nero); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--bordo); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--nero); color: var(--bianco); border-color: var(--nero); }
.pagination .dots { border: 0; }

/* contenuti dell'editor di WordPress */
.prosa .wp-block-image img, .prosa figure img { margin: 0; }
.prosa figure { margin: 1.4em 0; }
.prosa figcaption { font-size: 14px; color: var(--testo-3); margin-top: 8px; }
.alignwide, .alignfull { max-width: 100%; }

@media (max-width: 640px) {
  .fidelity { padding: 28px 20px; gap: 24px; }
  .hero { padding-top: 24px; padding-bottom: 48px; }
  .hero__grande { grid-column: span 2; grid-row: auto; height: 260px; }
  .hero__piccola, .hero__promo { height: auto; min-height: 180px; }
  .hero__promo-testo { font-size: 22px; }
  .reparto__foto { height: 120px; }
  .reparto { flex-basis: 160px; }
  .marquee__item { height: 60px; padding: 0 22px; border-radius: 12px; }
  .marquee__item img { max-height: 34px; max-width: 110px; }
  .marquee__track { gap: 10px; }
  .foto-hero { height: 280px !important; }
  .numero { font-size: 40px; }
  .pannello { padding: 22px; }
  .modulo { grid-template-columns: 1fr; }
  .evidenza__img { height: 220px; }
  .evidenza__testo { padding: 24px; }
  .articoli { --min: 240px; }
  .copertina { height: 240px; }
}

/* Video di Facebook negli articoli */
.prosa .video-fb { margin: 1.6em 0; border-radius: var(--radius); overflow: hidden; background: var(--nero); aspect-ratio: 16 / 9; }
.prosa .video-fb--verticale { aspect-ratio: 9 / 16; width: min(100%, 360px); margin-inline: auto; }
.prosa .video-fb iframe { display: block; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }

/* ---- Versione di Natale (classe "natale" su <html>, vedi inc/natale.php e assets/js/natale.js) ---- */
html.natale .hero__promo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(244, 197, 66, 0.18), transparent 45%),
    var(--nero);
}

/* rametto di agrifoglio nell'angolo del riquadro nero della home */
html.natale .hero__promo::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 64px;
  height: 52px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M30 30 C22 22 12 24 4 18 C8 26 6 30 2 34 C8 33 12 36 14 42 C18 36 24 36 30 30Z' fill='%232fa35f'/%3E%3Cpath d='M34 30 C42 22 52 24 60 18 C56 26 58 30 62 34 C56 33 52 36 50 42 C46 36 40 36 34 30Z' fill='%23247f4a'/%3E%3Cpath d='M30 30 C20 26 12 26 5 20' stroke='%231d3b2a' stroke-width='1.2' fill='none'/%3E%3Cpath d='M34 30 C44 26 52 26 59 20' stroke='%231d3b2a' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='27' cy='31' r='5' fill='%23e5372a'/%3E%3Ccircle cx='37' cy='31' r='5' fill='%23c9281c'/%3E%3Ccircle cx='32' cy='24' r='5' fill='%23e5372a'/%3E%3Ccircle cx='30.5' cy='22.5' r='1.4' fill='%23fff' opacity='.6'/%3E%3C/svg%3E")
    no-repeat center / contain;
  pointer-events: none;
}

/* un velo di neve sul bordo alto delle fasce nere */
html.natale .bg-nero {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
}

/* bordo a bastoncino di zucchero sotto l'intestazione */
html.natale .header {
  border-bottom-color: transparent;
  background:
    repeating-linear-gradient(-45deg, #c9281c 0 7px, #ffffff 7px 14px) bottom / 100% 4px no-repeat,
    var(--bianco);
}

/* cappellino sul monogramma del logo */
html.natale .header__logo {
  position: relative;
}

html.natale .header__logo::before {
  content: '';
  position: absolute;
  left: -9px;
  top: -17px;
  width: 38px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M8 30 C12 18 20 8 34 6 C40 5 44 9 43 14 C41 11 38 11 36 13 C34 18 36 24 40 30 Z' fill='%23d42a1e'/%3E%3Cpath d='M8 30 C14 22 22 14 34 9' stroke='%23a81d13' stroke-width='2' fill='none' opacity='.5'/%3E%3Crect x='4' y='28' width='40' height='9' rx='4.5' fill='%23fff'/%3E%3Ccircle cx='42' cy='15' r='5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-16deg);
  pointer-events: none;
}

/* fiocco rosso sulla foto grande della home */
html.natale .hero__mosaico {
  position: relative;
}

html.natale .hero__mosaico::before {
  content: '';
  position: absolute;
  left: -18px;
  top: -26px;
  width: 92px;
  height: 84px;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 42 L30 88 L40 84 L46 92 L52 46Z' fill='%23a81d13'/%3E%3Cpath d='M50 42 L66 86 L56 83 L50 90 L48 46Z' fill='%23c9281c'/%3E%3Cpath d='M50 40 C38 20 14 14 10 26 C6 38 30 46 50 42Z' fill='%23d42a1e'/%3E%3Cpath d='M50 40 C62 20 86 14 90 26 C94 38 70 46 50 42Z' fill='%23d42a1e'/%3E%3Cpath d='M50 41 C40 28 22 22 17 28' stroke='%23a81d13' stroke-width='2.5' fill='none' opacity='.6'/%3E%3Cpath d='M50 41 C60 28 78 22 83 28' stroke='%23a81d13' stroke-width='2.5' fill='none' opacity='.6'/%3E%3Cellipse cx='50' cy='41' rx='8' ry='7' fill='%23b3200f'/%3E%3Cellipse cx='48' cy='38.5' rx='3' ry='2' fill='%23fff' opacity='.35'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

/* palline appese ai lati delle fasce nere (solo su schermi larghi, dove c'è spazio) */
@media (min-width: 1400px) {
  html.natale .bg-nero {
    position: relative;
  }

  html.natale .bg-nero::before,
  html.natale .bg-nero::after {
    content: '';
    position: absolute;
    top: 0;
    width: 64px;
    height: 104px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 130'%3E%3Cg stroke='%23c9a227' stroke-width='1'%3E%3Cline x1='16' y1='0' x2='16' y2='52'/%3E%3Cline x1='42' y1='0' x2='42' y2='88'/%3E%3Cline x1='66' y1='0' x2='66' y2='34'/%3E%3C/g%3E%3Crect x='12' y='50' width='8' height='6' rx='1' fill='%23c9a227'/%3E%3Ccircle cx='16' cy='66' r='12' fill='%23d42a1e'/%3E%3Cpath d='M7 64 a10 10 0 0 1 6 -8' stroke='%23fff' stroke-width='2' fill='none' opacity='.55' stroke-linecap='round'/%3E%3Crect x='38' y='86' width='8' height='6' rx='1' fill='%23c9a227'/%3E%3Ccircle cx='42' cy='104' r='14' fill='%23e8b830'/%3E%3Cpath d='M32 101 a12 12 0 0 1 7 -9' stroke='%23fff' stroke-width='2' fill='none' opacity='.6' stroke-linecap='round'/%3E%3Cpath d='M28 104 h28' stroke='%23b8901d' stroke-width='2' opacity='.6'/%3E%3Crect x='62' y='32' width='8' height='6' rx='1' fill='%23c9a227'/%3E%3Ccircle cx='66' cy='47' r='11' fill='%232b8a52'/%3E%3Cpath d='M58 45 a9 9 0 0 1 5 -7' stroke='%23fff' stroke-width='2' fill='none' opacity='.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat top / contain;
    pointer-events: none;
    transform-origin: top center;
    animation: dondola 5s ease-in-out infinite;
  }

  html.natale .bg-nero::before {
    left: 18px;
  }

  html.natale .bg-nero::after {
    right: 18px;
    transform: scaleX(-1);
    animation-name: dondola-specchio;
    animation-delay: -2.5s;
  }
}

@keyframes dondola {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes dondola-specchio {
  0%, 100% { transform: scaleX(-1) rotate(-2deg); }
  50% { transform: scaleX(-1) rotate(2deg); }
}

/* neve posata sul bordo alto del footer */
html.natale .footer {
  position: relative;
  padding-top: 8px;
}

html.natale .footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H240 V3 C232 3 230 9 224 9 C218 9 218 4 210 4 C200 4 199 14 192 14 C185 14 186 5 176 5 C166 5 165 8 156 8 C148 8 148 3 138 3 C128 3 128 12 120 12 C112 12 113 4 102 4 C92 4 92 7 84 7 C76 7 76 3 66 3 C56 3 56 15 48 15 C40 15 41 5 30 5 C20 5 20 8 12 8 C6 8 5 3 0 3 Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x top / 240px 18px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html.natale .bg-nero::before,
  html.natale .bg-nero::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  html.natale .hero__mosaico::before {
    left: -8px;
    top: -18px;
    width: 64px;
    height: 58px;
  }

  html.natale .header__logo::before {
    left: -7px;
    top: -13px;
    width: 30px;
    height: 25px;
  }
}

/* testi che compaiono solo a Natale (o solo fuori da Natale) */
.natale-solo { display: none; }
html.natale .natale-solo { display: inline; }
html.natale .natale-no { display: none; }
.topbar__auguri { color: #f4c542; font-weight: 700; letter-spacing: 0.3px; }

/* filo di lucine colorate sotto l'intestazione */
.natale-luci { display: block; position: relative; height: 30px; overflow: hidden; pointer-events: none; margin-bottom: -30px; z-index: 5; }
.natale-luci__filo { display: flex; width: max-content; height: 100%; }
.natale-luci__tratto {
  position: relative; width: 52px; height: 100%; flex: none;
  background: radial-gradient(ellipse 30px 13px at 50% 0, transparent 92%, #1d3b2a 94%, #1d3b2a 99%, transparent 100%);
}
.natale-luci__lampadina {
  position: absolute; left: 50%; top: 10px; width: 9px; height: 13px; margin-left: -4.5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--colore); box-shadow: 0 0 8px 2px var(--alone);
  animation: natale-brilla 2.4s ease-in-out infinite; animation-delay: var(--ritardo);
}
.natale-luci__lampadina::before { content: ''; position: absolute; left: 2px; top: -3px; width: 5px; height: 4px; border-radius: 1px; background: #2c2c2c; }
.natale-luci__tratto:nth-child(4n + 1) .natale-luci__lampadina { --colore: #e5372a; --alone: rgba(229, 55, 42, 0.55); --ritardo: 0s; }
.natale-luci__tratto:nth-child(4n + 2) .natale-luci__lampadina { --colore: #f4c542; --alone: rgba(244, 197, 66, 0.55); --ritardo: 0.6s; }
.natale-luci__tratto:nth-child(4n + 3) .natale-luci__lampadina { --colore: #2fa35f; --alone: rgba(47, 163, 95, 0.55); --ritardo: 1.2s; }
.natale-luci__tratto:nth-child(4n + 4) .natale-luci__lampadina { --colore: #fff4d6; --alone: rgba(255, 244, 214, 0.7); --ritardo: 1.8s; }
@keyframes natale-brilla { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; box-shadow: 0 0 3px 0 var(--alone); } }
@media (prefers-reduced-motion: reduce) { .natale-luci__lampadina { animation: none; } }
@media (max-width: 640px) { .natale-luci { margin-bottom: -6px; } }

/* pulsante per fermare o far ripartire la neve */
.natale-interruttore {
  position: fixed; left: 16px; bottom: 16px; z-index: 41;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--nero); color: var(--bianco); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.natale-interruttore:hover { background: var(--rosso); }
.natale-interruttore .barra { stroke: var(--rosso); display: none; }
.natale-interruttore--spento svg { opacity: 0.55; }
.natale-interruttore--spento .barra { display: inline; }
.natale-interruttore:hover .barra { stroke: var(--bianco); }
@media (max-width: 640px) { .natale-interruttore { left: auto; right: 16px; bottom: 84px; width: 40px; height: 40px; } }

/* ---- Modulo Fidelity con Contact Form 7 (1.4.4) ---- */
.modulo-cf7 .hidden-fields-container { display: none; }
.modulo-cf7 .wpcf7-form-control-wrap { display: block; }
.modulo-cf7 .campo input,
.modulo-cf7 .campo select { width: 100%; box-sizing: border-box; }
.modulo-cf7 .wpcf7-not-valid { border-color: var(--rosso) !important; }
.modulo-cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: var(--rosso); }
.modulo-cf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.modulo-cf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; }
.modulo-cf7 .wpcf7-acceptance input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rosso); flex: none; }
.modulo-cf7 .wpcf7-submit { width: 100%; cursor: pointer; border: 0; }
.modulo-cf7 .wpcf7-submit:disabled { opacity: .6; cursor: wait; }
.modulo-cf7 .wpcf7-spinner { margin: 10px auto 0; display: block; }
.modulo-cf7 .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; padding: 12px 14px !important; border-radius: 12px; font-size: 15px; }
.modulo-cf7.sent .wpcf7-response-output { border-color: #1f7a4d !important; color: #1f7a4d; background: #eaf6ef; }
.modulo-cf7.invalid .wpcf7-response-output,
.modulo-cf7.failed .wpcf7-response-output { border-color: var(--rosso) !important; color: var(--rosso); }

/* Conferma dopo l'invio del modulo Fidelity (1.4.5) */
.modulo-cf7.sent .wpcf7-response-output { display: none; }
.card-ok--in { animation: card-ok-entra 0.45s ease-out both; }
.card-ok--in .ok svg { animation: card-ok-spunta 0.5s 0.15s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes card-ok-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes card-ok-spunta { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .card-ok--in, .card-ok--in .ok svg { animation: none; } }

/* ---- Pagina negozio: email e Instagram sempre su una riga ---- */
.contatto[href^="mailto:"] .valore,
.contatto[href*="instagram.com"] .valore { white-space: nowrap; overflow-wrap: normal; }
@media (min-width: 560px) {
  /* email e Instagram larghe il doppio; Facebook e TikTok ai lati di Instagram */
  .contatti .contatto[href^="mailto:"],
  .contatti .contatto[href*="instagram.com"] { grid-column: span 2; }
}
@media (max-width: 559px) {
  /* telefono: il testo si rimpicciolisce quanto basta per stare nella scheda */
  .contatto[href^="mailto:"] .valore { font-size: min(24px, calc((100vw - 110px) / 10.6)); }
  .contatto[href*="instagram.com"] .valore { font-size: min(24px, calc((100vw - 110px) / 15)); }
}

/* ---- Reparti: carosello doppio dei marchi (due file in sensi opposti, versione chiara) ---- */
.marchi-reparto .section-head { margin-bottom: 28px; }
.marquee--chiaro .marquee__track { animation-duration: var(--durata, 40s); }
.marquee--chiaro + .marquee--chiaro { margin-top: 14px; }
.marquee__track--inverso { animation-direction: reverse; }
.marquee--chiaro .marquee__item { background: var(--bianco); border-color: var(--bordo); }
.marquee--chiaro .marquee__item img { filter: none; }
.marquee__nome { font-family: var(--font-titoli); font-weight: 800; font-size: 18px; white-space: nowrap; color: var(--nero); }
@media (prefers-reduced-motion: reduce) { .marquee--secondo { display: none; } }

/* Caroselli dei marchi trascinabili */
.marquee { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.marquee.marquee--trascina { cursor: grabbing; }
.marquee img { -webkit-user-drag: none; pointer-events: none; }
