/*
Theme Name: Brunetti Regali
Theme URI: https://www.brunettiregali.it
Author: Papyrus Communication
Author URI: https://www.ilpapyrus.com/
Description: Tema WordPress custom per Brunetti Regali — Il bello per la casa, dal 1881, Pistoia.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: brunetti-regali
*/

/* ==========================================================================
   Brunetti Regali — Design System
   Palette: gray / taupe / burgundy / navy — warm, editorial, quiet luxury
   Type: Playfair Display (headings + menu) + Work Sans (text sans)
   ========================================================================== */

:root{
  /* --- color tokens --- */
  --stone-0:   #FBFAF8;
  --stone-50:  #E9E4DE;
  --stone-100: #C2B9B2;
  --stone-200: #DCD3C4;
  --stone-300: #C6BAA6;
  --ink-900:   #262320;
  --ink-700:   #4A453F;
  --ink-500:   #726B62;
  --burgundy-900: #3E141F;
  --burgundy-700: #6C2635;
  --burgundy-600: #7E2E3F;
  --burgundy-100: #F1E2E3;
  --navy-900: #141F33;
  --navy-700: #28395C;
  --navy-100: #E3E7F0;
  --white: #FFFFFF;

  /* --- type --- */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-text: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 22px;

  --content-w: 1300px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-text);
  color:var(--ink-900);
  background:var(--stone-0);
  -webkit-font-smoothing:antialiased;
  font-size:16px;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:400;
  line-height:1.1;
  margin:0 0 .5em;
  color:var(--ink-900);
  letter-spacing:-0.005em;
}
p{ margin:0 0 1em; color:var(--ink-700); }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

::selection{ background:var(--navy-100); color:var(--navy-900); }

:focus-visible{
  outline:2px solid var(--burgundy-600);
  outline-offset:3px;
}

.wrap{
  max-width:var(--content-w);
  margin:0 auto;
  padding:0 32px;
}

@media (max-width:640px){
  .wrap{ padding:0 20px; }
}

/* ---------- section backgrounds (for alternation) ---------- */
.section{ padding:96px 0; }
.section--tight{ padding:64px 0; }
.section-stone0{ background:var(--stone-0); }
.section-stone50{ background:var(--stone-50); }
.section-stone100{ background:var(--stone-100); }
.section-burgundy{ background:var(--navy-900); color:var(--stone-50); }
.section-burgundy p{ color:#D9C7C9; }
.section-burgundy h2, .section-burgundy h3{ color:var(--white); }

@media (max-width:780px){
  .section{ padding:64px 0; }
}

/* ---------- eyebrow / kicker ---------- */
.kicker{
  font-family:var(--font-text);
  font-size:13px;
  font-weight:600;
  color:var(--burgundy-600);
  letter-spacing:0.02em;
  margin:0 0 14px;
}
.section-burgundy .kicker{ color:#FFFFFF; }

/* ---------- headline accent (used sparingly, only on primary hero moments) ---------- */
.accent-italic{
  font-style:italic;
  color:var(--burgundy-700);
}
.section-burgundy .accent-italic{ color:#E7B9C0; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-text);
  font-size:15px;
  font-weight:600;
  padding:14px 26px;
  border-radius:100px;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{
  background:var(--burgundy-700);
  color:var(--white);
}
.btn-primary:hover{ background:var(--navy-900); }
.btn-ghost{
  background:transparent;
  color:var(--ink-900);
  border-color:var(--ink-900);
}
.btn-ghost:hover{ border-color:var(--burgundy-700); color:var(--burgundy-700); }
.btn-on-dark{
  background:var(--white);
  color:var(--navy-900);
}
.btn-on-dark:hover{ background:var(--stone-100); }
.btn-outline-on-dark{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,.4);
}
.btn-outline-on-dark:hover{ border-color:var(--white); }
.btn svg{ width:16px; height:16px; flex-shrink:0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid var(--stone-200);
}
/* The blur lives on a pseudo-element rather than on .site-header itself:
   backdrop-filter on an ancestor creates a new containing block for any
   position:fixed descendant (like the mobile nav panel below), which was
   breaking its full-height overlay. Isolating it here keeps the glass
   effect without that side effect. */
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(251,250,248,.92);
  backdrop-filter:blur(10px);
  pointer-events:none;
}
.site-header .wrap{
  position:relative;
  z-index:1; /* keep logo, nav toggle and buttons above the ::before glass layer */
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:108px;
}
.brand-logo{ display:flex; align-items:center; gap:12px; }
.brand-logo img{ height:92px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:2px; }
.main-nav a{
  font-family:var(--font-display);
  font-size:17px;
  font-weight:500;
  color:var(--ink-700);
  padding:9px 17px;
  border-radius:100px;
  transition:background .2s ease, color .2s ease;
}
.main-nav a:hover{ background:var(--stone-100); color:var(--ink-900); }
.main-nav a.is-active{ color:var(--burgundy-700); background:var(--burgundy-100); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.header-actions .btn{ padding:11px 22px; font-size:14px; }

.social-row{ display:flex; align-items:center; gap:10px; }
.social-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--burgundy-700);
  color:var(--white);
  flex-shrink:0;
  transition:background .2s ease, transform .15s ease;
}
.social-icon:hover{ background:var(--navy-900); transform:translateY(-1px); }
.social-icon svg{ width:18px; height:18px; }
.social-row--on-dark .social-icon{ background:var(--white); color:var(--navy-900); }
.social-row--on-dark .social-icon:hover{ background:var(--stone-100); }
.social-row--large .social-icon{ width:48px; height:48px; }
.social-row--large .social-icon svg{ width:21px; height:21px; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--ink-900);
  margin:5px 0;
  transition:transform .2s ease, opacity .2s ease;
}

