/* ! Base Style */
/* ----------------------------------------------------------------------------------- */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #FAF9F6;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}


a {
  text-decoration: none;
  color: #F75E47
}

p {
  line-height: 1.3
}


/* ! Title System */
/* ----------------------------------------------------------------------------------- */

.text-justify {
  text-align: justify;
}


.text-H {
  font-size: 6rem;
}

.text-0 {
  font-size: 5rem;
}

h1,
.text-1 {
  font-size: 3.4rem;
}

h2,
.text-2 {
  font-size: 2.2rem;
}

h3,
.text-3 {
  font-size: 1.5rem;
}

h4,
p,
.text-4 {
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .text-0 {
    font-size: 4rem
  }
}

.sottotitolo {
  letter-spacing: 7px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .sottotitolo {
    font-size: 1rem;
  }
}

.section-eyebrow {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  /* ≈ text-xs */
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* ≈ tracking-[0.2em] */
  margin-bottom: 1.5rem;
  /* ≈ mb-6 */
}


/* ===== HERO TITLE ===== */
.hero-title {
  font-family: serif;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.7rem;
    /* ~ text-8xl */
  }
}

.hero-title-footer {
  font-family: serif;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  font-size: 2.7rem;
  text-align: center;
}

/* ===== ACCENT WORD ===== */
.hero-title__accent {
  font-style: italic;
  color: #92400e;
  /* amber-800 */
}

/* ===== HERO DESCRIPTION ===== */
.hero-description {
  font-size: 1.25rem;
  /* text-xl */
  color: #475569;
  /* slate-600 */
  margin-bottom: 2.5rem;
  line-height: 1.7;

  font-weight: 300;
}


