/* VArisotto — home page editoriale
   Riusa i token di theme.json (bordeaux #702d40, verde #385247,
   quasi-bianco #faf6ef, bianco #ffffff) e le classi già esistenti in
   explorer.css (.vr-card, .vr-badge, .vr-explorer, .vr-pin, ecc.), che
   NON vengono toccate: la mappa e l'elenco restano quelli già funzionanti. */
:root{
  --vh-bordeaux:var(--wp--preset--color--bordeaux,#702d40);
  --vh-verde:var(--wp--preset--color--verde,#385247);
  --vh-cream:var(--wp--preset--color--quasi-bianco,#faf6ef);
  --vh-white:var(--wp--preset--color--bianco,#fff);
  --vh-border:#e3ddcb;
  --vh-shadow:0 10px 28px rgba(56,82,71,.10);
  --vh-shadow-hover:0 16px 38px rgba(56,82,71,.16);
  --vh-radius:18px;
  --vh-ease:cubic-bezier(.22,.8,.32,1);
}
/* The theme's block-editor "contentSize" (theme.json) constrains ordinary
   post content to a narrow reading column (~760px). That's right for a
   single restaurant page, but this raw-HTML home page is a full editorial
   layout with its own grid system (.vr-inner, max-width 1120px, below), so
   on the home page only we lift that outer cap and let our own sections
   size themselves. Header/footer and every other page keep the theme's
   default width untouched. */
body.vr-is-home .entry-content.wp-block-post-content{max-width:none}
body.vr-is-home .vr-home{max-width:none}
/* A tutta larghezza: il padding laterale globale del tema farebbe rientrare
   le fasce colorate, lasciando due bordi crema ai lati. Lo annulliamo sulla
   home; il respiro laterale lo danno .vr-inner / .vr-inner-narrow. */
body.vr-is-home main.wp-block-group,
body.vr-is-home .entry-content.wp-block-post-content{padding-left:0;padding-right:0;margin-left:0;margin-right:0}
/* Niente fascia crema fra intestazione ed eroe, ne' fra ultima sezione e
   footer: le sezioni hanno gia' il proprio respiro verticale. */
body.vr-is-home main.wp-block-group{max-width:none;padding-top:0 !important;padding-bottom:0 !important;margin-top:0;margin-bottom:0}
body.vr-is-home .wp-site-blocks>footer.wp-block-template-part,
body.vr-is-home .wp-site-blocks>header.wp-block-template-part{margin-top:0;margin-bottom:0}
body.vr-is-home main.wp-block-group>.entry-content.wp-block-post-content{margin-top:0;margin-bottom:0}
.vr-home *{box-sizing:border-box}
.vr-home img{max-width:100%;height:auto;display:block}
.vr-home section{padding:64px 0}
.vr-home .vr-inner{max-width:100%;margin:0 auto;padding:0 clamp(20px, 3vw, 56px)}
.vr-home .vr-inner-narrow{max-width:100%;margin:0 auto;padding:0 clamp(20px, 3vw, 56px)}
.vr-home h2{font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-size:clamp(1.6rem,1.2rem + 1.6vw,2.3rem);line-height:1.15;margin:0 0 .4em;font-weight:400}
.vr-home h3{font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-size:1.2rem;margin:0 0 .3em;font-weight:400}
.vr-home p{line-height:1.7;margin:0 0 1em}
.vr-home .vr-eyebrow{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:.75rem;font-weight:700;color:var(--vh-bordeaux);margin-bottom:.6em}
.vr-home .vr-section-alt{background:var(--vh-cream)}
.vr-home .vr-lede{font-size:1.05rem;max-width:640px;opacity:.9}

/* Fade / scroll-reveal, mirrors the restaurant-landing pattern */
.vr-home .vr-fade{opacity:0;transform:translateY(18px);transition:opacity .6s var(--vh-ease),transform .6s var(--vh-ease)}
.vr-home .vr-fade.vr-visible{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.vr-home .vr-fade{opacity:1!important;transform:none!important;transition:none!important}}

/* ---------- HERO ---------- */
.vr-home .vr-home-hero{position:relative;min-height:min(88vh,760px);display:flex;align-items:flex-end;color:#fff;overflow:hidden}
.vr-home .vr-home-hero-media{position:absolute;inset:0;z-index:0}
.vr-home .vr-home-hero-media img{width:100%;height:100%;object-fit:cover}
.vr-home .vr-home-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(30,20,18,.15) 0%,rgba(24,18,16,.55) 65%,rgba(18,14,12,.8) 100%)}
.vr-home .vr-home-hero-content{position:relative;z-index:1;padding:56px clamp(20px, 3vw, 56px) 64px;max-width:100%;margin:0 auto;width:100%}
.vr-home .vr-home-hero h1{font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-weight:400;font-size:clamp(2.1rem,1.5rem + 3vw,3.4rem);line-height:1.08;margin:0 0 .3em;max-width:14ch}
.vr-home .vr-home-hero-sub{font-size:1.15rem;font-weight:600;margin:0 0 .5em;max-width:42ch}
.vr-home .vr-home-hero-tag{font-size:1rem;opacity:.92;max-width:52ch;margin:0 0 1.6em}
.vr-home .vr-home-hero-ctas{display:flex;gap:14px;flex-wrap:wrap}
.vr-home .vr-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 28px;border-radius:999px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.82rem;text-decoration:none;transition:transform .25s var(--vh-ease),box-shadow .25s var(--vh-ease),background .2s,color .2s;cursor:pointer;border:2px solid transparent}
.vr-home .vr-btn-primary{background:var(--vh-bordeaux);color:#fff}
.vr-home .vr-btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.28)}
.vr-home .vr-btn-ghost{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.7);backdrop-filter:blur(2px)}
.vr-home .vr-btn-ghost:hover{background:rgba(255,255,255,.22);transform:translateY(-2px)}
.vr-home .vr-btn-outline{background:transparent;color:var(--vh-bordeaux);border-color:var(--vh-bordeaux)}
.vr-home .vr-btn-outline:hover{background:var(--vh-bordeaux);color:#fff}
.vr-home .vr-scroll-cue{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);width:26px;height:42px;border:2px solid rgba(255,255,255,.75);border-radius:16px;z-index:1}
.vr-home .vr-scroll-cue::before{content:"";position:absolute;top:8px;left:50%;width:4px;height:8px;margin-left:-2px;background:#fff;border-radius:2px;animation:vhScrollDot 1.8s ease-in-out infinite}
@keyframes vhScrollDot{0%{opacity:1;transform:translateY(0)}70%{opacity:0;transform:translateY(14px)}100%{opacity:0}}
@media (prefers-reduced-motion: reduce){.vr-home .vr-scroll-cue::before{animation:none}}

/* ---------- IDENTITY STRIP ---------- */
.vr-home .vr-identity-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:var(--vh-verde);color:#fff}
.vr-home .vr-identity-item{padding:26px 20px;text-align:center;border-right:1px solid rgba(255,255,255,.15)}
.vr-home .vr-identity-item:last-child{border-right:0}
.vr-home .vr-identity-icon{font-size:1.5rem;margin-bottom:.3em}
.vr-home .vr-identity-item strong{display:block;font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-size:1.05rem;font-weight:400}
@media (max-width:780px){.vr-home .vr-identity-strip{grid-template-columns:repeat(2,1fr)}.vr-home .vr-identity-item:nth-child(2){border-right:0}}

/* ---------- INTRO SPLIT ---------- */
.vr-home .vr-split{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.vr-home .vr-split-media{border-radius:var(--vh-radius);overflow:hidden;box-shadow:var(--vh-shadow)}
.vr-home .vr-highlight{font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-size:1.35rem;font-style:italic;color:var(--vh-bordeaux);line-height:1.4;border-left:3px solid var(--vh-bordeaux);padding-left:20px;margin:1.2em 0}
@media (max-width:900px){.vr-home .vr-split{grid-template-columns:1fr;gap:28px}}

/* ---------- CHIP FILTERS ---------- */
.vr-home .vr-chip-filters{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 8px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.vr-home .vr-chip-filter{flex:0 0 auto;border:1.5px solid var(--vh-border);background:#fff;color:var(--vh-verde);padding:10px 18px;border-radius:999px;font-weight:600;font-size:.88rem;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.vr-home .vr-chip-filter:hover{border-color:var(--vh-bordeaux)}
.vr-home .vr-chip-filter[aria-pressed="true"]{background:var(--vh-bordeaux);border-color:var(--vh-bordeaux);color:#fff}

/* ---------- EXPERIENCE / ROUTE / PRODUCT CARD GRIDS (shared component) ---------- */
.vr-home .vr-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px}
.vr-home .vr-xcard{position:relative;border-radius:var(--vh-radius);overflow:hidden;background:var(--vh-verde);color:#fff;min-height:280px;display:flex;align-items:flex-end;text-decoration:none;box-shadow:var(--vh-shadow);transition:transform .3s var(--vh-ease),box-shadow .3s var(--vh-ease)}
.vr-home .vr-xcard:hover{transform:translateY(-4px);box-shadow:var(--vh-shadow-hover)}
.vr-home .vr-xcard-media{position:absolute;inset:0;z-index:0}
.vr-home .vr-xcard-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s var(--vh-ease)}
.vr-home .vr-xcard:hover .vr-xcard-media img{transform:scale(1.05)}
.vr-home .vr-xcard-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,20,18,.05),rgba(15,15,13,.72));transition:background .3s}
.vr-home .vr-xcard:hover .vr-xcard-media::after{background:linear-gradient(180deg,rgba(20,20,18,.15),rgba(15,15,13,.85))}
.vr-home .vr-xcard-body{position:relative;z-index:1;padding:24px}
.vr-home .vr-xcard-body h3{color:#fff;margin-bottom:.25em}
.vr-home .vr-xcard-body p{color:#f1ece1;font-size:.92rem;margin-bottom:.6em;opacity:.95}
.vr-home .vr-xcard-cta{display:inline-block;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s}
.vr-home .vr-xcard:hover .vr-xcard-cta,.vr-home .vr-xcard:focus-visible .vr-xcard-cta{opacity:1;transform:none}
.vr-home .vr-xcard.vr-xcard-static{cursor:default}
.vr-home .vr-xcard-soon{position:absolute;top:14px;right:14px;z-index:1;background:rgba(255,255,255,.9);color:var(--vh-bordeaux);font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:5px 10px;border-radius:999px}

/* ---------- FEATURED RESTAURANTS ---------- */
.vr-home .vr-featured-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:22px}
.vr-home .vr-featured-card{display:flex;flex-direction:column;background:#fff;border-radius:var(--vh-radius);overflow:hidden;box-shadow:var(--vh-shadow);text-decoration:none;color:var(--vh-verde);transition:transform .3s var(--vh-ease),box-shadow .3s var(--vh-ease)}
.vr-home .vr-featured-card:hover{transform:translateY(-4px);box-shadow:var(--vh-shadow-hover)}
.vr-home .vr-featured-media{aspect-ratio:4/3;overflow:hidden;background:var(--vh-cream);display:flex;align-items:center;justify-content:center}
.vr-home .vr-featured-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s var(--vh-ease)}
.vr-home .vr-featured-card:hover .vr-featured-media img{transform:scale(1.05)}
.vr-home .vr-featured-placeholder{font-size:2.4rem}
.vr-home .vr-featured-body{padding:18px 20px 20px}
.vr-home .vr-featured-body h3{margin-bottom:.15em}
.vr-home .vr-featured-town{font-size:.85rem;opacity:.75;margin:0 0 .3em}
.vr-home .vr-featured-tags{font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;color:var(--vh-bordeaux);font-weight:700;margin:0 0 .5em}
.vr-home .vr-featured-desc{font-size:.9rem;margin:0 0 .6em}
.vr-home .vr-featured-cta{font-size:.78rem;font-weight:700;color:var(--vh-bordeaux)}

/* ---------- STORIES ---------- */
.vr-home .vr-stories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:26px}
.vr-home .vr-story-card{display:block;border-radius:var(--vh-radius);overflow:hidden;background:#fff;box-shadow:var(--vh-shadow);text-decoration:none;color:var(--vh-verde);transition:transform .3s var(--vh-ease),box-shadow .3s var(--vh-ease)}
.vr-home .vr-story-card:hover{transform:translateY(-4px);box-shadow:var(--vh-shadow-hover)}
.vr-home .vr-story-media{aspect-ratio:16/10;overflow:hidden}
.vr-home .vr-story-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s var(--vh-ease)}
.vr-home .vr-story-card:hover .vr-story-media img{transform:scale(1.05)}
.vr-home .vr-story-body{padding:20px 22px 22px}
.vr-home .vr-story-category{display:inline-block;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--vh-bordeaux);margin-bottom:.5em}
.vr-home .vr-story-cta{font-size:.78rem;font-weight:700;color:var(--vh-bordeaux)}

