/* ===================================================
   COMPONENTS.CSS — Hero, card, bottoni, sezioni
   =================================================== */

/* ===== BOTTONI ===== */
.btn {
  display: inline-block;
  font-family: var(--font-corpo);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transizione), color var(--transizione),
              border-color var(--transizione), transform var(--transizione);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-accento {
  background-color: var(--terracotta);
  color: #ffffff;
  border-color: var(--testo);
}

.btn-accento:hover {
  background-color: #c95e3a;
  border-color: #c95e3a;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--testo);
  border-color: var(--salvia);
}

.btn-outline:hover {
  background-color: var(--salvia);
  color: var(--testo);
  border-color: var(--salvia);
}

.btn-piccolo {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

/* ===== HERO A TUTTA FINESTRA ===== */

.hero-viewport {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: var(--testo);
  /* Leggerissimo scale-down (1 → 0.97) impostato via JS mentre si scrolla
     verso la sezione successiva, per una sensazione di profondità */
  transform-origin: center center;
}

/* Sfondo: campo di fiori, si ritaglia liberamente */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  display: block;
}

/* Overlay semitrasparente */
.hero-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 30, 10, 0.05) 0%,
    rgba(20, 30, 10, 0.40) 50%,
    rgba(20, 30, 10, 0.60) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Blocco testo — copre tutta la hero */
.hero-velo {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

/* Testo principale: kicker + titolo + sottotitolo + bottone */
.hero-testo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: 5%;
  max-width: 48%;
  margin-left: auto;
}

/* Proprietà condivise ragazza */
.hero-ragazza {
  display: block;
  pointer-events: none;
  border: none;
  outline: none;
  box-shadow: none;
  background: none;
  flex-shrink: 0;
  transition: opacity 0.9s ease;
}

/* Riquadro della ragazza: l'illustrazione ne definisce l'ingombro,
   il canvas 3D (js/hero-3d.js) le si sovrappone quando il modello è pronto */
.hero-ragazza-scena {
  position: relative;
  flex-shrink: 0;
  pointer-events: none;
}

/* Un po' più largo del riquadro, così l'oscillazione non viene tagliata ai lati */
.hero-ragazza-canvas {
  position: absolute;
  left: -12%;
  bottom: 0;
  width: 124%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-ragazza-scena.is-3d .hero-ragazza-canvas {
  opacity: 1;
}

/* Nascosta ma ancora nel layout: continua a dare le dimensioni al riquadro */
.hero-ragazza-scena.is-3d .hero-ragazza {
  opacity: 0;
}

/* Desktop: ragazza posizionata in basso a sinistra, hero-bottom-text nascosto */
@media (min-width: 768px) {
  .hero-bottom-row {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
  }

  .hero-ragazza {
    height: 90vh;
    width: auto;
  }

  .hero-bottom-text {
    display: none;
  }
}

.hero-kicker {
  font-family: var(--font-corpo);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crema);
  text-shadow: 0 1px 8px rgba(20, 30, 20, 0.6);
  margin-bottom: 0.9rem;
}

.hero-titolo-grande {
  font-family: var(--font-titoli);
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 0.95;
  white-space: nowrap;
  color: var(--crema);
  text-shadow: 0 2px 14px rgba(20, 30, 20, 0.55);
  margin-bottom: 1rem;
}

