/* ==========================================================================
   VINICOLA FILIPPI - VARIABILI PALETTE & GLOBALS
   ========================================================================== */
:root {
  --vf-green: #2B4C32;
  --vf-green-dark: #1E3623;
  --vf-gold: #C59B47;
  --vf-gold-dark: #AE8434;
  --vf-cream: #F5EFE6;
  --vf-ivory: #FAF7F2;
  --vf-border: #E2D9C8;
  --vf-text: #1E2420;
}

body {
  background-color: var(--vf-cream);
  color: var(--vf-text);
}

/* ==========================================================================
   BOTTONI & CTA (Stile Pillola Mockup)
   ========================================================================== */
.btn-vf-green,
.sppb-btn-vf-green {
  background-color: var(--vf-green) !important;
  color: #ffffff !important;
  border: 1px solid var(--vf-green) !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.btn-vf-green:hover,
.sppb-btn-vf-green:hover {
  background-color: var(--vf-green-dark) !important;
  border-color: var(--vf-green-dark) !important;
  transform: translateY(-2px);
}

.btn-vf-gold,
.sppb-btn-vf-gold {
  background-color: var(--vf-gold) !important;
  color: var(--vf-text) !important;
  border: 1px solid var(--vf-gold) !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.btn-vf-gold:hover,
.sppb-btn-vf-gold:hover {
  background-color: var(--vf-gold-dark) !important;
  border-color: var(--vf-gold-dark) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   BENTO GRID & CARD FLOTTANTI (Da applicare a Colonne o Addon in SPPB)
   ========================================================================== */

/* Card Verde Vigneto (es. Blocco 250.000 hl) */
.vf-bento-green {
  background-color: var(--vf-green) !important;
  color: #ffffff !important;
  border-radius: 24px !important;
  padding: 40px !important;
}

.vf-bento-green h2,
.vf-bento-green h3,
.vf-bento-green .sppb-addon-title {
  color: var(--vf-gold) !important;
}

/* Card Flottante Avorio (es. Conduzione familiare / Box in evidenza) */
.vf-card-ivory {
  background-color: var(--vf-ivory) !important;
  border: 1px solid var(--vf-border) !important;
  border-radius: 24px !important;
  padding: 45px !important;
  box-shadow: 0 16px 36px rgba(43, 76, 50, 0.06) !important;
}

/* ==========================================================================
   IMMAGINI & CORNICI
   ========================================================================== */

/* Arrotondamento standard foto Bento (Stoccaggio, Ricevimento, Silos) */
.vf-img-rounded img {
  border-radius: 20px !important;
}

/* Foto con doppia cornice sfalsata Oro + Verde (Sezione Giovanni Filippi) */
.vf-img-offset img {
  border-radius: 20px !important;
  box-shadow: -14px -14px 0px var(--vf-gold), 16px 14px 0px var(--vf-green) !important;
  margin: 16px !important;
}

/* Filetto divisorio per il blocco numeri Hero (1960 | 250.000 hl) */
.vf-stat-divider {
  border-right: 1px solid rgba(197, 155, 71, 0.4);
  padding-right: 24px;
  margin-right: 24px;
}

/* ==========================================================================
   HERO HOME - COLONNA SINISTRA
   ========================================================================== */
.vf-hero-title {
  color: #FFFFFF !important;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.vf-hero-title span {
  color: #C59B47;
}

.vf-hero-subtitle {
  color: #E2D9C8;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 32px;
}

.vf-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.vf-btn-gold {
  background-color: #C59B47;
  color: #1E2420 !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.vf-btn-gold:hover {
  background-color: #d6ab54;
  transform: translateY(-2px);
}

.vf-btn-outline {
  background-color: transparent;
  color: #FFFFFF !important;
  font-weight: 500;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all 0.25s ease;
}

.vf-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* Blocco Statistiche (1960 | 250.000 hl) */
.vf-hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 8px;
}

.vf-stat-item {
  display: flex;
  flex-direction: column;
}

.vf-stat-first {
  padding-right: 32px;
  border-right: 1px solid rgba(197, 155, 71, 0.45);
}

.vf-stat-num {
  color: #C59B47;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 4px;
}

.vf-stat-label {
  color: #E2D9C8;
  font-size: 14px;
  font-weight: 400;
}

/* Nasconde lo switcher flottante di SP Page Builder */
.sppb-color-switcher-modes {
  display: none !important;
}

/* Sovrascrive le variabili colore globali di SP Page Builder (che davano il verde salvia) */
:root,
body,
[data-sppb-color-mode] {
  --sppb-color-primary: #2B4C32 !important;
  --sppb-color-secondary: #C59B47 !important;
}

/* Forza il bottone "Book A Consultation" / "Richiedi un'offerta" nell'Header */
#sp-header a.sppb-btn,
#sp-header .btn,
.sp-megamenu-wrapper a.btn,
#sp-menu a.btn {
  background-color: #2B4C32 !important;
  background-image: none !important;
  border-color: #2B4C32 !important;
  color: #FFFFFF !important;
}

#sp-header a.sppb-btn:hover,
#sp-header .btn:hover {
  background-color: #1E3623 !important;
  border-color: #1E3623 !important;
}

