/* ------------------ VARIABILI COLORI ------------------ */
:root {
  --col-bg-page: #f7d7a4;
  --col-bg-hero-top: #c47532;
  --col-bg-hero-bottom: #8c4f24;
  --col-bg-card: #c7833e;
  --col-bg-cream: #f9e1bc;
  --col-bg-brown: #5b3217;
  --col-bg-brown-dark: #3a2212;
  --col-text-main: #3a2f2f;
  --col-text-light: #fff3d7;
  --col-accent: #f3b23c;
  --shadow-soft: 0 10px 18px rgba(0,0,0,0.25);
}

/* ------------------ BASE ------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Indie Flower", cursive;
  color: var(--col-text-main);

  /* SFONDO */
  background-image: url("img/sfondo-siraba.png");
  background-repeat: repeat-y;      /* 🔥 si ripete SOLO verso il basso */
  background-position: top center;  /* 🔝 centrato */
  background-size: 100% auto;       /* ⬛ larghezza sempre uguale, altezza libera */

  margin: 0;
  padding: 0;
}

/* contenitore fluido ma centrato */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* INTRO: box crema semitrasparente */
.intro {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  margin: 0;            /* 🔥 elimina il margine negativo */
  padding-top: 0px;    /* puoi regolare questo valore */
}

.intro-box {
  max-width: 900px; /* puoi aumentare o diminuire */
  width: 800px;
  height: 250px;
  padding: 0rem 1.5rem;
  overflow: hidden;
  
  /* 🔥 fondo crema semitrasparente */
  background: rgba(247, 168, 77, 0.575);  /* 80% opaco → regolabile */
  backdrop-filter: blur(1px);             /* leggero effetto vellutato */
  margin-top: 0px;
  margin-bottom: 5rem;
  
  border-radius: 20px;  /* morbido */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* ombra elegante */

  text-align: center;
  color: #fdf4d2;
}

.intro-box h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8.0rem, 1.8vw, 2.0rem);
  margin-bottom: 0.1rem;
  text-shadow: 2px 2px 2px #554343;
}

.intro-box p {
  margin: 1px;
  font-size: clamp(1.5rem, 1.9vw, 1.4rem);
  line-height: 1.3;
  text-shadow: 2px 2px 2px #554343;
}


/* ------------------ CATEGORIE ------------------ */

.categories {
  margin-top: -3rem;
}

.categories-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.category-card {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-label {
  position: relative;
  width: 240px;               /* puoi regolare 220–260 */
  height: 55px;               /* altezza precisa del tuo file */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -0.2rem;
  pointer-events: none; /* 👉 impedisce che l'etichetta perda centratura */
}

.category-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* nessuna deformazione */
  display: block;
  pointer-events: none;
}

.category-label span {
  position: absolute;
  z-index: 2;
  font-size: 1.45rem;
  font-weight: 600;
  color: #fdf4d2;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 2px #3a2f2f;
  pointer-events: none;
}

.category-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.category-divider {
  width: 225px;              /* 👉 stessa larghezza del contenitore */
  height: 55px;
  max-width: 100%;          /* evita che esca */
  object-fit: contain;
  display: block;
  margin: -16px auto -10px;
  pointer-events: none;
}

.category-header {
  width: 240px;            /* stessa misura del label */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px;       /* mantiene curva esterna */
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cornice sopra l’immagine */
.category-frame {
  position: absolute !important;
  top: -11% !important;
  left: -8% !important;
  width: 116% !important;
  height: 120% !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.category-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  display: block !important;
}

/* ------------------ SEZIONE VIDEO (ETNICA) ------------------ */

.video-section {
  margin-top: 4rem;
  text-align: center;
}


.video-label {
  width: 280px;               /* puoi regolare 220–260 */
  height: 75px;               /* altezza precisa del tuo file */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin: 0 auto;
}
.video-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* nessuna deformazione */
  display: block;
  pointer-events: none;
  align-items: center;
}

.video-label span {
  position: absolute;
  z-index: 2;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fdf4d2;
  letter-spacing: 0.1rem;
  pointer-events: none;
  margin-bottom: -1.2rem;
  align-self: auto;
}
.video-section h2 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  color: #f7d7a4;
  text-shadow: 2px 2px 2px #3a2f2f;
}
.category-divider-label {
  width: 260px;              /* 👉 stessa larghezza del contenitore */
  height: 70px;
  max-width: 100%;          /* evita che esca */
  object-fit: contain;
  display: block;
  margin: -16px auto -10px;
  pointer-events: none;
  margin-top: -2rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem;
}