.hero-sottotitolo {
  font-size: 0.95rem;
  color: var(--crema);
  opacity: 0.9;
  text-shadow: 0 1px 8px rgba(20, 30, 20, 0.5);
  margin-bottom: 1.5rem;
  max-width: 32ch;
  line-height: 1.5;
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .hero-bg {
    object-fit: cover;
    object-position: 40% center;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-desktop-only {
    display: none;
  }

  .hero-velo {
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
  }

  .hero-testo {
    position: absolute;
    top: 38%;
    left: 4%;
    right: 4%;
    transform: translateY(-50%);
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0;
  }

  .hero-titolo-grande {
    white-space: normal;
    font-size: clamp(1.6rem, 6.8vw, 3rem);
    text-align: center;
    letter-spacing: 0.10em;
    width: 100%;
  }

  .hero-bottom-row {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }

  .hero-ragazza-scena {
    width: 50%;
    margin-left: -4%;
  }

  .hero-ragazza {
    width: 100%;
    height: auto;
  }

  .hero-bottom-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 4%;
    padding-bottom: 1.5rem;
  }

  .hero-sottotitolo {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

.btn-pillola {
  border-radius: 999px;
}

/* Chevron di scroll, in basso al centro */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.hero-scroll-chevron {
  width: 22px;
  height: 22px;
  border-right: 3px solid var(--crema);
  border-bottom: 3px solid var(--crema);
  transform: rotate(45deg);
  opacity: 0.7;
  filter: drop-shadow(0 1px 4px rgba(20, 30, 20, 0.5));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scroll-indicator {
    animation: pulsa-scroll 2s ease-in-out infinite;
  }
}

@keyframes pulsa-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== API SVG ===== */
/* Sopra la foto, sotto il testo: coprono tutta la hero */
.api-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ape {
  position: absolute;
  width: 36px;
  height: auto;
}

/* Animazioni volo — definite qui, gestite da bees.js */
/* Percorsi ad anello (ellisse chiusa che riparte dal punto di origine),
   così il volo dell'ape descrive una curva morbida invece di zig-zag */
@keyframes vola-1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(52px, 24px) rotate(15deg); }
  40%  { transform: translate(32px, 63px) rotate(-10deg); }
  60%  { transform: translate(-32px, 63px) rotate(10deg); }
  80%  { transform: translate(-52px, 24px) rotate(-15deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes vola-2 {
  0%   { transform: translate(0, 0) rotate(-5deg); }
  20%  { transform: translate(-47px, 27px) rotate(-15deg); }
  40%  { transform: translate(-29px, 72px) rotate(10deg); }
  60%  { transform: translate(29px, 72px) rotate(-10deg); }
  80%  { transform: translate(47px, 27px) rotate(15deg); }
  100% { transform: translate(0, 0) rotate(-5deg); }
}

@keyframes vola-3 {
  0%   { transform: translate(0, 0) rotate(8deg); }
  20%  { transform: translate(43px, -21px) rotate(-12deg); }
  40%  { transform: translate(27px, -54px) rotate(18deg); }
  60%  { transform: translate(-27px, -54px) rotate(-12deg); }
  80%  { transform: translate(-43px, -21px) rotate(12deg); }
  100% { transform: translate(0, 0) rotate(8deg); }
}

@keyframes vola-4 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-46px, -22px) rotate(-10deg); }
  40%  { transform: translate(-28px, -58px) rotate(15deg); }
  60%  { transform: translate(28px, -58px) rotate(-15deg); }
  80%  { transform: translate(46px, -22px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Anello largo e schiacciato, orario */
@keyframes vola-5 {
  0%   { transform: translate(0, 0) rotate(6deg); }
  20%  { transform: translate(71px, 14px) rotate(20deg); }
  40%  { transform: translate(44px, 36px) rotate(-8deg); }
  60%  { transform: translate(-44px, 36px) rotate(8deg); }
  80%  { transform: translate(-71px, 14px) rotate(-20deg); }
  100% { transform: translate(0, 0) rotate(6deg); }
}

/* Anello stretto e alto, antiorario */
@keyframes vola-6 {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  20%  { transform: translate(-24px, -31px) rotate(6deg); }
  40%  { transform: translate(-15px, -81px) rotate(-18deg); }
  60%  { transform: translate(15px, -81px) rotate(18deg); }
  80%  { transform: translate(24px, -31px) rotate(-6deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}

/* Anello grande e tondo, orario */
@keyframes vola-7 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(57px, 31px) rotate(12deg); }
  40%  { transform: translate(35px, 81px) rotate(-18deg); }
  60%  { transform: translate(-35px, 81px) rotate(18deg); }
  80%  { transform: translate(-57px, 31px) rotate(-12deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Anello piccolo e stretto, antiorario */
@keyframes vola-8 {
  0%   { transform: translate(0, 0) rotate(10deg); }
  20%  { transform: translate(-33px, 17px) rotate(-6deg); }
  40%  { transform: translate(-21px, 45px) rotate(14deg); }
  60%  { transform: translate(21px, 45px) rotate(-14deg); }
  80%  { transform: translate(33px, 17px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(10deg); }
}

/* Anello medio e tondo, orario, verso l'alto */
@keyframes vola-9 {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  20%  { transform: translate(38px, -28px) rotate(16deg); }
  40%  { transform: translate(24px, -72px) rotate(-20deg); }
  60%  { transform: translate(-24px, -72px) rotate(20deg); }
  80%  { transform: translate(-38px, -28px) rotate(-16deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}

/* ---- Traiettorie lunghe: solo per qualche ape, giro molto più ampio ---- */

/* Anello grande e tondo, orario */
@keyframes vola-10 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(95px, 48px) rotate(14deg); }
  40%  { transform: translate(59px, 127px) rotate(-20deg); }
  60%  { transform: translate(-59px, 127px) rotate(20deg); }
  80%  { transform: translate(-95px, 48px) rotate(-14deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Anello largo e molto schiacciato, antiorario */
@keyframes vola-11 {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  20%  { transform: translate(-114px, 17px) rotate(10deg); }
  40%  { transform: translate(-71px, 45px) rotate(-16deg); }
  60%  { transform: translate(71px, 45px) rotate(16deg); }
  80%  { transform: translate(114px, 17px) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}

/* Anello alto e stretto, orario, verso l'alto */
@keyframes vola-12 {
  0%   { transform: translate(0, 0) rotate(4deg); }
  20%  { transform: translate(29px, -55px) rotate(-18deg); }
  40%  { transform: translate(18px, -145px) rotate(22deg); }
  60%  { transform: translate(-18px, -145px) rotate(-22deg); }
  80%  { transform: translate(-29px, -55px) rotate(18deg); }
  100% { transform: translate(0, 0) rotate(4deg); }
}

@keyframes sbatti-ali {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.3); }
}

/* ===== CARD ===== */
.card {
  background-color: var(--crema);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(59, 65, 39, 0.08);
  transition: transform var(--transizione), box-shadow var(--transizione);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 65, 39, 0.14);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: var(--salvia);
}

/* Foto "Miele del campo": crop di default troppo basso (taglia via il volto
   e lascia molto spazio alle arnie in fondo) — la sposto leggermente più in alto */
.card-img-miele {
  object-position: 50% 30%;
}

/* Placeholder colore per immagini mancanti */
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--salvia), var(--verde-chiaro));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-titolo {
  font-family: var(--font-titoli);
  font-size: 1.3rem;
  color: var(--testo);
}

.card-testo {
  font-size: 0.9rem;
  color: var(--testo);
  opacity: 0.8;
  flex: 1;
  max-width: none;
  margin-bottom: 0;
}

.card-prezzo {
  font-weight: 700;
  color: var(--testo);
  font-size: 1.1rem;
}

.card-data {
  font-size: 0.8rem;
  color: var(--salvia);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--salvia);
}

/* ===== SEZIONI HOME ===== */
.sezione {
  padding: 5rem 0;
}

#prodotti.sezione {
  padding-top: 2.5rem;
}

@media (min-width: 768px) {
  #prodotti.sezione {
    padding-top: 5rem;
  }
}

@media (max-width: 767px) {
  .sezione {
    padding: 2.5rem 0;
  }

  .sezione-header {
    margin-bottom: 1.5rem;
  }

  .sezione-sfondo-verde:first-of-type .sezione-header,
  .pagina-main > section:first-child .sezione-header {
    margin-bottom: 0;
  }

  .pagina-main > section:first-child {
    padding: 1.5rem 0;
  }

  .chi-sono-foto {
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 72vw;
    margin-bottom: 1.5rem;
  }

  #workshop.sezione {
    padding-bottom: 1.5rem;
  }
}

.sezione-sfondo-verde {
  background-color: var(--verde-chiaro);
}

.sezione-sfondo-bianco {
  background-color: var(--crema);
}

.sezione-sfondo-giallo {
  background-color: var(--crema);
}

.sezione-header {
  margin-bottom: 3rem;
}

.sezione-header h2 {
  margin-bottom: 0.75rem;
}

.sezione-header p {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* Linea decorativa sotto titolo sezione */
.sezione-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--terracotta);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.sezione-header.testo-centrato h2::after {
  margin-inline: auto;
}

.sezione-header.testo-centrato p {
  margin-inline: auto;
}

/* ===== ARTICOLI BLOG ANTEPRIMA ===== */
.articolo-preview {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--salvia);
}

.articolo-preview:last-child { border-bottom: none; }

.articolo-preview-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--salvia), var(--verde-chiaro));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.articolo-preview-corpo h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.articolo-preview-corpo p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  max-width: none;
}