.text-col {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 1.5rem 0;
  background: linear-gradient(90deg, black 0%, #ff9932 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-red {
  background: linear-gradient(90deg, black 0%, #ff3232 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-orange {
  background: linear-gradient(90deg, rgb(255, 255, 255) 0%, #bb5d00 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-orange-2 {
  background: linear-gradient(90deg, rgb(0, 0, 0) 0%, #bb5d00 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-orange-3 {
  background: linear-gradient(90deg, rgb(0, 0, 0) 0%, #bb5d00 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow-label {
  display: block;
  color: #b45309;
  /* amber-700 */
  font-weight: 700;
  font-size: 0.75rem;
  /* text-xs */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  /* mb-6 */
}

.text-narrative {
  color: #94a3b8;
  /* slate-400 */
  font-size: 1.125rem;
  /* text-lg */
  line-height: 1.7;
  /* leading-relaxed */
}

.text-center {
  text-align: center;
}


/* ! Button system */
/* ----------------------------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background-color: #92400e;
  /* amber-800 */
  color: #ffffff;

  padding: 1rem 2.5rem;
  /* py-4 px-10 */
  border-radius: 9999px;
  /* pill */

  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: #78350f;
  /* amber-900 */
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-glass {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: #1f2937;
  /* slate-800 */
  border: 1px solid #e5e7eb;
  /* slate-200 */

  padding: 1rem 2.5rem;
  /* py-4 px-10 */
  border-radius: 9999px;

  font-weight: 600;
  text-decoration: none;

  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-glass:hover {
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}




/* ! Blocks */
/* ----------------------------------------------------------------------------------- */

.img-shadow-soft {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 10px 20px -15px rgba(0, 0, 0, 0.15);
}


.cover {
  background: #ffffff;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.cover__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(bridge.jpg) center center;
  background-size: cover;
  z-index: 0;
  border: 1px solid #ffffff
}

.cover__bg:after {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 100%);
  ;
  background-size: cover;
}

.cover__content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.logo-home {
  max-width: 50%;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .logo-home {
    max-width: 98%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cover-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  /* opzionale, per respiro su mobile */
}


.wp-block-media-text__media {
  border-radius: 20px;
  overflow: hidden;
}


/* Immagine: base 
.wp-block-media-text__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s ease;
}

/* Hover: zoom morbido 
.wp-block-media-text__media:hover img {
  transform: scale(1.05);
}

/* Hover: leggero lift + ombra più profonda (opzionale ma bello) 
.wp-block-media-text__media:hover {
  box-shadow: 0 35px 70px -20px rgba(0, 0, 0, 0.35);
}
*/

.custom-hero {
  display: flex;
  gap: 40px;
}

@media (max-width: 768px) {
  .custom-hero {
    flex-direction: column;
  }
}

.map-responsive {
  width: 40%;
  aspect-ratio: 4 / 3;
  /* mantiene proporzione 600x450 */
  margin-right: 100px;
}

.map-responsive iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-responsive {
    width: 100%;
    margin-right: 0px;
  }
}


/* ! Cards */
/* ----------------------------------------------------------------------------------- */


.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.card {
  background: #eee;
  border-radius: 15px;
  overflow: hidden;
  /* IMPORTANTISSIMO: taglia ai bordi */
  display: flex;
  flex-direction: column;
  padding: 0;
  /* niente padding globale */
  text-align: left;
  /* di solito sta meglio per card editoriali */
}

/* 1) Titolo: stessa altezza tra le card */
.card__title {
  /* regola finché i titoli vanno su 2-3 righe uguali */
  margin: 0 0 12px 0;
  font-family: serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: #0f172a;
}

/* 2) Testo: può crescere */
.card__text {
  flex: 1;
  /* prende lo spazio “variabile” */
  font-size: 0.875rem;
  /* ≈ text-sm */
  line-height: 1.6;
  /* ≈ leading-relaxed */
  color: #64748b;
  /* slate-500 */
  margin-bottom: 1rem;
  /* ≈ mb-4 */
}


/* 3) Bottone: sempre alla stessa quota */
.card__btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* 4) Immagine: stessa altezza/ratio in tutte */
.card__img {
  height: 320px;
  /* come h-80 */
  aspect-ratio: auto;
  /* non serve più */
  border-radius: 0;
  /* deve seguire la card, non avere un raggio suo */
  overflow: hidden;
  margin-bottom: 0 !important;
}

.card__img-H {
  height: 520px;
  margin-bottom: 0 !important;
}

.card__img-F {
  height: 600px;
  /* come h-80 */
  aspect-ratio: auto;
  /* non serve più */
  border-radius: 0;
  /* deve seguire la card, non avere un raggio suo */
  overflow: hidden;
  margin-bottom: 0 !important;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.card__img-F img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

/* zoom su hover della card */
.card:hover .card__img img {
  transform: scale(1.1);
}

.card:hover .card__img-F img {
  transform: scale(1.1);
}


/* responsive */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* padding solo al contenuto testuale */
.card__body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}


/* ! Animation */
/* ----------------------------------------------------------------------------------- */


.fade-in {
  opacity: 0;
  transform: translateY(1rem);
}

.text-reveal {
  transform: translateY(1rem);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.fade-up {
  opacity: 0;
  transform: translateY(5rem);
}

/* ! Slider */
.splide {
  margin-top: 100px;
}

.splide__slide {
  padding: 30px;
}

/* ! Tiles */

.tiles {
  min-height: 500px;
  border-radius: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: block;
}

.tiles__label {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #ffffff;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
  border-radius: 5px;
  padding: 5px;
  font-weight: 700;
}

.tiles__content {
  padding: 30px;
  background: rgb(255, 255, 255);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.tiles-livio {
  background: url(img/tecno1.png);
  background-repeat: no-repeat;
  background-position: center 120%;
  background-size: cover;
  background-position-y: 100px;
}

.tiles-gianpaolo {
  background: url(img/tecno2.png);
  background-repeat: no-repeat;
  background-position: center 120%;
  background-size: cover;
  background-position-y: 100px;
}

.tiles-christian {
  background: url(img/tecno3.png);
  background-repeat: no-repeat;
  background-position: center 120%;
  background-size: cover;
  background-position-y: 100px;
}

/*MODULO DI CONTATTO___________________________________________
_______________________________________________________________*/

/* Container principale stile Scheda Larga */
.modern-form-container.card-wide {
  max-width: 850px;
  /* Più largo per un look orizzontale */
  margin: 40px auto;
  padding: 50px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Gestione Riga Nome + Email */
.form-row {
  display: flex;
  gap: 25px;
  /* Spazio tra i due campi */
  margin-bottom: 5px;
}

.flex-item {
  flex: 1;
  /* Forza i campi a dividersi lo spazio 50/50 */
}

/* Spaziatura gruppi */
.form-group {
  margin-bottom: 25px;
}

/* Stile Input e Textarea */
.modern-form-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 0px;
  color: #d1d1d1;
}

.modern-form-container input[type="text"],
.modern-form-container input[type="email"],
.modern-form-container textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #f0f0f0;
  /* Bordo leggermente più spesso */
  border-radius: 10px;
  background-color: #fbfbfb;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Effetto Focus */
.modern-form-container input:focus,
.modern-form-container textarea:focus {
  outline: none;
  border-color: #0073aa;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 115, 170, 0.08);
}

/* Pulsante Invia */
.modern-form-container input[type="submit"] {
  width: auto;
  /* Non occupa più tutta la larghezza */
  min-width: 200px;
  background-color: #0073aa;
  color: white;
  padding: 16px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modern-form-container input[type="submit"]:hover {
  background-color: #005a87;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 115, 170, 0.2);
}

/* Mobile Responsive: Sotto i 600px i campi tornano uno sotto l'altro */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modern-form-container.card-wide {
    padding: 25px;
  }
}





/* ! FORM CONTATTO HOMEPAGE */

/* ===== Contenitore sezione (come il tuo main+section) ===== */
.section-panel {
  max-width: 80rem;
  /* ~max-w-7xl */
  margin: 0 auto;
  padding: 6rem 1.5rem;
  /* py-24 px-6 */
}

.panel-surface {
  background: #fff;
  border-radius: 3rem;
  padding: 1.5rem;
  /* p-12 */
  border: 1px solid #f1f5f9;
  /* slate-100 */
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

@media (min-width: 1024px) {
  .panel-surface {
    padding: 5rem;
    /* lg:p-20 */
  }
}

/* ===== Titoli sopra al form ===== */
.form-intro {
  text-align: center;
  max-width: 42rem;
  /* ~max-w-2xl */
  margin: 0 auto 2rem auto;
  /* mb-16 */
}

.form-title {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 2.25rem;
  /* text-4xl */
  font-weight: 700;
  margin: 0 0 1rem 0;
  /* mb-4 */
  color: #0f172a;
  /* slate-900 */
}

.form-subtitle {
  margin: 0;
  color: #64748b;
  /* slate-500 */
  line-height: 1.6;
}

/* ===== Griglia form ===== */
.modern-form {
  max-width: 56rem;
  /* ~max-w-4xl */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  /* gap-8 */
}

@media (min-width: 768px) {
  .modern-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Campo che deve occupare due colonne (textarea, submit, ecc.) */
.form-span-2 {
  grid-column: 1 / -1;
}

/* ===== Gruppi campo ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* ~space-y-2 */
}

.form-label {
  font-size: 0.75rem;
  /* text-xs */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  /* slate-400 */
}

/* ===== Input / textarea (stesso stile) ===== */
.form-control input[type="text"],
.form-control input[type="email"],
.form-control input[type="tel"],
.form-control input[type="url"],
.form-control textarea {
  width: 100%;
  background: #f8fafc;
  /* slate-50 */
  border: none;
  border-radius: 1rem;
  /* rounded-2xl */
  padding: 1rem;
  /* p-4 */
  outline: none;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.4;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

/* Focus ring ambra */
.form-control input:focus,
.form-control textarea:focus {
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.35);
  /* amber-700-ish */
  background: #ffffff;
}

/* Placeholder */
.form-control input::placeholder,
.form-control textarea::placeholder {
  color: #94a3b8;
}

/* ===== Bottone submit ===== */
.form-submit .wpcf7-submit {
  width: 100%;
  background: #0f172a;
  /* slate-900 */
  color: #fff;
  border: none;
  border-radius: 1rem;
  /* rounded-2xl */
  padding: 1.25rem 1rem;
  /* py-5 */
  font-weight: 800;
  cursor: pointer;

  transition: transform 150ms ease, background-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  /* shadow-lg */
}

.form-submit .wpcf7-submit:hover {
  background: #b45309;
  /* amber-700 */
  transform: translateY(-1px);
}

/* ===== Messaggi CF7 (opzionale ma utile) ===== */
.wpcf7-not-valid-tip {
  font-size: 0.875rem;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1.5rem 0 0;
  border-radius: 1rem;
}



/* ! Custom Header */

/* ===== NAV BAR ===== */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  padding: 1.5rem 1.5rem;
  /* py-6 px-6 */
  transition: all 500ms ease;

  background: transparent;
  /* come il tuo esempio tailwind */
}

.logged-in .header-container {
  top: 32px;
  /* admin bar */
}

/* contenitore interno */
.header {
  width: 100%;
  max-width: 80rem;
  /* ~max-w-7xl */
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}



/* ===== MENU DESKTOP ===== */
.header__menu {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* space-x-1 */
}

.header__menu li {
  margin: 0;
}

.header__menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.5rem 1rem;
  /* px-4 py-2 */
  border-radius: 9999px;

  font-size: 0.875rem;
  /* text-sm */
  font-weight: 700;
  /* font-semibold */
  letter-spacing: 0.06em;
  /* tracking-wide */
  text-transform: uppercase;

  color: #475569;
  /* slate-600 */
  text-decoration: none;

  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.header__menu a:hover {
  color: #b45309;
  /* amber-700 */
  background: #f8fafc;
  /* slate-50 */
}

/* ===== HAMBURGER (mobile only) ===== */
.header__hamburger {
  display: none;
  position: relative;
  z-index: 110;

  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding-top: 10px;
  color: #2a150f;
  /* slate-900 */
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 300ms ease, opacity 300ms ease;
  transform-origin: left center;
}

/* ===== MOBILE LAYOUT ===== */
@media (max-width: 767px) {
  .header__hamburger {
    display: block;
  }

  /* nascondi menu desktop e crea overlay */
  .header__menu {
    position: fixed;
    inset: 0;
    padding-top: 90px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;


    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 250ms ease, transform 250ms ease;
  }

  .header__menu a {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }

  /* menu aperto */
  .menu-open .header__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* X animation */
  .menu-open .header__hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-open .header__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .header__hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* blocca scroll pagina quando menu aperto */
  body.menu-open {
    overflow: hidden;
  }

}

/* stato normale (alto, trasparente) */
.header-container {
  padding: 1.5rem 1.5rem;
  /* alta */
  background: transparent;
  transition: background-color 500ms ease, padding 500ms ease, box-shadow 500ms ease, border-color 500ms ease;
}

/* quando scrolli (più bassa, bianca/trasparente con blur) */
.header-container.is-scrolled {
  padding: 0.75rem 1.5rem;
  /* si riduce in altezza */
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  /* slate-200 */
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Mobile */
@media (max-width: 768px) {
  .header a.hero-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {

  /* overlay menu: sempre pannello pieno */
  body.menu-open .header__menu {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9999 !important;
  }

  /* header scrolled: quando menu è aperto, niente vetro */
  body.menu-open .header-container.is-scrolled {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* hamburger sempre sopra l’overlay */
  body.menu-open .header__hamburger {
    z-index: 10001 !important;
  }

  /* logo opzionale sopra (se vuoi cliccabile) */
  body.menu-open .header__logo {
    z-index: 10001 !important;
  }
}


.video-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.video-wrap video {
  width: 55%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .video-wrap {
    justify-content: center;
    align-items: center;
  }

  .video-wrap video {
    width: 100%;
  }
}


/* ! Accordion */

.acc-title {
  cursor: pointer;
}

.acc-panel {
  max-height: 1px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(.215, .61, .355, 1);
  border-radius: 50px;
}

.acc-panel p {
  padding: 20px;
}

.acc-panel--show {
  max-height: 800px;
}



/* ===== SEZIONE ===== */
.anima-section {
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 6rem;
}

/* ===== HEADER ===== */
.anima-header {
  text-align: center;
}

.anima-divider {
  width: 6rem;
  height: 4px;
  background: #b45309;
  margin: 0 auto 2rem;
  border: none;
}

/* ===== GRID ===== */
.anima-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* ===== IMMAGINI ===== */
.anima-img {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
}

.anima-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.anima-img:hover img {
  transform: scale(1.1);
}

/* dimensioni */
.anima-img.large {
  grid-column: span 8;
  height: 500px;
}

.anima-img.small {
  grid-column: span 4;
  height: 500px;
}

/* seconda riga */
.anima-img.large:nth-of-type(4) {
  height: 400px;
}

.anima-img.small:nth-of-type(3) {
  height: 400px;
}

/* ===== OVERLAY ===== */
.anima-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  opacity: 0;
  transition: opacity .5s ease;
}

.anima-img:hover .anima-overlay {
  opacity: 1;
}

.anima-overlay h4 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: .5rem;
  font-family: serif;
}

.anima-overlay p {
  color: #fde68a;
  font-style: italic;
  font-size: .9rem;
}

/* ===== BADGE ===== */
.anima-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  border: 2px solid #fff;
  padding: .75rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .7rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .4s ease;
}

.anima-img:hover .anima-badge {
  opacity: 1;
}

/* ===== OVERLAY LIGHT ===== */
.anima-light-overlay {
  position: absolute;
  inset: 0;
  background: rgba(120, 53, 15, 0.1);
  transition: background .4s ease;
}

.anima-img:hover .anima-light-overlay {
  background: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .anima-grid {
    grid-template-columns: 1fr;
  }

  .anima-img.large,
  .anima-img.small {
    grid-column: span 1;
    height: 320px;
  }

  .anima-section {
    padding: 4rem 1.5rem;
    border-radius: 2.5rem;
  }
}