.video-box {
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.video-frame {
  position: relative;
  border-radius: 18px;
  background-color: var(--col-bg-cream);
}

.video-inner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #000;
}

.video-inner video {
  width: 100%;
  height: 100%;
  object-fit:scale-down;
  display: block;
}

/* Cornice etnica sopra i video (stessa della galleria) */
.video-frame-img {
  position: absolute;
  inset: -12% -8% -12% -9%;
  width: 118%;
  height: 126%;
  object-fit: fill;
  pointer-events: none;
}

/* ------------------ SEZIONE FINALE ------------------ */

.bottom-section {
  margin-top: 3rem;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
}

/* ---- ORDINA SUBITO ---- */

.order-box {
  background-color: rgba(247, 168, 77, 0.575);
  padding: 1.8rem 2rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.order-kicker {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #fdf4d2;
  text-shadow: 2px 2px 3px #2a1207;
}

.order-text {
  margin: 0;
  font-size: 1.4rem;
  color: #fdf4d2;
  text-shadow: 2px 2px 3px #2a1207;
}

/* CENTRA il bottone nel box */
.order-box .wa-button {
  margin: 0 auto;
  margin-top: 0.6rem;

}

/* SOLO immagine grunge, nessun rettangolo sotto */
.wa-button {
  position: relative;
  width: 240px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  box-shadow: none;
  transition: all 0.15s ease;
}

/* Immagine grunge RUOLO DI SFONDO */
.wa-button img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.35));
}

/* RILIEVO TESTO */
.wa-button span {
  position: absolute;
  z-index: 2;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.25rem;

  color: #fde9b1;
  text-shadow: 2px 2px 3px #2a1207;
  pointer-events: none;
}

/* Effetto HOVER su tutta l'etichetta */
.wa-button:hover img {
  filter: brightness(1.13);
  transform: scale(1.03);
}

/* Effetto CLICK */
.wa-button:active img {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.order-social {
  margin-top: 0.3rem;
  font-size: 1.4rem;
}

.order-social a {
  text-decoration: none;
  color: var(--col-bg-brown-dark);
  text-shadow: 1px 1px 1px #3a2f2f;
}

.order-social a:hover {
  text-decoration: underline;
}

.order-social .divider {
  margin: 0 0.4rem;
}


.tribal-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fce1b4, #e29a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(90,40,10,0.7);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  font-size: 0.95rem;
}

/* ---- DOVE SIAMO ---- */



.location-address,
.location-hours {
  margin: 0.3rem 0;
  font-size: 1rem;
}


.location-divider {
  margin: 1.1rem 0 0.6rem;
  height: 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(250,210,140,0.9),
    rgba(250,210,140,0.9) 16px,
    transparent 16px,
    transparent 24px
  );
}

.location-footer {
  margin-top: auto;
  font-size: 0.95rem;
  text-align: right;
}


/* MOBILE */
@media (max-width: 768px) {
  .intro {
padding-top: 0%;  
}

  .where-box {
    padding: 2.5rem 1.2rem;
  }


}
  .intro-box {
    padding: 1rem 1rem;
    background: rgba(247, 168, 77, 0.575); /* un po' più trasparente su mobile */
    margin-top: -40px;
  }


  .categories {
    margin-top: -3rem;
  }

  .categories-row {
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
  }

  .category-card {
    width: 92%;
  }

  .category-label {
    width: 200px;
    height: 48px;
  }

  .category-divider {
    width: 180px;
  }

  .category-frame {
    top: -12%;
    left: -9%;
    width: 118%;
    height: 124%;
  }


  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .wa-button {
    width: 100%;
    height: 50px;
  }

  /* video: una colonna sola su mobile */
  .video-grid {
    grid-template-columns: 1fr;
  }




  /* === RIPRISTINO CATEGORIE IN ORIZZONTALE IN DESKTOP === */
@media (min-width: 1024px) {

  .categories-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;  /* 🔥 impedisce la colonna verticale */
    gap: 1.5rem !important;
  }

  .category-card {
    width: 340px !important;        /* 🔥 dimensione originale */
    flex: 0 0 340px !important;     /* 🔥 non cresce, non si allarga */
    max-width: 340px !important;
  }
}


/* RIPRISTINO VIDEO (2 colonne desktop) */
@media (min-width: 900px) {
  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
}

