/* ==============================
   Variabili globali
============================== */
:root {
  --honey-yellow: #D4A017;
  --dark-brown: #2F2A26;
  --beige: #F3E9DA;

  /* Variabili extra per schede prodotto */
  --honey: var(--honey-yellow);
  --brown: var(--dark-brown);
  --flower-size: 280px;
}

/* ==============================
   Base
============================== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--beige);
  color: var(--dark-brown);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-brown);
}

/* ==============================
   HERO con video (home page)
============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35));
  z-index: -1;
}
.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff; 
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* Pulsanti */
.btn-primary {
  background: var(--honey-yellow);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212,160,23,.25);
}
.btn-secondary {
  background: var(--beige);
  color: var(--dark-brown);
  border: 2px solid var(--honey-yellow);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
}

/* ==============================
   Sezione "Chi siamo"
============================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 80px 10%;
  align-items: center;
  position: relative;
}
.about-products h3 { margin-bottom: 20px; }
.product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.product-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* ==============================
   Citazione
============================== */
.quote {
  text-align: center;
  padding: 60px 10%;
  background: #fff;
}
.quote h2 { margin-bottom: 10px; }

/* ==============================
   Le nostre api
============================== */
.bees {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 10%;
  background: #fefaf5;
  position: relative;
}
.bees-text { max-width: 500px; }

/* Illustrazioni botaniche */
.botanical { position: absolute; opacity: 0.3; z-index: -1; }
.botanical-right { right: 5%; top: 50%; max-width: 200px; }
.botanical-left  { left: 5%;  top: 50%; max-width: 200px; }

/* ==============================
   Schede prodotto (Millefiori, Acacia, Sulla)
============================== */
.p-hero {
  position: relative;
  min-height: 60vh;
  padding: 120px 10% 80px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25));
  pointer-events: none;
}
.p-hero .p-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.p-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.12;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff; 
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.p-sub {
  margin: 0 0 18px;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  opacity: .95;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

/* Corpo pagina prodotto */
.p-main { background: var(--beige); }
.p-section { padding: 64px 10%; position: relative; }
.p-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.p-jar {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.12));
}
.p-h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 10px;
}
.p-divider {
  width: 120px;
  height: 2px;
  background: var(--honey);
  margin: 18px 0 20px;
}
.p-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  margin-top: 10px;
}
.p-info dt { font-weight: 600; color: var(--brown); }
.p-info dd { margin: 0; }
.p-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.p-flower {
  position: absolute; right: 3%; bottom: -20px;
  width: var(--flower-size); height: auto; opacity: .55;
  pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
}

/* ==============================
   STORIA
============================== */
.story-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 10% 84px;
  color: #fff;
  overflow: hidden;
}
.story-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.story-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.46), rgba(0,0,0,.28));
  z-index: -1;
}
.story-hero__inner { position: relative; z-index: 1; max-width: 980px; }
.story-back {
  display: inline-block; margin-bottom: 12px; color: #fff;
  text-decoration: none; font-weight: 600; opacity: .95;
}
.story-back:hover { text-decoration: underline; }
.story-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: .2rem 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.story-lead {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  margin: 0; opacity: .96;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.story { background: var(--beige); }
.story-row {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 48px; align-items: center; padding: 72px 10%;
}
.story-row.reverse { grid-template-columns: 1fr 1.05fr; }
.story-row.reverse .story-img { order: 2; }
.story-row.reverse .story-text { order: 1; }
.story-img img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.story-text h2 { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .4px; }
.story-divider { width: 120px; height: 2px; background: var(--honey-yellow); margin: 16px 0 18px; }
.story-text p { margin: 0 0 12px; }
.story-quote { position: relative; background: #fff; padding: 72px 10%; }
.story-quote__inner { max-width: 980px; margin: 0 auto; text-align: center; }
.story-quote blockquote { margin: 0 0 16px; }
.story-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.story-flower {
  position: absolute; right: 3%; bottom: -20px;
  width: 240px; height: auto; opacity: .5;
  pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
}

/* ==============================
   PRIVACY
============================== */
.privacy-hero {
  position: relative;
  min-height: 40vh;
  padding: 96px 10% 64px;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: #777 center/cover no-repeat; /* sostituisci con immagine */
}
.privacy-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.40), rgba(0,0,0,.22));
}
.privacy-hero .p-hero-inner { position: relative; z-index: 1; }
.privacy-hero h1,
.privacy-hero p {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 980px) {
  .p-grid { grid-template-columns: 1fr; gap: 32px; }
  .p-flower { display: none; }
  .story-row, .story-row.reverse { grid-template-columns: 1fr; }
  .story-img img { height: 300px; }
  .story-flower { display: none; }
}
@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; }
  .bees { flex-direction: column; }
  .botanical { display: none; }
  .hero-text h1 { font-size: 2.2rem; }
}

/* ==============================
   FOOTER
============================== */
.site-footer {
  background: #2F2A26;
  color: #fff;
  text-align: center;
  padding: 32px 10%;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: var(--honey-yellow); }
.social-links { margin-top: 12px; }
.social-icon {
  width: 1.6rem; height: 1.6rem;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-icon:hover { transform: scale(1.15); opacity: 0.85; }

/* ==============================
   HEADER / NAV
============================== */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  background: var(--beige);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav-wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10%;
}

