/* =========================
   HOME — stili specifici
   ========================= */

/* =========================
   HERO (homepage) – immagine <picture> + overlay
   ========================= */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;              /* equilibrio visivo */
  min-height: 360px;         /* evita hero troppo basso */
  display: block;            /* no grid/stack complessi */
  overflow: hidden;          /* nasconde eventuali sbordi img */
}

/* Media: l’immagine riempie il box senza bande */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* riempie senza deformare */
  object-position: center top; /* su mobile privilegia la parte alta */
}

/* Overlay: testo centrato e leggibile */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;       /* centra verticalmente */
  justify-content: center;   /* centra orizzontalmente */
  text-align: center;
  color: #fff;
}
.hero-inner {
  max-width: 800px;
  padding: 0 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8); /* leggibilità sullo sfondo */
}
.hero h1 {
  color: #fff;
  margin: 0 0 .6em;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
}
.hero-subtitle {
  color: #fff;
  margin: 0 0 2.2rem;
  font-size: clamp(1.05rem, 1.2vw + .6rem, 1.35rem);
  line-height: 1.5;
}

/* CTA dentro hero (se già definita altrove, puoi omettere questo blocco) */
.hero .btn-cta {
  display: inline-block;
  background: #FF7D09;
  color: #fff;
  padding: 12px 24px;
  border-radius: 28px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.hero .btn-cta:hover { background: #e96c00; }

/* Responsive */
@media (max-width: 600px) {
  .hero {
    height: 35vh;
    min-height: 240px;
  }
  .hero-media img {
    object-position: center top; /* ancora in alto su mobile */
  }
}
@media (min-width: 1200px) {
  .hero-media img {
    object-position: center center; /* su desktop recentra */
  }
}


/* INTRO */
.intro{
  margin: 40px auto 30px;
}
.intro .lead{
  text-align: center;
}

/* GRIGLIA 3 CARD (categorie in evidenza) */
.categorie-home{  
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
  gap:28px;
  align-items: stretch;   /* forza tutte le card alla stessa altezza */
}

/* Card categoria (link intero) */
.categoria-card{
  text-decoration:none;
  color:inherit;
  display: flex;
  flex-direction: column;
  height: 100%; /* si allinea alla colonna più alta */
}

/* Box immagine: bordi arrotondati, nessun taglio */
.categoria-media{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  border:1px solid #eee;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
}

/* L’immagine mantiene proporzioni (niente crop) */
.categoria-media img{
  display:block;
  width:100%;
  height:auto;        /* niente altezza fissa, zero tagli */
}

/* Badge */
.badge{
  position:absolute;
  top:10px; left:10px;
  background:#f6f0e3;
  color:#2E2E2E;
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  border:1px solid #e8e3d6;
}
.badge-accent{ background:#FF7D09; color:#fff; border-color:transparent; }

/* Box testo sotto la foto */
.categoria-body{
  margin-top:10px;
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:12px 14px;

  flex-grow: 1;          /* si espande per pareggiare le altezze */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* il testo resta in alto */
}

/* Tipi */
.categoria-body h2{
  font-size:1.2rem;
  /*color:#2E2E2E;*/
  margin:0 0 6px;
}
.categoria-body .cat-desc{
  margin:0;
  color:#686565;
  font-size:.98rem;
}

/* Hover delicato sull’intera card */
.categoria-card:hover .categoria-media{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,0.08);
  transition:transform .2s ease, box-shadow .2s ease;
}

/* CTA finale home */
.cta-finale{
  text-align: center;
  margin: 60px auto;
}
.cta-finale p{
  /*max-width: 58ch;*/
  margin: 0 auto 42px;
}

/* Piccoli ritocchi */
@media (min-width: 768px){
  .hero-overlay .hero-subtitle{ font-size: 1.2rem; }
  .categorie-home{max-width: 75%;}
}

@media (max-width: 360px){
  /* nessun crop: manteniamo altezza auto per le immagini */
}

/* =========================
   HOME — Richiamo "Natale con noi"
   ========================= */

.xmas-teaser{
  margin: 26px auto 10px; /* subito sotto la hero */
  max-width: 75%;
}

@media (max-width: 768px){
  .xmas-teaser{
    max-width: 100%;
  }
}

.xmas-teaser__link{
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;

  border-radius: 16px;
  border: 1px solid #eee;
  background: #fff;
  overflow: hidden;

  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  padding: 18px 18px;
}

/* fondo caldo e leggermente natalizio */
.xmas-teaser__link::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 220px at 10% 0%, rgba(255,125,9,0.14), transparent 60%),
    radial-gradient(700px 240px at 90% 40%, rgba(119,185,58,0.16), transparent 60%);
  pointer-events:none;
}