@media (max-width:960px){
  .main-nav{
    position:fixed;
    inset:108px 0 0 0;
    background:var(--stone-0);
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:12px 20px 32px;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
    overflow-y:auto;
  }
  .main-nav.is-open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .main-nav a{
    padding:16px 6px;
    font-size:19px;
    border-bottom:1px solid var(--stone-200);
    border-radius:0;
  }
  .header-actions .btn-ghost{ display:none; }
  .header-actions .social-row{ display:none; }
  .nav-toggle{ display:block; }
  .brand-logo img{ height:56px; }
}

/* ==========================================================================
   Hero (no background photography — clean, airy)
   ========================================================================== */
.hero{
  padding:88px 0 100px;
  background:var(--stone-50);
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:72px;
  align-items:center;
}
.hero h1{
  font-size:clamp(46px,5.6vw,72px);
  max-width:15ch;
}
.hero-lede{
  font-size:18px;
  color:var(--ink-700);
  max-width:44ch;
  margin-bottom:32px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-figure{
  position:relative;
  border-radius:var(--radius-l);
  overflow:hidden;
  aspect-ratio:4/4.6;
  border:2px solid var(--navy-700);
}
.hero-figure img{ width:100%; height:100%; object-fit:cover; }
.hero-figure::after{
  content:"";
  position:absolute; inset:0;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
  border-radius:inherit;
}
.hero-badge{
  position:absolute;
  left:-28px;
  bottom:36px;
  background:var(--white);
  border-radius:var(--radius-m);
  padding:20px 26px;
  box-shadow:0 18px 40px -18px rgba(38,35,32,.35);
  min-width:168px;
}
.hero-badge .num{
  font-family:var(--font-display);
  font-size:34px;
  color:var(--burgundy-700);
  display:block;
  line-height:1;
  margin-bottom:6px;
}
.hero-badge .label{
  font-size:13px;
  color:var(--ink-500);
  line-height:1.35;
}

@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; gap:44px; }
  .hero-figure{ order:-1; aspect-ratio:4/3.2; }
  .hero-badge{ left:16px; bottom:-28px; }
}

/* ==========================================================================
   Hero v2 — classic full-width background-image hero
   (section 1 of the homepage)
   ========================================================================== */