/* ===== FORM CONTATTI ===== */
.form-contatti {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
}

.form-gruppo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-gruppo label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--testo);
}

.form-gruppo input,
.form-gruppo textarea {
  font-family: var(--font-corpo);
  font-size: 1rem;
  color: var(--testo);
  background-color: var(--crema);
  border: 2px solid var(--salvia);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  transition: border-color var(--transizione), box-shadow var(--transizione);
  width: 100%;
}

.form-gruppo input:focus,
.form-gruppo textarea:focus {
  outline: none;
  border-color: var(--salvia);
  box-shadow: 0 0 0 3px rgba(156, 171, 132, 0.25);
}

.form-gruppo textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== WORKSHOP CARD ===== */
.workshop-item {
  background-color: var(--verde-chiaro);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--oliva);
  box-shadow: 0 2px 8px rgba(59, 65, 39, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transizione), box-shadow var(--transizione);
}

.workshop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 65, 39, 0.12);
}

.workshop-data {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--testo);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.workshop-posti {
  font-size: 0.85rem;
  color: var(--salvia);
  font-weight: 600;
}

/* ===== SEZIONE CHI SONO ===== */
.chi-sono-griglia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .chi-sono-griglia {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sta leggermente "sopra" la hero (che nel frattempo si rimpicciolisce
   un filo scrollando) per accentuare la sensazione di profondità */
#chi-sono {
  position: relative;
  z-index: 1;
}