/* ==========================================================================
   PAGINA CHI SIAMO - BLOCCO COMPLETO E DEFINITIVO
   ========================================================================== */

/* 1. Ripristino Bollino inclinato Hero */
/* Bollino inclinato Hero maggiorato */
.vf-about-badge {
  width: 245px;
  height: 245px;
  background-color: #2B4C32;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.28;
  padding: 24px;
  transform: rotate(-6deg);
  margin: 0 auto;
  box-shadow: 10px 12px 0px #C59B47;
}
/* 2. Foto Giovanni Filippi: più alta (550px) per coprire tutta la colonna testo */
.vf-img-offset,
.vf-img-offset .sppb-addon-content,
.vf-img-offset .sppb-addon-single-image-container {
  display: block !important;
  width: 100% !important;
}

.vf-img-offset img {
  width: 100% !important;
  height: 550px !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  box-shadow: -14px -14px 0px #C59B47, 16px 14px 0px #2B4C32 !important;
}

/* 3. Bento Grid: Card Verde + 2 Card Foto geometricamente allineate in altezza */
.vf-bento-green {
  background-color: #2B4C32 !important;
  border-radius: 24px !important;
  padding: 40px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vf-bento-green,
.vf-bento-green p,
.vf-bento-green .sppb-addon-content,
.vf-bento-green .sppb-addon-text-block {
  color: #F5EFE6 !important;
  font-size: 16px;
  line-height: 1.65;
}

.vf-bento-green h2,
.vf-bento-green h3,
.vf-bento-green .sppb-addon-title {
  color: #C59B47 !important;
  margin-bottom: 16px !important;
}

/* Contenitore Bento per Colonna 2 e Colonna 3 */
.vf-bento-ivory {
  background-color: #FAF7F2 !important;
  border: 1px solid #E2D9C8 !important;
  border-radius: 24px !important;
  padding: 16px 16px 22px 16px !important;
  height: 100%;
  box-shadow: 0 12px 28px rgba(43, 76, 50, 0.04);
}

.vf-bento-ivory .sppb-column-addons {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vf-bento-photo {
  flex: 1;
  display: flex !important;
  width: 100% !important;
}

.vf-bento-photo .sppb-addon-content,
.vf-bento-photo .sppb-addon-single-image-container {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.vf-bento-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 330px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}

.vf-bento-ivory h4,
.vf-bento-ivory .sppb-addon-title {
  margin: 16px 6px 0 6px !important;
  color: #1E2420 !important;
}

/* 4. Ripristino griglia 2 colonne e spaziature per "Un'azienda a conduzione familiare" */
.vf-family-box {
  display: grid !important;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
  padding: 48px !important;
}

.vf-family-left h2 {
  color: #1E2420 !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}

.vf-family-left h3 {
  color: #2B4C32 !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

.vf-family-right p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.vf-family-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.vf-family-btns a {
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 991px) {
  .vf-family-box {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px !important;
  }
  .vf-img-offset img {
    height: 380px !important;
  }
}

/* ==========================================================================
   PAGINA LA CANTINA - BENTO TECNICA & 5 REPARTI
   ========================================================================== */

/* Card Riepilogo Tecnico nella Hero (Colonna destra) */
.vf-tech-summary {
  background-color: #2B4C32;
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: 10px 10px 0px #C59B47;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vf-tech-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(197, 155, 71, 0.3);
}

.vf-tech-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.vf-tech-val {
  color: #C59B47;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.vf-tech-lbl {
  color: #F5EFE6;
  font-size: 14px;
  margin-top: 4px;
}

/* Griglia Bento 2 sopra + 3 sotto per i 5 Reparti */
.vf-winery-bento {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.vf-winery-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.vf-winery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Singola Card Reparto */
.vf-stage-card {
  background-color: #FAF7F2;
  border: 1px solid #E2D9C8;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(43, 76, 50, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vf-stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(43, 76, 50, 0.09);
}

.vf-stage-img {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.vf-winery-grid-2 .vf-stage-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.vf-winery-grid-3 .vf-stage-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Bollino numerato 01 - 05 sopra la foto */
.vf-stage-num {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: #2B4C32;
  color: #C59B47;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vf-stage-body {
  padding: 20px 8px 8px 8px;
}

.vf-stage-body h3 {
  color: #2B4C32 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 0 0 10px 0 !important;
}

.vf-stage-body p {
  color: #1E2420;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Tablet & Mobile */
@media (max-width: 991px) {
  .vf-winery-grid-2,
  .vf-winery-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PAGINA CONTATTI - CARD SINISTRA NUOVA & FORM BUILDER
   ========================================================================== */

/* Card Verde Vigneto a tutta altezza sul lato sinistro */
.vf-contact-card-left {
  position: relative;
  background-color: #2B4C32;
  border-radius: 24px;
  padding: 56px 44px 48px 44px;
  height: 100%;
  box-shadow: 0 14px 34px rgba(43, 76, 50, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Badge inclinato Oro stile "Book A Call" ma elegante */
.vf-contact-pill {
  position: absolute;
  top: -18px;
  left: 36px;
  background-color: #C59B47;
  color: #1E2420;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 12px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vf-contact-card-left h1 {
  color: #FFFFFF !important;
  font-size: clamp(32px, 3.2vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 10px 0 20px 0 !important;
}

.vf-contact-lead {
  color: #E2D9C8 !important;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Lista punti di forza B2B in basso nella card sinistra */
.vf-contact-highlights {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(197, 155, 71, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vf-ch-item {
  display: flex;
  flex-direction: column;
}

.vf-ch-item strong {
  color: #C59B47;
  font-size: 16px;
  margin-bottom: 3px;
}

.vf-ch-item span {
  color: #F5EFE6;
  font-size: 14px;
}

/* Stile Card Destra (Form Builder) e Input */
.sppb-addon-form-builder input.sppb-form-control,
.sppb-addon-form-builder select.sppb-form-control,
.sppb-addon-form-builder textarea.sppb-form-control {
  background-color: #FFFFFF !important;
  border: 1px solid #E2D9C8 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  color: #1E2420 !important;
}

.sppb-addon-form-builder input.sppb-form-control:focus,
.sppb-addon-form-builder select.sppb-form-control:focus,
.sppb-addon-form-builder textarea.sppb-form-control:focus {
  border-color: #2B4C32 !important;
  box-shadow: 0 0 0 3px rgba(43, 76, 50, 0.12) !important;
  outline: none !important;
}

.sppb-addon-form-builder .sppb-btn {
  background-color: #2B4C32 !important;
  border-color: #2B4C32 !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
}

.sppb-addon-form-builder .sppb-btn:hover {
  background-color: #1E3623 !important;
  border-color: #1E3623 !important;
}


/* Forza i bottoni Custom di SP Page Builder al Verde Vigneto */
.sppb-addon-button .sppb-btn-custom,
a.sppb-btn-custom {
  background-color: #2B4C32 !important;
  background-image: none !important;
  border-color: #2B4C32 !important;
  color: #FFFFFF !important;
}

.sppb-addon-button .sppb-btn-custom:hover,
a.sppb-btn-custom:hover {
  background-color: #1E3623 !important;
  border-color: #1E3623 !important;
  color: #FFFFFF !important;
}