.hero-bg{
  position:relative;
  min-height:640px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:2px solid var(--navy-700);
}
.hero-bg-media{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-bg-media picture{
  display:block;
  width:100%;
  height:100%;
}
.hero-bg-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-bg-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(20,31,51,.42) 0%, rgba(20,31,51,.7) 75%, rgba(20,31,51,.8) 100%);
}
.hero-bg-content{
  position:relative;
  z-index:1;
  max-width:620px;
  padding:120px 0;
	text-align: center;
}
.hero-bg-content .kicker{ color:#F3D9DC; }
.hero-bg-content h1{
  color:var(--white);
  font-size:clamp(44px,5.4vw,70px);
  max-width:none;
}
.hero-bg-content .accent-italic{ color:#E7B9C0; }
.hero-bg-content .hero-lede{
  color:rgba(255,255,255,.88);
  font-size:17px;
  max-width:46ch;
  margin-bottom:28px;
}

@media (min-width:1024px) {
	.hero-bg-content .kicker {
		font-size: 20px;
	}
}

@media (max-width:860px){
  .hero-bg{ min-height:520px; }
  .hero-bg-content{ padding:88px 0; }
}

/* ==========================================================================
   Story split — photo / text / photo (section 2 of the homepage)
   ========================================================================== */
.story-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr 1fr;
  gap:36px;
  align-items:center;
}
.story-media{
  border-radius:var(--radius-l);
  overflow:hidden;
  border:1px solid var(--navy-700);
}
.story-media img{ width:100%; height:100%; object-fit:cover; }
.story-media-left, .story-media-right{ aspect-ratio:4/5; }
.story-text{ padding:0 4px; align-self:center; }

@media (max-width:900px){
  .story-grid{ grid-template-columns:1fr; gap:28px; }
  .story-media-left, .story-media-right{ aspect-ratio:16/10; }
  .story-text{ order:-1; }
}

/* ==========================================================================
   Page header (used on interior pages instead of a photographic hero)
   ========================================================================== */
.page-head{
  padding:64px 0 56px;
  background:var(--stone-50);
  border-bottom:1px solid var(--stone-200);
}
.page-head h1{ font-size:clamp(38px,4.8vw,56px); max-width:16ch; }
.page-head .hero-lede{ margin-bottom:0; }

/* ==========================================================================
   Generic two-column media/text row
   ========================================================================== */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.split.reverse .split-media{ order:2; }
.split-media img{
  border-radius:var(--radius-l);
  width:100%;
  aspect-ratio:4/3.4;
  object-fit:cover;
  border:1px solid var(--navy-700);
}
.split-media.tall img{ aspect-ratio:4/4.6; }
.split-media.original-size img { aspect-ratio:auto; }
@media (max-width:860px){
  .split{ grid-template-columns:1fr; gap:32px; }
  .split.reverse .split-media{ order:-1; }
}

.stat-block{
  background:var(--stone-100);
  border-radius:var(--radius-l);
  padding:34px 36px;
  margin-top:28px;
}
.stat-block .num{
  font-family:var(--font-display);
  font-size:52px;
  color:var(--burgundy-700);
  line-height:1;
  display:block;
  margin-bottom:8px;
}
.stat-block .cap{ font-size:14.5px; color:var(--ink-700); margin:0; }

/* ==========================================================================
   Cards — feature / category
   ========================================================================== */
.card-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}
.feature-card{
  background:var(--white);
  border-radius:var(--radius-l);
  overflow:hidden;
  border:1px solid var(--navy-700);
}
.feature-card img{
  width:100%;
  aspect-ratio:16/11;
  object-fit:cover;
}
.card-grid.servizi-card-grid .feature-card img {
	aspect-ratio:1/1;
}
.feature-card .fc-body{ padding:28px 30px 32px; }
.feature-card h3{ font-size:26px; margin-bottom:8px; }
.feature-card p{ margin-bottom:0; font-size:15px; }

@media (max-width:760px){
  .card-grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Team profile
   ========================================================================== */
.team-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}
.team-card{ text-align:left; }
.team-photo{
  border-radius:var(--radius-l);
  overflow:hidden;
  aspect-ratio:1/1;
  margin-bottom:20px;
  border:1px solid var(--navy-700);
}
.team-photo img{ width:100%; height:100%; object-fit:cover; }
.team-card h3{ font-size:24px; margin-bottom:2px; }
.team-role{
  font-size:13.5px;
  font-weight:600;
  color:var(--burgundy-700);
  margin-bottom:12px;
  display:block;
}
.team-card p{ font-size:15px; }

@media (max-width:860px){
  .team-grid{ grid-template-columns:1fr; max-width:420px; margin:0 auto; }
}

/* ==========================================================================
   Brand strip (home teaser)
   ========================================================================== */
.brand-strip{
  display:flex;
  flex-wrap:wrap;
  gap:14px 40px;
  align-items:center;
  justify-content:center;
  padding-top:8px;
}
.brand-strip span{
  font-family:var(--font-display);
  font-size:25px;
  color:var(--stone-100);
  opacity:.85;
}

/* ==========================================================================
   Marchi — brand wall
   ========================================================================== */
.brand-wall{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--stone-200);
  border-left:1px solid var(--stone-200);
}
.brand-cell{
  border-right:1px solid var(--stone-200);
  border-bottom:1px solid var(--stone-200);
  padding:30px 26px;
  display:flex;
  align-items:center;
  min-height:104px;
  transition:background .2s ease, color .2s ease;
}
.brand-cell span{
  font-family:var(--font-display);
  font-size:21px;
  color:var(--ink-900);
  transition:color .2s ease;
}
.brand-cell:hover{ background:var(--burgundy-700); }
.brand-cell:hover span{ color:var(--white); }