/* ===== CHI SONO — reveal editoriale allo scroll (scoped a #chi-sono) ===== */
/* Attivato una sola volta da js/chi-sono-anim.js aggiungendo .co-visibile
   alla section: le regole sotto sono cascate da quella classe, così la
   coreografia (foglia → foto/finestra organica → cornice → label → titolo
   riga per riga → testi → link) parte in un unico momento con delay
   progressivi e leggermente sovrapposti (non un'attesa rigida in fila). */

/* ---------- Foglia: "portata dal vento", con leggero overshoot ---------- */
#chi-sono .co-foglia {
  opacity: 0;
  transform: translateY(10px) rotate(-5deg);
}

@keyframes co-foglia-vento {
  0%   { opacity: 0; transform: translateY(10px) rotate(-5deg); }
  70%  { opacity: 1; transform: translateY(-1px) rotate(1.5deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

#chi-sono.co-visibile .co-foglia {
  animation: co-foglia-vento 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Disegno del contorno della fogliolina (stroke-dasharray impostato da JS) */
#chi-sono .co-foglia svg path {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

#chi-sono.co-visibile .co-foglia svg path {
  stroke-dashoffset: 0 !important;
}

/* ---------- Foto: finestra organica che si apre (clip-path) ----------
   Il colore/scale/parallax dell'immagine sono gestiti da JS (chi-sono-anim.js)
   perché lo stesso transform ospita sia il tween d'entrata (scale 1.06→1)
   sia il micro-parallax continuo legato allo scroll: qui la mask si occupa
   solo della "finestra" che si apre, in clip-path puro (nessun fade). */
#chi-sono .chi-sono-foto-mask {
  clip-path: inset(72% 34% 6% 34% round 55% 55% 60% 60% / 65% 65% 40% 40%);
  transform: translateY(10px);
  transition: clip-path 1.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, transform;
}

#chi-sono.co-visibile .chi-sono-foto-mask {
  clip-path: inset(0 round 14px);
  transform: translateY(0);
}