/* contenuto */
.xmas-teaser__content{
  position: relative;
  text-align: center;
}

/* titolo */
.xmas-teaser__title{
  margin: 0 0 10px;
  color: var(--ink-700);
  font-size: clamp(1.4rem, 1.3vw + 1rem, 1.8rem);
}

@media (max-width: 600px){
  .xmas-teaser__title span{
    display: block;
  }
  .xmas-title-strong{
    margin-top: 4px;
  }
}

.xmas-title-soft{
  color: var(--ink-600); /* neutro caldo */
  font-weight: 500;
}

.xmas-title-strong{
  color: var(--orange); /* accento già presente nel sito */
  font-weight: 700;
}

/* testo descrizione */
.xmas-teaser__text{
  margin: 0 auto 14px;
  color: var(--ink-600);
  font-size: 1.05rem;
  max-width: 60ch; /* resta leggibile anche centrato */
}

/* CTA morbida centrata */
.xmas-teaser__cta{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}


.xmas-teaser__soft{
  color: var(--orange);
  /*font-weight: 700;*/
  font-size: 1rem;
}

.xmas-teaser__arrow{
  color: var(--ink-700);
  font-weight: 800;
  font-size: 1.15rem;
}

/* decorazione luci (molto discreta) */
.xmas-teaser__decor{
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  gap: 8px;
  opacity: .75;
}

.xmas-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,125,9,0.15);
}

.xmas-dot:nth-child(2),
.xmas-dot:nth-child(4){
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(119,185,58,0.15);
}

/* hover / focus */
.xmas-teaser__link:hover{
  transform: translateY(-2px);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.xmas-teaser__link:hover .xmas-teaser__soft{
  text-decoration-thickness: 3px;
}

.xmas-teaser__link:focus-visible{
  outline: 3px solid rgba(255,125,9,0.45);
  outline-offset: 4px;
}

/* mobile */
@media (max-width: 600px){
  .xmas-teaser__link{
    padding: 16px 14px;
  }
  .xmas-teaser__decor{
    top: 10px;
    right: 10px;
    gap: 6px;
  }
}

/* =========================
   Neve che cade (PRO) — Xmas teaser
   ========================= */

/* assicura layering corretto */
.xmas-teaser__link{
  position: relative;
  overflow: hidden;
}

/* sfondo gradient (il tuo ::before) deve stare dietro */
.xmas-teaser__link::before{
  z-index: 0;
}

/* contenuto sopra la neve */
.xmas-teaser__content{ position: relative; z-index: 3; }
.xmas-teaser__decor{ position: absolute; z-index: 3; }

/* layer neve */
.xmas-snow{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.1;
}

/* SVG fiocco (leggero, non “pallini”) */

:root{
  --snowflake-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' dominant-baseline='middle' font-size='18'%3E%E2%9D%84%3C/text%3E%3C/svg%3E");
}

/* strato lontano: fiocchi piccoli, più lenti */
.xmas-snow--back{
  background-image: var(--snowflake-svg);
  background-repeat: repeat;
  background-size: 50px 50px;
  filter: blur(0.2px);
  opacity: 0.05;
  animation: snow-fall-1 60s linear infinite;
}

/* strato vicino: fiocchi un po’ più grandi, più veloci */
.xmas-snow--front{
  background-image: var(--snowflake-svg);
  background-repeat: repeat;
  background-size: 30px 30px;
  opacity: 0.08;
  animation: snow-fall-2 40s linear infinite;
}

/* animazioni (caduta + leggero drift laterale) */
@keyframes snow-fall-1{
  0%   { background-position: 0px -200px; }
  100% { background-position: 30px 900px; }
}

@keyframes snow-fall-2{
  0%   { background-position: -40px -250px; }
  100% { background-position: 10px 950px; }
}

/* accessibilità: niente animazioni se l’utente le riduce */
@media (prefers-reduced-motion: reduce){
  .xmas-snow{ display: none; }
}