@media (max-width:900px){
  .brand-wall{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:520px){
  .brand-wall{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Contact / info cards
   ========================================================================== */
.info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.info-grid--4{ grid-template-columns:repeat(4,1fr); }
.info-card{
  background:var(--white);
  border:1px solid var(--stone-200);
  border-radius:var(--radius-l);
  padding:30px 28px;
}
.info-card .ic-label{
  font-size:13px;
  font-weight:600;
  color:var(--burgundy-700);
  margin-bottom:10px;
  display:block;
}
.info-card p{ font-size:15.5px; margin-bottom:6px; }
.info-card a.value{
  font-family:var(--font-display);
  font-size:21px;
  color:var(--ink-900);
  display:inline-block;
  margin-top:2px;
}
.info-card a.value:hover{ color:var(--burgundy-700); }

@media (max-width:860px){
  .info-grid{ grid-template-columns:1fr; }
  .info-grid--4{ grid-template-columns:1fr; }
}

.hours-table{
  border-top:1px solid var(--stone-200);
}
.hours-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  padding:18px 0;
  border-bottom:1px solid var(--stone-200);
}
.hours-row .day{ font-weight:600; color:var(--ink-900); }
.hours-row .times{ text-align:right; color:var(--ink-700); font-size:15px; }
.hours-row .times div + div{ margin-top:2px; }

.map-frame{
  border-radius:var(--radius-l);
  overflow:hidden;
  border:1px solid var(--navy-700);
  aspect-ratio:16/8;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

/* ==========================================================================
   Service steps (Servizi page)
   ========================================================================== */
.step-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}
.step-item{
  padding-top:22px;
  border-top:2px solid var(--stone-300);
}
.step-item h3{ font-size:22px; margin-bottom:8px; }
.step-item p{ font-size:15px; margin-bottom:0; }

@media (max-width:860px){
  .step-list{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Gallery strip
   ========================================================================== */
.gallery-strip{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:20px;
}
.gallery-strip.gallery-chi-siamo {
  grid-template-columns:repeat(2, 1fr);
}

.gallery-strip.gallery-passeggiata-virtuale {
  grid-template-columns:repeat(3, 1fr);
}

.gallery-strip img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:var(--radius-m);
  aspect-ratio:3/4;
  border:1px solid var(--navy-700);
}

.gallery-strip.gallery-chi-siamo img {
	aspect-ratio:4/3;
	
}

.gallery-strip.gallery-passeggiata-virtuale img {
	aspect-ratio:1/1;
	
}
.gallery-strip .g-wide{ aspect-ratio:3/2.6; }
@media (max-width:760px){
  .gallery-strip, .gallery-strip.gallery-chi-siamo, .gallery-strip.gallery-passeggiata-virtuale{ grid-template-columns:1fr; }
  .gallery-strip > *:first-child{ grid-column:1/-1; }
}

/* ==========================================================================
   Video / virtual tour
   ========================================================================== */
.video-frame{
  max-width:400px;
  margin-left:auto;
  margin-right:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:var(--radius-l);
  overflow:hidden;
  background:var(--ink-900);
  position:relative;
  border:1px solid var(--navy-700);
}
.video-frame video{
  width:100%;
  display:block;
  object-fit:cover;
  background:#000;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.cta-banner h2{ margin-bottom:8px; }
.cta-banner-text{ max-width:46ch; }
.cta-banner-text p{ margin-bottom:0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background:var(--burgundy-700);
  color:#E7D9D9;
  padding:72px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand img{ height:88px; margin-bottom:16px; }
.footer-brand p{ color:#CBAFB1; font-size:14.5px; max-width:28ch; }
.footer-col h4{
  font-family:var(--font-text);
  font-size:13px;
  font-weight:600;
  color:#E7D9D9;
  letter-spacing:.02em;
  margin-bottom:16px;
}
.footer-col a, .footer-col p{
  display:block;
  color:#CBAFB1;
  font-size:14.5px;
  margin-bottom:10px;
}
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding-top:24px;
  font-size:13px;
  color:#A9868A;
  flex-wrap:wrap;
  gap:10px 24px;
}
.footer-bottom a{ color:#CBAFB1; }
.footer-bottom a:hover{ color:var(--white); }
.footer-legal{ display:flex; gap:8px; align-items:baseline; }
.footer-legal .sep{ color:#8C6F72; }

@media (max-width:860px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-col{text-align: center;}
  .footer-brand img{margin: 15px auto;}
  .footer-brand p {margin: auto; text-align: center;}
}

/* ==========================================================================
   Utility
   ========================================================================== */
.section-head{
  max-width:640px;
  margin-bottom:52px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(32px,3.8vw,44px); }

h2{ font-size:clamp(24px,3vw,34px); }

.mt-0{ margin-top:0 !important; }

/* ==========================================================================
   Entrance animations
   ========================================================================== */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1);
  will-change:opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
img.reveal{ transform:translateY(18px) scale(1.015); }
img.reveal.is-visible{ transform:translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce){
  .reveal, img.reveal{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}