/* Il bordo verde compare poco dopo la foto, quasi "disegnato" intorno */
#chi-sono .chi-sono-foto-cornice::before {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

#chi-sono.co-visibile .chi-sono-foto-cornice::before {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Label "Chi sono": prima la linea, poi il testo ---------- */
#chi-sono .co-linea {
  display: inline-block;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

#chi-sono .co-label {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.62s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.62s;
}

/* ---------- Titolo: masked reveal riga per riga ----------
   Ogni riga (co-riga-mask, creata da JS in base al wrapping reale del
   testo) nasconde l'overflow; dentro, co-riga-inner parte da translateY(110%)
   ed emerge fisicamente dal basso — nessun fade come effetto principale.
   Il delay per-riga (stagger ~120ms) è impostato inline da JS. */
#chi-sono .co-riga-mask {
  display: block;
  overflow: hidden;
}

#chi-sono .co-riga-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

#chi-sono.co-visibile .co-riga-inner {
  transform: translateY(0);
}

/* ---------- Testi: comparsa discreta, dopo il titolo ---------- */
#chi-sono .co-para {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#chi-sono .co-para:nth-of-type(1) { transition-delay: 1.65s; }
#chi-sono .co-para:nth-of-type(2) { transition-delay: 1.8s; }

#chi-sono .co-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.05s,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.05s,
              color var(--transizione),
              text-decoration-color var(--transizione);
}

#chi-sono.co-visibile .co-linea {
  opacity: 1;
  transform: scaleX(1);
}

#chi-sono.co-visibile .co-label,
#chi-sono.co-visibile .co-para,
#chi-sono.co-visibile .co-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #chi-sono .co-foglia,
  #chi-sono .co-foglia svg path,
  #chi-sono .chi-sono-foto-mask,
  #chi-sono .chi-sono-foto-cornice::before,
  #chi-sono .co-linea,
  #chi-sono .co-label,
  #chi-sono .co-riga-inner,
  #chi-sono .co-para,
  #chi-sono .co-cta {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    stroke-dashoffset: 0 !important;
  }
}

.chi-sono-foto {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(160deg, var(--salvia), var(--verde-chiaro));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.chi-sono-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 20%;
  display: block;
}

.chi-sono-foto .foto-emoji {
  font-size: 3rem;
  line-height: 1;
}

.chi-sono-foto .foto-etichetta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--testo);
  opacity: 0.6;
}

/* ===== TAG CATEGORIE ===== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: var(--salvia);
  color: var(--testo);
}

/* ===== DIVISORE CREMA CON FOGLIA ===== */
.divisore-crema {
  background-color: var(--crema);
  padding: 1rem 0;
}

@media (max-width: 767px) {
  .divisore-crema {
    padding: 0.75rem 0;
  }
}

/* ===== FOGLIOLINA DIVISORE TRA SEZIONI ===== */
.foglia-divisore {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}

.foglia-divisore svg {
  width: 55px;
  height: 45px;
}

.divisore-crema .foglia-divisore,
.foglia-bottom {
  margin-bottom: 0;
}

.foglia-bottom {
  padding-top: 1.5rem;
}

.foglia-workshop {
  padding-top: 0.5rem;
}

.foglia-chisono {
  padding-top: 0;
}

@media (max-width: 767px) {
  .foglia-divisore {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
  }
}

/* ===== ETICHETTA SEZIONE ===== */
.sezione-label-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.sezione-label {
  font-family: var(--font-corpo);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oliva);
}

.sezione-bee {
  font-size: 0.9rem;
  line-height: 1;
}