/* ---------- SPECIAL EDITORIAL CARD ---------- */
.vr-home .vr-editorial-special{position:relative;border-radius:24px;overflow:hidden;min-height:340px;display:flex;align-items:flex-end;color:#fff;box-shadow:var(--vh-shadow-hover)}
.vr-home .vr-editorial-special-media{position:absolute;inset:0}
.vr-home .vr-editorial-special-media img{width:100%;height:100%;object-fit:cover}
.vr-home .vr-editorial-special-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,12,10,.82) 0%,rgba(15,12,10,.35) 60%,rgba(15,12,10,.05) 100%)}
.vr-home .vr-editorial-special-body{position:relative;z-index:1;padding:40px;max-width:520px}
.vr-home .vr-editorial-special-body span.vr-eyebrow{color:#f0c9a0}
.vr-home .vr-editorial-special-body h2{color:#fff}
.vr-home .vr-editorial-special-body p{color:#f1ece1}

/* ---------- PRODUCTS ---------- */
.vr-home .vr-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.vr-home .vr-product-tile{background:#fff;border-radius:16px;padding:20px 16px;text-align:center;box-shadow:var(--vh-shadow);transition:transform .25s var(--vh-ease)}
.vr-home .vr-product-tile:hover{transform:translateY(-3px)}
.vr-home .vr-product-tile .vr-product-icon{font-size:2rem;margin-bottom:.3em}
.vr-home .vr-product-tile h3{font-size:.95rem;margin-bottom:.15em}
.vr-home .vr-product-tile p{font-size:.78rem;opacity:.75;margin:0}

/* ---------- TERRITORY AREAS ---------- */
.vr-home .vr-territory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.vr-home .vr-territory-tile{border-radius:16px;padding:26px 18px;background:var(--vh-verde);color:#fff;text-align:center;font-family:var(--wp--preset--font-family--serif,Georgia,serif);font-size:1.05rem}
.vr-home .vr-territory-tile:nth-child(4n+2){background:var(--vh-bordeaux)}
.vr-home .vr-territory-tile:nth-child(4n+3){background:#5c4425}
.vr-home .vr-territory-tile:nth-child(4n+4){background:#4a5c3a}

/* ---------- PHILOSOPHY ---------- */
.vr-home .vr-philosophy{text-align:center;background:var(--vh-verde);color:#fff;border-radius:24px;padding:56px 24px}
.vr-home .vr-philosophy .vr-highlight{color:#f0c9a0;border-color:#f0c9a0;display:inline-block;text-align:left}
.vr-home .vr-philosophy ul{list-style:none;margin:1.2em auto 0;padding:0;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:640px}
.vr-home .vr-philosophy li{background:rgba(255,255,255,.12);padding:8px 16px;border-radius:999px;font-size:.85rem}

/* ---------- PROJECT NOTE ---------- */
.vr-home .vr-project-note{background:#fff;border:1px dashed var(--vh-border);border-radius:18px;padding:28px 30px;display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between}
.vr-home .vr-project-note p{margin:0;max-width:60ch}

/* ---------- FINAL CTA ---------- */
.vr-home .vr-final-cta{text-align:center;background:linear-gradient(135deg,var(--vh-bordeaux),#4d1f2c);color:#fff;border-radius:24px;padding:56px 24px}
.vr-home .vr-final-cta h2{color:#fff}
.vr-home .vr-final-cta p{opacity:.9;max-width:560px;margin:0 auto 1.4em}
.vr-home .vr-final-cta .vr-home-hero-ctas{justify-content:center}

/* ---------- MOBILE MAP TOGGLE ---------- */
.vr-home .vr-map-toggle{display:none}
@media (max-width:780px){
  .vr-home section{padding:44px 0}
  .vr-home .vr-home-hero{min-height:78vh}
  .vr-home .vr-home-hero-ctas .vr-btn{flex:1 1 auto;min-width:0}
  .vr-home .vr-editorial-special{min-height:300px}
  .vr-home .vr-editorial-special-body{padding:26px}
}

@media (max-width:480px){
  .vr-home .vr-identity-strip{grid-template-columns:1fr 1fr}
}
