/*
Theme Name: Goustò — Caffè Elena
Theme URI: https://gousto.eu
Author: Infinity Net SRL
Author URI: https://infinitynet.it
Description: Variante grafica del tema Goustò ispirata a Caffè Elena 1889: blu profondo, oro e crema, titoli Playfair Display, testo Montserrat.
Version: 0.1.3
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gousto
*/

/* I colori e i font sono definiti come preset in theme.json.
   Qui stanno solo i trattamenti grafici che i blocchi core non coprono. */

:root{
  --g-paper:var(--wp--preset--color--paper,#FEF6E2);
  --g-paper-deep:var(--wp--preset--color--paper-deep,#0E1A3D);
  --g-ink:var(--wp--preset--color--ink,#FEF6E2);
  --g-ink-soft:var(--wp--preset--color--ink-soft,#BDB39B);
  --g-cantina:var(--wp--preset--color--cantina,#060C27);
  --g-barolo:var(--wp--preset--color--barolo,#C59057);
  --g-barolo-deep:#A8743C;
  --g-nocciola:var(--wp--preset--color--nocciola,#C59057);
  --g-blu:var(--wp--preset--color--blu,#122351);
  --g-blu-glow:var(--wp--preset--color--blu-glow,#3A5BA8);
  --g-line:rgba(254,246,226,.16);
}

/* grana carta sottile */
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:1;opacity:.5;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.wp-site-blocks{position:relative;z-index:2}

/* ---------- eyebrow / rule ---------- */
.gousto-eyebrow{
  font-family:var(--wp--preset--font-family--util);text-transform:uppercase;
  letter-spacing:.22em;font-size:.72rem;font-weight:600;color:var(--g-nocciola)!important;
}
.gousto-rule{width:54px;height:2px;background:var(--g-barolo);border:0;margin:0 0 18px}

/* ---------- HEADER / NAV ---------- */
.gousto-header{
  position:sticky;top:0;z-index:50;
  background:transparent;transition:background .35s ease,box-shadow .35s ease;
}
.gousto-header.is-scrolled{background:rgba(6,12,39,.96);box-shadow:0 1px 0 rgba(0,0,0,.25)}
.gousto-header .wp-block-site-title a,
.gousto-brand{font-family:var(--wp--preset--font-family--display)!important;font-weight:600;color:var(--g-paper)!important;text-decoration:none;font-size:1.65rem;line-height:1}
.gousto-brand small{display:block;font-family:var(--wp--preset--font-family--util);font-size:.6rem;letter-spacing:.32em;text-transform:uppercase;color:var(--g-nocciola);margin-top:3px;font-weight:600}
.gousto-nav-links a{font-family:var(--wp--preset--font-family--util);font-size:.82rem;font-weight:500;letter-spacing:.04em;color:var(--g-paper);opacity:.85;text-transform:uppercase;transition:opacity .2s,color .2s}
.gousto-nav-links a:hover{opacity:1;color:var(--g-nocciola)}
.gousto-btn .wp-block-button__link,
.wp-block-button.gousto-btn .wp-block-button__link{
  font-family:var(--wp--preset--font-family--util);font-weight:600;font-size:.8rem;letter-spacing:.06em;
  text-transform:uppercase;background:var(--g-barolo);color:var(--g-paper);border-radius:2px;padding:11px 20px;border:1px solid var(--g-barolo);transition:background .2s,transform .2s;
}
.gousto-btn .wp-block-button__link:hover{background:var(--g-barolo-deep);transform:translateY(-1px)}

/* ---------- HERO ---------- */
.gousto-hero{
  position:relative;color:var(--g-paper);padding:170px 0 110px;overflow:hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(46,74,140,.30) 0%, transparent 55%),
    linear-gradient(180deg,#060C27 0%, var(--g-cantina) 60%, #15264F 100%);
}
.gousto-hero .gousto-eyebrow{color:var(--g-nocciola)!important}
.gousto-hero h1{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:clamp(2.6rem,6vw,4.7rem);line-height:1.02;letter-spacing:-.01em;max-width:16ch;color:var(--g-paper)}
.gousto-hero h1 em{font-style:italic;color:var(--g-nocciola);font-weight:400}
.gousto-hero p{color:rgba(254,246,226,.82);font-weight:300;font-size:1.18rem;max-width:46ch}
.gousto-hero__filo{position:absolute;top:0;right:14%;width:1px;height:100%;background:linear-gradient(180deg,transparent,var(--g-blu-glow),transparent);box-shadow:0 0 28px 3px rgba(58,91,168,.5);opacity:.55}

/* ---------- PREMI ---------- */
.gousto-awards{background:#15264F;color:var(--g-paper);border-top:1px solid rgba(197,144,87,.2);text-align:center}
.gousto-awards .gousto-awards-lbl{font-family:var(--wp--preset--font-family--util);text-transform:uppercase;letter-spacing:.2em;font-size:.66rem;color:var(--g-nocciola);font-weight:600}
.gousto-awards .gousto-guide{font-family:var(--wp--preset--font-family--display);font-style:italic;font-size:1.02rem;color:rgba(254,246,226,.85)}

/* ---------- SEZIONI ---------- */
.gousto-section h2{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:clamp(2rem,4vw,3rem);line-height:1.06;letter-spacing:-.01em}
.gousto-prose p{color:var(--g-ink-soft);font-size:1.08rem}
.gousto-prose p.has-lead,.gousto-prose>p:first-child{font-size:1.18rem;color:var(--g-ink)}

/* placeholder foto */
.gousto-photo{position:relative;border:1px solid var(--g-line);min-height:380px;display:flex;align-items:flex-end;padding:18px;
  background:repeating-linear-gradient(135deg,rgba(197,144,87,.10) 0 18px,rgba(197,144,87,.04) 18px 36px),var(--g-paper-deep);}
.gousto-photo .gousto-cap{font-family:var(--wp--preset--font-family--util);font-size:.66rem;text-transform:uppercase;letter-spacing:.16em;color:var(--g-ink-soft);background:var(--g-paper);padding:5px 9px;border:1px solid var(--g-line);margin:0}

/* piatti firma */
.gousto-dish{border-top:2px solid var(--g-barolo);padding-top:18px}
.gousto-dish .gousto-dish-n{font-family:var(--wp--preset--font-family--util);font-size:.7rem;letter-spacing:.16em;color:var(--g-nocciola);font-weight:600;margin:0}
.gousto-dish h3{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:1.42rem;line-height:1.12;margin:8px 0}
.gousto-dish p{color:var(--g-ink-soft);font-size:1rem;margin:0}

/* ---------- PALAZZO ---------- */
.gousto-palazzo{background:linear-gradient(180deg,var(--g-cantina) 0%, #0B1838 100%);color:var(--g-paper)}
.gousto-palazzo h2{color:var(--g-paper)}
.gousto-palazzo .gousto-eyebrow{color:var(--g-blu-glow)!important}
.gousto-palazzo .gousto-rule{background:var(--g-blu-glow);box-shadow:0 0 14px rgba(58,91,168,.6)}
.gousto-palazzo .gousto-prose p{color:rgba(254,246,226,.78)}
.gousto-palazzo .gousto-prose>p:first-child{color:var(--g-paper)}
.gousto-palazzo .gousto-photo{background:repeating-linear-gradient(135deg,rgba(58,91,168,.14) 0 18px,rgba(58,91,168,.05) 18px 36px),#060C27;border-color:rgba(254,246,226,.14)}
.gousto-palazzo .gousto-photo .gousto-cap{background:#060C27;color:rgba(254,246,226,.7);border-color:rgba(254,246,226,.18)}
.gousto-gastini{text-align:center;max-width:34ch;margin:54px auto 0}
.gousto-gastini blockquote,.gousto-gastini p{font-family:var(--wp--preset--font-family--display);font-style:italic;font-weight:400;font-size:clamp(1.5rem,3.4vw,2.3rem);line-height:1.2;color:var(--g-blu-glow);text-shadow:0 0 30px rgba(58,91,168,.35);border:0;margin:0}
.gousto-gastini cite{display:block;font-family:var(--wp--preset--font-family--util);font-style:normal;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(254,246,226,.55);margin-top:18px}

/* ---------- VISITA ---------- */
.gousto-visit{background:var(--g-paper-deep)}
.gousto-info-k{font-family:var(--wp--preset--font-family--util);text-transform:uppercase;letter-spacing:.16em;font-size:.68rem;color:var(--g-nocciola);font-weight:600;margin:0 0 8px}
.gousto-hours-row{display:flex;justify-content:space-between;border-bottom:1px dotted var(--g-line);padding:9px 0;gap:18px;font-size:1rem}
.gousto-hours-row span:last-child{color:var(--g-ink-soft);text-align:right}
.gousto-map iframe{width:100%;min-height:420px;border:1px solid var(--g-line);filter:sepia(.18) saturate(.9)}

/* ---------- FOOTER ---------- */
.gousto-footer{background:var(--g-cantina);color:var(--g-paper)}
.gousto-footer p,.gousto-footer a{color:rgba(254,246,226,.72)}
.gousto-footer a:hover{color:var(--g-paper)}
.gousto-footer h4{font-family:var(--wp--preset--font-family--util);text-transform:uppercase;letter-spacing:.16em;font-size:.7rem;color:var(--g-nocciola);font-weight:600;margin:0 0 14px}
.gousto-footer .gousto-legal{border-top:1px solid rgba(254,246,226,.14);padding-top:20px;font-size:.78rem;color:rgba(254,246,226,.5)}
.gousto-footer .gousto-legal a{color:rgba(254,246,226,.5)}

/* ---------- reveal ---------- */
.gousto-reveal{opacity:0;transform:translateY(22px);transition:opacity .8s ease,transform .8s ease}
.gousto-reveal.is-in{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  .gousto-reveal{opacity:1;transform:none;transition:none}
}
@media(max-width:781px){
  .gousto-hero{padding:120px 0 72px}
}

/* ============ PAGINA MENÙ ============ */
.gousto-menu-hero{background:linear-gradient(180deg,#060C27,var(--g-cantina));color:var(--g-paper);text-align:center;padding:64px 28px 56px}
.gousto-menu-hero .gousto-eyebrow{color:var(--g-nocciola)!important}
.gousto-menu-hero h1{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:clamp(2.4rem,5vw,3.6rem);color:var(--g-paper);margin:14px 0 10px}
.gousto-menu-hero p{color:rgba(254,246,226,.78);font-weight:300;max-width:52ch;margin:0 auto}
.gousto-lang{display:flex;gap:7px;justify-content:center;margin-top:22px}
.gousto-lang a{font-family:var(--wp--preset--font-family--util);font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--g-paper);opacity:.65;padding:6px 11px;border:1px solid rgba(254,246,226,.3);border-radius:2px;transition:.2s}
.gousto-lang a:hover{opacity:1;border-color:var(--g-nocciola)}
.gousto-lang a.is-active{background:var(--g-barolo);border-color:var(--g-barolo);opacity:1}

.gousto-menu-sec{max-width:720px;margin:0 auto 52px}
.gousto-menu-sechead{display:flex;align-items:center;justify-content:center;gap:16px;margin:0 0 30px}
.gousto-menu-sechead::before,.gousto-menu-sechead::after{content:"•";color:var(--g-nocciola);font-size:1rem}
.gousto-menu-sec h2{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:1.55rem;letter-spacing:.05em;text-transform:uppercase;color:var(--g-ink);text-align:center;margin:0}

.gousto-dish{max-width:720px;margin:0 auto 18px;padding-bottom:18px;border-bottom:1px dotted var(--g-line)}
.gousto-dish-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.gousto-dish-name{font-family:var(--wp--preset--font-family--display);font-size:1.2rem;font-weight:500;color:var(--g-ink);line-height:1.25;margin:0}
.gousto-dish-price{font-family:var(--wp--preset--font-family--util);font-weight:600;color:var(--g-barolo);font-size:1rem;white-space:nowrap;margin:0}
.gousto-dish-desc{color:var(--g-ink-soft);font-size:1.01rem;margin:5px 0 0;max-width:60ch}
.gousto-tag{display:inline-block;font-family:var(--wp--preset--font-family--util);font-size:.56rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--g-barolo);border:1px solid var(--g-barolo);border-radius:2px;padding:2px 5px;margin-left:7px;vertical-align:middle;transform:translateY(-2px)}
.gousto-var{display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin-top:7px}
.gousto-var .v-name{color:var(--g-ink-soft);font-size:1rem}
.gousto-var .v-price{font-family:var(--wp--preset--font-family--util);font-weight:600;color:var(--g-barolo);font-size:.92rem;white-space:nowrap}

.gousto-motto{text-align:center;max-width:720px;margin:54px auto 10px}
.gousto-motto .m-dia{font-family:var(--wp--preset--font-family--display);font-style:italic;font-weight:500;font-size:clamp(1.6rem,3.5vw,2.1rem);color:var(--g-barolo)}
.gousto-motto .m-tr{font-family:var(--wp--preset--font-family--util);text-transform:uppercase;letter-spacing:.22em;font-size:.68rem;color:var(--g-ink-soft);margin-top:10px}

.gousto-legend{max-width:720px;margin:34px auto 0;padding-top:24px;border-top:1px solid var(--g-line);color:var(--g-ink-soft);font-size:.85rem}
.gousto-legend p{margin-bottom:10px}
.gousto-legend b{color:var(--g-ink)}

@media(max-width:560px){
  .gousto-dish-row{flex-wrap:wrap}
  .gousto-dish-price{margin-left:auto}
}

/* ---- carta vini ---- */
.gousto-wine{padding:9px 0;border-bottom:1px dotted var(--g-line);max-width:760px;margin:0 auto}
.gousto-wine .gousto-dish-name{font-size:1.05rem}
.gousto-wine-prod{font-family:var(--wp--preset--font-family--util);font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--g-ink-soft);margin:3px 0 0}
.gousto-wine-sub{font-family:var(--wp--preset--font-family--util);text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:var(--g-barolo);font-weight:700;margin:26px auto 12px;text-align:center;max-width:760px}
.gousto-menu-sec .gousto-rule{margin-left:auto;margin-right:auto}

/* ---- galleria ---- */
.gousto-gallery-grid{columns:3;column-gap:14px;max-width:1100px;margin:0 auto}
.gousto-gallery-grid .gtile{break-inside:avoid;margin:0 0 14px;border:1px solid var(--g-line);position:relative;display:flex;align-items:flex-end;padding:16px;color:var(--g-ink-soft);
  background:repeating-linear-gradient(135deg,rgba(197,144,87,.10) 0 18px,rgba(197,144,87,.04) 18px 36px),var(--g-paper-deep)}
.gousto-gallery-grid .gtile span{font-family:var(--wp--preset--font-family--util);font-size:.62rem;text-transform:uppercase;letter-spacing:.14em;background:var(--g-paper);padding:4px 8px;border:1px solid var(--g-line)}
.gousto-gallery-grid .gtile.t1{min-height:300px}
.gousto-gallery-grid .gtile.t2{min-height:230px}
.gousto-gallery-grid .gtile.t3{min-height:360px}
@media(max-width:900px){.gousto-gallery-grid{columns:2}}
@media(max-width:560px){.gousto-gallery-grid{columns:1}}

/* ---- galleria con foto reali ---- */
.gousto-gallery-grid a{display:block;break-inside:avoid;margin:0 0 14px;line-height:0;border:1px solid var(--g-line);overflow:hidden}
.gousto-gallery-grid a img{width:100%;height:auto;display:block;transition:transform .5s ease,filter .4s ease;filter:saturate(.92)}
.gousto-gallery-grid a:hover img{transform:scale(1.04);filter:saturate(1.05)}

/* ---- foto reali nelle sezioni ---- */
.gousto-photo-img img{width:100%;height:100%;object-fit:cover;display:block;border:1px solid var(--g-line);filter:saturate(.95);aspect-ratio:4/5}
.gousto-palazzo .gousto-photo-img img{border-color:rgba(254,246,226,.14)}
.gousto-hero--photo{background-size:cover;background-position:center}

/* ---- logo emblema ---- */
.gousto-logo{display:inline-block;line-height:0}
.gousto-logo img{height:58px;width:auto;display:block}
.gousto-footer .gousto-logo img{height:72px;margin-bottom:10px}
@media(max-width:781px){.gousto-logo img{height:46px}}

/* ============ FIX LAYOUT: header scuro fisso + sezioni full-bleed ============ */
body{overflow-x:clip}

/* header sempre scuro: logo pergamena e voci chiare leggibili */
.gousto-header{background:var(--g-cantina);box-shadow:0 1px 0 rgba(0,0,0,.25)}
.gousto-header .gousto-nav-links a,
.gousto-header .wp-block-navigation-item__content{color:var(--g-paper)}
.gousto-header .gousto-nav-links a:hover,
.gousto-header .wp-block-navigation-item__content:hover{color:var(--g-nocciola)}

/* sezioni con sfondo a tutta larghezza (i contenuti interni restano centrati) */
.gousto-hero,
.gousto-awards,
.gousto-section,
.gousto-palazzo,
.gousto-visit,
.gousto-menu-hero{
  width:100vw;max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding-left:max(24px,env(safe-area-inset-left));
  padding-right:max(24px,env(safe-area-inset-right));
}

/* ---- fix: voci menu leggibili sull'header scuro ----
   WP forza color:inherit sugli item con specificità (0,3,0); imposto il colore
   sul contenitore nav cosi' le voci (che ereditano) diventano color pergamena. */
.gousto-header .gousto-nav-links{color:var(--g-paper)}
.gousto-header .gousto-nav-links .wp-block-navigation-item__content{color:inherit}
/* via la sottile striscia chiara tra header e prima sezione */
.wp-site-blocks > main{margin-top:0}
.gousto-hero,.gousto-menu-hero{margin-top:0}

/* ---- galleria raggruppata per argomento ---- */
.gousto-gall-cat{font-family:var(--wp--preset--font-family--display);font-size:1.7rem;color:var(--g-barolo);margin:46px 0 18px;padding-bottom:8px;border-bottom:1px solid var(--g-line)}
.gousto-gall-cat:first-of-type{margin-top:0}

/* ============================================================
   RESTYLE "CAFFÈ ELENA"  (sovrascrive i trattamenti caldi)
   ============================================================ */
body{background:var(--g-blu)!important}
body::before{opacity:.18;mix-blend-mode:soft-light}

/* titoli oro, Playfair, maiuscolo sui display principali */
.gousto-hero h1,.gousto-menu-hero h1,.gousto-menu-hero .gousto-eyebrow,
.gousto-menu-sechead{font-family:var(--wp--preset--font-family--display)!important}
.gousto-hero h1,.gousto-menu-hero h1{color:var(--g-nocciola)!important;text-transform:uppercase;letter-spacing:.03em;font-weight:700}
.gousto-hero h1 em{color:#FEF6E2!important;font-style:italic;font-weight:400}
.gousto-menu-sechead{color:var(--g-nocciola)!important;text-transform:uppercase;letter-spacing:.07em;font-weight:700}
.gousto-menu-sechead::before,.gousto-menu-sechead::after{color:var(--g-nocciola)}
/* sottosezioni / titoli interni in oro */
.gousto-menu-sec h2,.gousto-awards .gousto-awards-lbl{color:var(--g-nocciola)!important}

/* bottoni: oro pieno con testo blu, hover arancio Elena */
.gousto-btn .wp-block-button__link,
.wp-block-button.gousto-btn .wp-block-button__link{background:var(--g-barolo)!important;border-color:var(--g-barolo)!important;color:#0B1330!important;font-weight:700}
.gousto-btn .wp-block-button__link:hover{background:#E65121!important;border-color:#E65121!important;color:#FEF6E2!important}

/* selettore lingua attivo: oro su testo blu */
.gousto-lang a.is-active{color:#0B1330!important}

/* richiamo Elena: hairline ottone attorno alle foto */
.gousto-photo img,.gousto-gall-cat + * img,.wp-block-image img{border:1px solid rgba(197,144,87,.45)}

/* separatori/regole in oro */
.gousto-rule,.gousto-menu-sec .wp-block-separator{background:var(--g-barolo)!important;border-color:var(--g-barolo)!important}
.gousto-header img,.gousto-footer img,.wp-block-site-logo img,.gousto-brand img{border:0!important}

/* ---- HEADER VERTICALE (≤599px): hamburger a SINISTRA delle lingue, Prenota sotto ---- */
@media(max-width:599px){
  .gousto-header .wp-block-group:has(> .gousto-nav-links){flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
  .gousto-header .gousto-nav-links{order:1}
  .gousto-header .gousto-lang{order:2;margin-top:0}
  .gousto-header .wp-block-buttons{order:3;flex:0 0 100%;display:flex;justify-content:flex-end;margin:0}
  .gousto-header .gousto-btn{width:auto}
  .gousto-header .gousto-btn .wp-block-button__link{display:inline-block!important;width:auto!important;white-space:nowrap;padding:9px 18px}
}
/* ---- HEADER ORIZZONTALE/tablet (600–900px): menu + Prenota + lingue TUTTO su una riga ---- */
@media(min-width:600px) and (max-width:900px){
  .gousto-header .wp-block-group:has(> .gousto-nav-links){flex-wrap:nowrap;flex-direction:row;align-items:center;gap:10px}
  .gousto-header .gousto-nav-links a{font-size:.74rem;letter-spacing:.02em}
  .gousto-header .gousto-lang{margin-top:0}
  .gousto-header .gousto-lang a{padding:5px 7px;font-size:.66rem}
  .gousto-header .wp-block-buttons{flex:0 0 auto;margin:0}
  .gousto-header .gousto-btn .wp-block-button__link{padding:8px 14px;font-size:.74rem;white-space:nowrap;width:auto!important}
}