/* ===== INTESTAZIONE SEZIONE CON LINK A DESTRA ===== */
.sezione-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.sezione-header-row > div { flex: 1; }

.link-vedi-tutti {
  font-family: var(--font-corpo);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--testo);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  opacity: 0.65;
  transition: opacity var(--transizione);
  padding-bottom: 0.25rem;
}

.link-vedi-tutti:hover { opacity: 1; color: var(--testo); }

/* ===== SEZIONE "IL MIO CAMPO" — SPLIT FOTO + TESTO ===== */
.sezione-campo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.campo-split-foto {
  overflow: hidden;
}

.campo-split-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.campo-split-testo {
  background-color: var(--verde-chiaro);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 8% 4rem 8%;
}

.campo-split-testo h2 {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.campo-split-testo p {
  max-width: 36ch;
}

@media (max-width: 767px) {
  .sezione-campo-split {
    grid-template-columns: 1fr;
  }
  .campo-split-foto {
    height: 260px;
  }
  .campo-split-testo {
    padding: 2.5rem 6%;
  }
}

/* ===== WORKSHOP LAYOUT 2 COLONNE ===== */
.workshop-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .workshop-split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.workshop-foto-col {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
}

.workshop-foto-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-salvia {
  background-color: var(--oliva);
  color: var(--crema);
  border-color: var(--oliva);
}

.btn-salvia:hover {
  background-color: var(--testo);
  border-color: var(--testo);
  color: var(--crema);
}

/* ===== BLOG CARD CON FOTO ===== */
.blog-griglia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .blog-griglia { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .blog-griglia { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  background-color: var(--crema);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(59, 65, 39, 0.08);
  transition: transform var(--transizione), box-shadow var(--transizione);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 65, 39, 0.14);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card-titolo {
  font-family: var(--font-titoli);
  font-size: 1.2rem;
  color: var(--testo);
  line-height: 1.2;
}

.blog-card-testo {
  font-size: 0.875rem;
  color: var(--testo);
  opacity: 0.78;
  flex: 1;
  line-height: 1.5;
}

.link-leggi {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--oliva);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color var(--transizione);
}

.link-leggi:hover { color: var(--testo); }

/* Icona ape nelle card prodotti */
.card-bee {
  font-size: 0.9rem;
  margin-bottom: -0.25rem;
}

/* Foto Chi sono: cornicetta verde chiaro con padding crema.
   Il bordo/sfondo verde vive su ::before (invece che sulla classe stessa)
   così può comparire con un timing leggermente sfalsato rispetto alla foto,
   senza mai nascondere l'immagine (vedi blocco animazioni più sotto). */
.chi-sono-foto-cornice {
  display: block;
  width: 100%;
  border: 2.5px solid transparent;
  border-radius: 20px;
  padding: 10px;
  background-color: transparent;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}

.chi-sono-foto-cornice::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--verde-chiaro);
  border-radius: 20px;
  background-color: var(--verde-chiaro);
  box-sizing: border-box;
  z-index: -1;
}

/* Finestra che ritaglia la foto: qui vive il reveal organico (clip-path)
   e il contenimento per il micro-parallax dell'immagine al suo interno */
.chi-sono-foto-mask {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
}

.chi-sono-foto-img {
  position: absolute;
  left: 0;
  top: -15px;
  width: 100%;
  height: calc(100% + 30px);
  border-radius: 14px;
  object-fit: cover;
  object-position: 0% 50%;
  display: block;
  border: none;
}

/* Label con trattino */
.sezione-trattino {
  display: inline-block;
  color: var(--testo);
  font-weight: 600;
  margin-right: 0.4rem;
  opacity: 0.5;
}

/* Link testo semplice (es. "La mia storia →") */
.link-testo {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--testo);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--oliva);
  transition: color var(--transizione), text-decoration-color var(--transizione);
  margin-top: 0.5rem;
}

.link-testo:hover {
  color: var(--oliva);
  text-decoration-color: var(--oliva);
}

/* ===== INFO CONTATTI ===== */
.info-contatti {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-voce {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.info-voce-icona {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