/* === RENDI I DUE BOX FINALE ALTA UGUALE === */
@media (min-width: 1024px) {
  .bottom-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; 
    align-items: stretch !important;        /* 🔥 i box hanno la stessa altezza */
    gap: 2rem !important;
  }

  .order-box,
  .where-wrapper {
    height: 100% !important;                /* 🔥 si estendono entrambi fino alla stessa altezza */
    display: flex;
    flex-direction: column;                 /* 🔥 per far crescere bene il contenitore */
  }
}
/* Contenitore icona + descrizione */
.tribal-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem; /* distanza tra icona e descrizione */
}

/* Descrizione sotto la singola icona */
.tribal-label {
  margin: 0;
  margin-top: 0.3rem;
  font-size: 1rem;
  color: var(--col-bg-brown-dark);
  text-align: center;
  line-height: 0.9;
  text-shadow: 0.5px 0.5px 0.5px #3a2f2f;
}

/* Spaziatura tra le 3 icone */
.order-icons {
  margin-top: 1.2rem;
  display: flex;
  gap: 2rem; /* spazio orizzontale tra le icone */
}

.social-title {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff8db;
  text-shadow: 0.9px 0.9px 0.9px #3a2f2f;
  letter-spacing: 0.04em;
}
.icons-title {
  margin: 0.5rem 0 -1.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff8db;
  text-shadow: 0.9px 0.9px 0.9px #3a2f2f;
  letter-spacing: 0.04em;
}

/* === BOX DOVE SIAMO (SENZA PNG, ULTRA STABILE) === */