/* Brand */
.brand{
  font-family: 'Playfair Display', serif;
  font-weight: 700; letter-spacing: .06em; text-decoration: none;
  color: var(--dark-brown);
}

/* Toggle (hamburger) */
.nav-toggle{
  display: none;
  background: none; border: 0; color: var(--dark-brown);
  font-size: 1.1rem; cursor: pointer;
}

/* Nav / menu (desktop) */
.nav{ display: block; }
.menu{
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 24px; align-items: center;
}
.menu a,
.submenu-toggle{
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  font-family: inherit;
  color: var(--dark-brown);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-block;
  padding: 6px 0;
  -webkit-appearance: none;
  appearance: none;
}
.menu a:hover, .submenu-toggle:hover{ color: var(--honey-yellow); }

/* Submenu (desktop: a tendina on hover) */
.has-submenu{ position: relative; }
.submenu{
  position: absolute; left: 0; top: 100%;
  background: var(--beige);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 0;
  list-style: none; display: none; min-width: 220px;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu{
  display: block;
}
.submenu li a{ display: block; padding: 8px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 860px){
  .nav-toggle{ display: inline-block; }
  .nav{
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--beige);
    border-top: 1px solid rgba(0,0,0,.08);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open{
    max-height: 80vh;
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
  }
  .menu{
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 10px 10%;
  }
  .menu a, .submenu-toggle{
    display: block; width: 100%;
    padding: 12px 0; text-align: left;
  }
  .has-submenu{ width: 100%; }
  .submenu{
    position: static; display: block;
    border: 0; box-shadow: none; padding: 0; margin: 0 0 6px 14px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    
  }
  .submenu.open{ max-height: 300px; }
  .submenu li a{ padding: 10px 0; font-size: .95rem; }
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form label {
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 6px;
  font-family: inherit;
}
.contact-form button {
  justify-self: start;
}



/* ===== Educazione & Trasparenza — nuove classi ===== */
.edu-hero { padding: 2.5rem 0 1rem; background: var(--beige); }
.edu-hero .lead { max-width: 60ch; line-height: 1.6; }

.kpi-grid { padding: 1.5rem 0 0.5rem; }
.kpi-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.kpi-card {
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 16px;
  padding: 1rem 1.25rem; box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.kpi-label { display:block; font-size: .9rem; color: rgba(0,0,0,.6); }
.kpi-value { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--dark-brown); }

.widget-3bee { padding: 2rem 0; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 2rem; align-items: start; }
.frame-wrap {
  aspect-ratio: 16/9; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.frame-wrap iframe { width: 100%; height: 100%; border: 0; }

.charts-edu { padding: 2rem 0; }
.chart-block { margin-bottom: 2rem; }
.chart-block h3 { margin-bottom: .5rem; }
.chart-note { font-size: .9rem; color: rgba(0,0,0,.6); }
.muted { color: rgba(0,0,0,.7); }

.edu-timeline { padding: 2rem 0; }
.timeline { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-left: 2.5rem; margin: 1rem 0; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .25rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--honey-yellow); color: #fff; display: grid; place-items: center;
  font-weight: 700;
}

.edu-cta { padding: 2rem 0 3rem; }
.cta-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.cta-form input {
  flex: 1 1 260px; border-radius: 12px; border: 1px solid rgba(0,0,0,.15);
  padding: .75rem 1rem; font-size: 1rem; background: #fff; color: var(--dark-brown);
}
.btn-primary, .btn-outline {
  display: inline-block; border-radius: 999px; padding: .7rem 1.1rem; font-weight: 600;
  text-decoration: none; transition: transform .1s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--honey-yellow); color: #fff; border: 0; }
.btn-outline { background: transparent; color: var(--dark-brown); border: 2px solid var(--dark-brown); }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }

.container { width: min(1100px, 92%); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsività */
@media (max-width: 980px) {
  .kpi-list { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpi-list { grid-template-columns: 1fr; }
  .kpi-card { padding: .9rem 1rem; }
  .timeline li { padding-left: 2.1rem; }
}


.chart-wrapper { position: relative; min-height: 320px; }


/* --- Fix robusto KPI su desktop --- */
.kpi-grid { padding: 1.5rem 0 0.5rem; }
.kpi-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}
.kpi-card {
  display: block;
  background: #fff; color: var(--dark-brown);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.kpi-label { display: block; font-size: .9rem; color: rgba(0,0,0,.6); }
.kpi-value { font-family: 'Playfair Display', serif; font-size: 1.8rem; }

/* --- Widget 3Bee: layout stabile su desktop --- */
.widget-3bee .container { align-items: stretch; }
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr; /* testo | frame */
  gap: 2rem;
}
.frame-wrap {
  position: relative;
  min-height: 420px;           /* più alto su desktop */
  aspect-ratio: auto;          /* evita conflitti con min-height */
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Grafici: altezza minima per non collassare */
.chart-wrapper { position: relative; min-height: 360px; }

/* Responsività */
@media (max-width: 980px) {
  .kpi-list { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .frame-wrap { min-height: 300px; }
}
@media (max-width: 560px) {
  .kpi-list { grid-template-columns: 1fr; }
}