.where-box {
  background-color: #6e3d1cc9;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* FOTO STABILE */
.where-photo-block img {
  width: min(300px, 80vw);
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* TESTO */
.where-text {
  text-align: center;
  color: #fff8db;
  max-width: 90%;
  
}

.where-box h2 {
  margin: 0 0 1rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  font-weight: 350;
  color: #fff8db;
  text-shadow: 2px 2px 2px #554343;
  }

.where-text p {
  margin: 0.6rem 0;
  margin-top: -1rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
  text-shadow: 0.9px 0.9px 0.9px #554343;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

  /* Alza l’intro */
  .intro {
    margin-top: -20px;
  }

  .intro-box {
    margin-top: 100px; /* REGOLABILE FINO A -60px */
    height: auto; /* evita tagli */
    width: 350px;
    padding: 0.6rem 0.4rem;
    margin-bottom: 8rem;
    
  }

  .intro-box p {
    margin: 0.1px;
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  line-height: 1.2;
  }
  

  /* Categorie */
  .categories {
    margin-top: -8rem;
  }

  .categories-row {
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
  }

  /* Foto galleria */
  .category-frame {
    width: 112%;
    height: 118%;
  }

  /* Video singola colonna */
  .video-grid {
    grid-template-columns: 1fr;
  }

.video-label {
  width: 180px;               /* puoi regolare 220–260 */
  height: 45px; 
}     
.video-section h2 {
  font-size: 1.2rem;
}
.category-divider-label {
  width: 160px;              /* 👉 stessa larghezza del contenitore */
  height: 45px;
margin-top: -1.1rem;
}

  /* Box finali verticali */
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  /* Fix fondo Dove Siamo */
  .where-box {
    padding: 2.2rem 1.3rem;
  }

  /* Fix foto Dove Siamo */
  .where-photo-block img {
    width: 85vw;
    max-width: 260px;
  }
}

/* FIX DOVE SIAMO (desktop) */
.where-box h2 {
  margin-bottom: -1rem; /* prima era -1rem */
  font-size: clas( 1.8rem, 1.8, 1.6);
  text-shadow: 1.5px 1.5px 1.5px #2e2727;
  
}

.where-text p {
  margin-top: 0.1rem;
  text-shadow: 0.9px 0.9px 0.9px #2e2727;
  font-weight: 400;
  text-shadow: 1px 1px 1px #2e2727;

}

/* RIMUOVI Classi obsolete */
.where-content {
  display: none !important;
}


@media (min-width: 1025px) {
  .intro {
    margin-top: 250px; /* regola tu */
  }
}
/* ----------------------------------
   FIX DEFINITIVO POSIZIONE INTRO
   ---------------------------------- */

/* DESKTOP (regolazione delicata) */
@media (min-width: 1025px) {
  .intro {
    margin-top: 0px;   /* 🔥 NON NEGATIVO, così non sale */
  }

  .intro-box {
    margin-top: 220px;  /* 🔥 distanza perfetta dal murales */
  }
}

/* MOBILE E TABLET */
@media (max-width: 1024px) {
  .intro {
    margin-top: 0px;  /* 🔥 elimina il movimento verso l'alto */
  }

  .intro-box {
    margin-top: 60px; /* 🔥 leggerissimo distacco dal murales */
  }

  .order-box,
  .where-box {
    max-width: 90%;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desktop: restringi i due box finali */
@media (min-width: 1025px) {
  
  .order-box,
  .where-box {
    max-width: 80%;        /* 🔥 restringe i box */
    margin-left: 95px;
  }

}

.where-photo-block img {
  width: min(300px, 80vw);
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);

  /* ✨ Cornice semplice e stabile */
  border: 6px solid #f9e1bc;      /* colore marrone */
  outline: 2px solid #5b3217;     /* crema, stile etnico */
  outline-offset: -4px;
}

/* Stile link Google Maps */
.map-link {
  color: var(--col-bg-brown-dark);
  font-size: 1.2rem;
  text-decoration: none;
  background-color: #f9e1bc;
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  display: inline-block;
  margin-top: 0.4rem;
  transition: 0.15s;
}

.map-link:hover {
  background-color: var(--col-accent);
  color: white;
  transform: scale(1.05);
}

.category-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 1.8rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}

.photo-frame {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: rgba(255,255,255,0.25);
  background-size: cover;
  background-position: center;
  border-radius: 10px;

  /* 🎨 NUOVA CORNICE crema + outline scuro */
  border: 6px solid #f9e1bc;        /* crema */
  outline: 2px solid #5b3217;       /* marrone scuro */
  outline-offset: -4px;

  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  transition: transform .25s ease;
}

.category-link {
  display: flex;
  flex-direction: column;
  align-items: center;  /* 🔥 centro orizzontale perfetto */
  text-decoration: none;
  color: inherit;
}
.category-label *,
.category-image * {
  pointer-events: none;
}

/* --- Effetto glow leggero tribale sulle categorie --- */

.category-link {
  transition: filter 0.25s ease, transform 0.25s ease;
}

.category-link:active {
  transform: scale(0.97); /* leggero "press" mobile/desktop */
}

@media (hover:hover) {
  .category-link:hover {
    filter: drop-shadow(0 0 6px rgba(139, 93, 52, 0.35)); 
    /* colore marrone caldo tribale */
  }
}

/* --- Layout responsive per le categorie --- */

.categories-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  width: 100%;
}

/* Tablet */
@media (max-width: 992px) {
  .categories-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .categories-row {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ---------------- TITOLI PAGINE CATEGORIA ---------------- */

.section-title {
  position: relative;
  width: 260px;
  height: 55px;
  margin: 1.5rem auto 2rem;
}

.section-title img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.section-title span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fdf4d2;
  letter-spacing: 0.06em;
  text-shadow: 2px 2px 2px #3a2f2f;
  pointer-events: none;
}


/* ---------------- LINK TORNA ALLA HOME ---------------- */

.back-simple {
  display: block;
  text-align: left;
  margin: 10.5rem 0 0.5rem 0;
  font-size: 1.35rem;
  color: #fdf4d2;
  text-shadow: 1px 1px 2px #3a2f2f;
  text-decoration: none;
  font-weight: 600;
  transition: opacity .25s ease;
}

.back-simple:hover {
  opacity: .75;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 600px) {
  .section-title {
    width: 200px;
    height: 45px;
    margin-top: 2.5rem;
  }

  .section-title span {
    font-size: 1.15rem;
  }

  .back-simple {
    font-size: 1.05rem;
  }
}

.video-more{
  margin-top: 1.2rem;
  text-align: center;
}

.video-more a{
  color: #f7d7a4; /* crema */
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 2px 2px 2px #3a2f2f;
  cursor: pointer;
}

.video-more a:hover{
  text-decoration: underline;
  opacity: 0.9;
}

/* TESTI SOTTO AI VIDEO */
.video-text{
  margin-top: 0.8rem;
  text-align: center;
}

.video-title{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fdf4d2; /* crema */
  text-shadow: 2px 2px 2px #3a2f2f;
}

.video-desc{
  margin: 0.3rem 0 0;
  font-size: 1rem;
  color: #fdf4d2; /* crema */
  opacity: 0.9;
  text-shadow: 1.5px 1.5px 1.5px #3a2f2f;
}
