/* ========================================================================== 
   Spazio Aperto del Benessere — Stili di base
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variabili globali
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --font-primario: 'Philosopher', Georgia, serif;
  --font-secondario: 'Jost', Arial, sans-serif;

  /* Palette di Spazio Aperto del Benessere */
  --colore-sfondo: #fff; 
  --colore-testo: #686868;

  --magenta: #e7286d;
  --magenta-chiaro: #EE6999;
  --rosa-chiaro: #fdeaf063;

  --emerald: #0d955e;
  /* --emerald-medio: #0C8E59; */
  --emerald-chiaro: #56B58E;
  --emerald-chiarissimo: #dbefe76c;

  --verde-chiaro: #c9df8a;
  --verde-pastello: #f0f7da;

  --nero:#0E0E0E;
  --white: #ffffff;
  --avorio: #f8f4f1;

/*  -- ombre -- */ 
  --ombra-sm: 0 8px 15px rgba(0, 0, 0, 0.15);
  --ombra-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --ombra-custom: 0 2px 4px #00000026, 0 4px 10px #0000001a;
  --transizione-base: 180ms ease;
}

/* Immagini, video e contenuti incorporati */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}
img, video { height: auto; }
svg { flex-shrink: 0; }
iframe {border: 0; }
/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* -- Stili di base -- */
html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* min-height: 100vh; */
  margin: 0;
  overflow-x: hidden;
  background-color: var(--colore-sfondo);
  color: var(--colore-testo);
  font-family: var(--font-secondario);
  font-size: 18px;
  line-height: 1.5;
  /* letter-spacing: 0.2px; */
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset tipografico */
h1, h2, h3, h4, h5, h6, p, figure {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  /* color: var(--magenta); */
  /* color: var(--emerald); */
  font-family: var(--font-primario);
  font-weight: 400;
}
/* -- Link -- */
a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition:
    color var(--transizione-base),
    opacity var(--transizione-base),
    text-decoration-color var(--transizione-base);
}

a:hover {
  color: inherit;
  text-decoration-color: transparent;
}

:focus-visible {
  outline-offset: 0.1875rem;
}

:focus:not(:focus-visible) {
  outline: none;
}
/* --------------------------------------------------------------------------
   Colori Utility
   -------------------------------------------------------------------------- */
  /*testi*/
  .text-grigio { color: var(--colore-testo); }
  .magenta { color: var(--magenta); }
  .nero { color: var(--nero); }
  .emerald { color: var(--emerald); }
  .verde-chiaro { color: var(--verde-chiaro); }
  .verde-pastello { color: var(--verde-pastello); }
  .white{ color: var(--white); }
  /*background*/
  .bg-emerald { background-color: var(--emerald); }
  .bg-verde-chiaro { background-color: var(--verde-chiaro); }
  .bg-verde-pastello { background-color: var(--verde-pastello); }
  .bg-bianco { background-color: var(--white); }
  .bg-magenta { background-color: var(--magenta); }
  .bg-rosa-chiaro { background-color: var(--rosa-chiaro); }

  /* prove fondini*/
  .bg-emerald-chiaro { background-color: var(--emerald-chiaro); }
  .bg-emerald-medio { background-color: var(--emerald-medio); }
  .bg-emerald-chiarissimo { background-color: var(--emerald-chiarissimo); }
  .bg-avorio { background-color: var(--avorio); }

/* --------------------------------------------------------------------------
   TIPOGRAFIA - titoli e dimensioni font
   -------------------------------------------------------------------------- */
/* .evidenziato { 
  width: fit-content;
  margin-bottom: 20px;
  padding: 5px 10px;
  color: var(--white);
  background-color: var(--emerald); 
  font-family: var(--font-primario);
} */
 /* -- h1 grande -- */  
.big-title {
  font-family: var(--font-primario);
  font-size: 70px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 40px;
}
/* -- h1 piccolo -- */  
.medium-title {
  font-family: var(--font-primario);
  font-size: 55px;
  font-weight: 400;
  letter-spacing: 1.5px;
  padding-bottom: 20px;
}
/* -- h2 oppure h3 -- */
.section-title {
  font-family: var(--font-primario);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1.5px;
  margin-bottom: 20px;

}
.section-title-sans {
  font-family: var(--font-secondario);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-bottom: 14px;
}
.small-title {
  font-family: var(--font-primario);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400; 
  margin-bottom: 20px;
}
.small-title-sans {
  font-family: var(--font-secondario);
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 1.2px;
  font-weight: 400; 
  margin-bottom: 10px;
  text-transform: uppercase;
}
.small-title-sans-bold {
  font-family: var(--font-secondario);
  font-size: 26px;
  font-weight: 700; 
}

.big-par {
  font-size:20px; 
  line-height: 1.4;
}
.light-par {
  font-size:20px; 
  line-height: 1.4;
  font-weight: 300;
}

/* -- Tipografia XL -- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .big-title {
    font-size: 60px;
    margin-bottom: 30px;
  }
  .medium-title {
    font-size: 46px;
    padding-bottom: 17px;
  }
  .section-title {
    font-size: 38px;
    margin-bottom: 35px;
  }
  .section-title-small {
    font-size: 32px;
    margin-bottom: 19px;
  }
  .small-title, .small-title-sans { font-size: 28px; }

  .small-title-sans-bold { font-size: 24px; }

  .big-par, .light-par { font-size: 19px; }
}

/* -- Tipografia LG e fasce inferiori -- */
@media (max-width: 1199.98px) {
  .big-title {
    font-size: 50px;
    margin-bottom: 25px;
  }
  .medium-title {
    font-size: 40px;
    line-height: 1.1;
    padding-bottom: 15px;
  }
  .section-title {
    font-size: 36px;
    margin-bottom: 33px;
  }
  .section-title-small {
    font-size: 30px;
    margin-bottom: 18px;
  }
  .small-title-sans,
  .small-title-sans-bold { font-size: 24px; }
  .small-title-sans-bold { font-size: 22px; }
  .big-par,
  .light-par { font-size: 18px; }
}



/* --- larghezze --- */
.wide-50 { max-width: 50%; }
.wide-70 { max-width: 70%; }
.wide-90 { max-width: 90%; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .wide-70 { max-width: 80%; }
}
@media (max-width: 991.98px) {
  .wide-50,
  .wide-70,
  .wide-90 {
    max-width: 100%;
  }
}

/* -- Liste con pallini grandi -- */
.pallini-grandi {
  list-style: none;
  padding-left: 24px;
}

.pallini-grandi > li {
  position: relative;
}

.pallini-grandi > li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0.75em;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--magenta);
  opacity: 0.5;
}


/* --------------------------------------------------------------------------
   Struttura e utility globali
   -------------------------------------------------------------------------- */

.centra-contenuto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* -- container -- */
.container {
  max-width: 1200px;
  padding: 0 20px;
  margin:0 auto;
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .container {
    padding-inline: 30px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    padding-inline: 30px;
  }
}
@media (max-width: 991.98px) {
  .container {
    padding: 0 20px;
  }
}
/* -- spazio laterale aggiuntivo per il container-fluid -- */
.container-fluid.stretto {
  --bs-gutter-x: 10rem; /* 5rem per lato */
}

@media (max-width: 1199.98px) {
  .container-fluid.stretto {
    --bs-gutter-x: 6rem; /* 3rem per lato */
  }
}

@media (max-width: 991.98px) {
  .container-fluid.stretto {
    --bs-gutter-x: 4rem; /* 2rem per lato */
  }
}

@media (max-width: 767.98px) {
  .container-fluid.stretto {
    --bs-gutter-x: 2rem; /* 1rem per lato */
  }
}

/* --- Separatore --- */
.hr-magenta {
  width: 90%;
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--magenta);
  color: inherit;
  opacity: 1;
}


/* -- Padding e margini -- */
.pt-170 {padding-top: 170px;}
.pt-140 {padding-top: 140px;}
.pt-120 {padding-top: 120px;}
.pt-100 {padding-top: 100px;}
.pt-80 {padding-top: 80px;}
.pt-60 {padding-top: 60px;}
.pt-40 {padding-top: 40px;}
.pt-20 {padding-top: 20px;}

.pb-170 {padding-bottom: 170px;}
.pb-140 {padding-bottom: 140px;}
.pb-120 {padding-bottom: 120px;}
.pb-100 {padding-bottom: 100px;}
.pb-80 {padding-bottom: 80px;}
.pb-60 {padding-bottom: 60px;}
.pb-40 {padding-bottom: 40px;}
.pb-60 {padding-bottom: 60px;}
.pb-30 {padding-bottom: 30px;}
.pb-20 {padding-bottom: 20px;}

/* -- Responsive padding e margini -- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .pt-170 { padding-top: 120px;}
    .pt-140 { padding-top: 105px;}
    .pt-120 { padding-top: 80px;}
    .pt-100 { padding-top: 70px;}
    .pt-80 { padding-top: 60px;}
    .pt-40 { padding-top: 30px;}

    .pb-170 { padding-bottom: 120px;}
    .pb-140 { padding-bottom: 105px;}
    .pb-120 { padding-bottom: 80px;}
    .pb-100 { padding-bottom: 70px;}
    .pb-80 { padding-bottom: 60px;}
    .pb-40 { padding-bottom: 30px;}
}

@media (max-width: 1199.98px) {
    .pt-170 { padding-top: 100px;}
    .pt-140 { padding-top: 90px;}
    .pt-120 { padding-top: 70px;}
    .pt-100 { padding-top: 60px;}
    .pt-80 { padding-top: 50px;}
    .pt-40 { padding-top: 30px;}

    .pb-170 { padding-bottom: 100px;}
    .pb-140 { padding-bottom: 90px;}
    .pb-120 { padding-bottom: 70px;}
    .pb-100 { padding-bottom: 60px;}
    .pb-80 { padding-bottom: 50px;}
}

@media (max-width: 991.98px) {
    .pt-170 { padding-top: 90px;}
    .pt-140 { padding-top: 80px;}
    .pt-120 { padding-top: 60px;}
    .pt-100 { padding-top: 50px;}
    .pt-80 { padding-top: 45px;}
    .pt-40 { padding-top: 25px;}

    .pb-170 { padding-bottom: 90px;}
    .pb-140 { padding-bottom: 80px;}
    .pb-120 { padding-bottom: 60px;}
    .pb-100 { padding-bottom: 50px;}
    .pb-80 { padding-bottom: 45px;}

    .mt-80 { margin-top: 60px;}
    .mt-120 { margin-top: 90px;}
    .mb-80 { margin-bottom: 60px;}
    .mb-100 { margin-bottom: 80px;}
    .mb-120 { margin-bottom: 90px;}
    .mb-140 { margin-bottom: 120px;}

}

@media (max-width: 767.98px) {
    .pt-170 { padding-top: 70px;}
    .pt-140 { padding-top: 60px;}
    .pt-120 { padding-top: 50px;}
    .pt-100 { padding-top: 40px;}
    .pt-80 { padding-top: 30px;}
    .pb-170 { padding-bottom: 70px;}
    .pb-140 { padding-bottom: 60px;}
    .pb-120 { padding-bottom: 50px;}
    .pb-100 { padding-bottom: 40px;}
    .pb-80 { padding-bottom: 30px;}
    .pb-40 { padding-bottom: 25px;}
    .mt-40 { margin-top: 25px;}
    .mt-80 { margin-top: 50px;}
    .mb-140 { margin-bottom: 100px;}
}
@media (max-width: 575.98px) {
    .mt-120 {margin-top: 70px;}
    .mb-120 {margin-bottom: 70px;}
}

/* ========================================================================== 
   Breakpoint responsive — Bootstrap 5

   Approccio desktop-first:
   Desktop = da 1200px (stili di base, senza media query)
   lg  = fino a 1199.98px
   md  = fino a 991.98px
   sm  = fino a 767.98px
   xs  = fino a 575.98px
   ========================================================================== */

/* --------------------------------------------------------------------------
   NAVBAR - HEADER
   -------------------------------------------------------------------------- */
.header-main {
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.122);
}

.navbar-custom {
  padding: 12px 0;
}

.header-logo img {
  width: 200px;
}

.navbar-menu {
  width: 100%;
}

.header-link {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background-color: transparent;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-origin: content-box;
  background-position: left calc(100% + 5px);
  background-size: 0 1px;
  color:var(--colore-testo);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.84px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  transition: color var(--transizione-base), background-size var(--transizione-base);
}

.header-link.dropdown-toggle {
  white-space: nowrap;
}

.header-link.active,
.header-link:hover,
.header-link:focus-visible {
  color: var(--magenta);
  background-color: transparent;
  background-size: 100% 1px;
}

.header-link:focus-visible {
  outline: none;
}

.header-toggler {
  color: var(--emerald);
  border-color: currentColor;
}

.header-main .dropdown-menu {
  --bs-dropdown-link-hover-bg: transparent;
  border: 0;
  border-radius: 0;
}

@media (min-width: 1400px) {
  .header-collapse {
    min-width: 0;
  }

  .header-side {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
  }

  .navbar-menu {
    width: auto;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
  }

  .header-menu-logo {
    flex-shrink: 0;
    margin-inline: 34px;
  }

  .navbar-menu > .nav-item > .header-link {
    padding-inline: 10px;
    font-size: 14px;
    white-space: nowrap;
  }

}

@media (max-width: 1399.98px) {
  .header-inner {
    max-width: none;
    gap: 12px;
    padding-inline: 16px;
  }

  .header-inner > .header-logo {
    flex: 1;
    min-width: 0;
  }

  .header-inner > .header-logo img {
    width: 160px;
    margin-inline: auto;
  }

  .header-toggler {
    flex-shrink: 0;
  }

  .header-link.dropdown-toggle {
    text-align: left;
  }

  .header-collapse {
    margin-top: 12px;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
  }

}


@media (max-width: 767.98px) {
  .header-link {
    font-size: 14px;
  }
}



/* --------------------------------------------------------------------------
   Pulsanti
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-secondario);
  font-weight: 600;
}
.btn-magenta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  border: 1px solid var(--magenta);
  border-radius: 100px;
  font-size: 12px;
  line-height: 1.7em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--ombra-sm);
  background-color: var(--magenta);
  color: var(--white);
  transition:
    background-color var(--transizione-base),
    border-color var(--transizione-base),
    box-shadow var(--transizione-base);
}

.btn-magenta:hover,
.btn-magenta:focus-visible {
  background-color: var(--magenta-chiaro);
  border-color: var(--magenta-chiaro);
  color: var(--white);
}

.btn-tondo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    padding: 24px;
    border-radius: 50%;
    font-family: var(--font-primario);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
    box-shadow: var(--ombra-sm);
}


.btn-magenta:hover,
.btn-magenta:focus-visible,
.btn-tondo:hover,
.btn-tondo:focus-visible {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.22);
}

.btn-tondo:focus-visible {
    outline: 2px solid;
    outline-offset: 4px;
}

.btn-tondo-verde {
    background-color: var(--emerald);
    color: var(--white);
    /* border: 1px solid var(--emerald); */
}

.btn-tondo-verde:hover,
.btn-tondo-verde:focus-visible {
    background-color: var(--emerald-chiaro);
    color: var(--white);
}

.btn-tondo-magenta{
    background-color: var(--white);
    color: var(--magenta);
}

.btn-tondo-magenta:focus-visible {
    outline-color: var(--magenta);
}

.btn-tondo-magenta:hover,
.btn-tondo-magenta:focus-visible {
    background-color: var(--magenta);
    color: var(--white);
}

.btn-tondo-outline {
    color: var(--emerald);
    background-color: var(--white);
    border: 1px solid var(--emerald);
}

.btn-tondo-outline:hover,
.btn-tondo-outline:focus-visible {
    color: var(--white);
    background-color: var(--emerald);
}

/* torna su */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 90;

  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background-color: var(--emerald);
  color: var(--white);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .btn-magenta {
    font-size: 11px;
    line-height: 1.6em;
  }

    .btn-tondo {
        width: 150px;
        height: 150px;
        padding: 20px;
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .btn-tondo {
        width: 130px;
        height: 130px;
        padding: 16px;
        font-size: 18px;
    }
}

/* --------------------------------------------------------------------------
   UTILITY GLOBALI
   -------------------------------------------------------------------------- */
.image-ovale {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 999px;
}

.shape-top-bianco {
    background-image: url('../assets/images/chi-siamo/top-shape-bianco.svg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}

/* --------------------------------------------------------------------------
   HOME
   -------------------------------------------------------------------------- */

/* HERO OVALE */
.hero-ovale {
    position: relative;
    display: flex;
    align-items: center;

    height: 750px;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.hero-home {
    background-image:
        linear-gradient(rgb(0 0 0 / 25%), rgb(0 0 0 / 25%)),
        url('../assets/images/home/home-hero-1920x800.webp');
}

/* CONTENUTO HERO */
.hero-ovale .hero-content {
    position: relative;
    z-index: 2;
}

.hero-ovale .hero-content > .row {
    align-items: flex-start;
}

.hero-ovale .hero-action {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-ovale .hero-action {
        padding-top: 40px;
    }
}

/* BORDO INFERIORE SVG */
.hero-ovale::after {
    content: "";
    position: absolute;
    z-index: 1;

    left: 0;
    bottom: -1px;
    width: 100%;
    aspect-ratio: 1920 / 155;

    background-image: url('../assets/images/home/bottom-shape-avorio.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;

    pointer-events: none;
}

/* TABLET */
@media (max-width: 991.98px) {
    .hero-ovale {
        height: auto;
    }

    .hero-ovale .big-title {
        font-size: 48px;
        margin-bottom: 24px;
    }

    .hero-ovale .hero-content {
        padding-block: 80px 90px;
    }
}

/* SMARTPHONE */
@media (max-width: 767.98px) {
    .hero-ovale .big-title {
        font-size: 36px;
    }

    .hero-ovale .hero-content {
        padding-block: 30px 70px;
    }
}

/* HERO DRITTA */
.hero-dritta {
    display: flex;
    align-items: center;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-chi-siamo {
    background-image:
        linear-gradient(rgb(0 0 0 / 25%), rgb(0 0 0 / 25%)),
        url('../assets/images/chi-siamo/chi-siamo-hero.webp');
}

@media (max-width: 991.98px) {
    .hero-dritta {
        height: auto;
        padding-block: 80px;
    }

    .hero-dritta .big-title {
        font-size: 48px;
        margin-bottom: 24px;
    }
}

@media (max-width: 767.98px) {
    .hero-dritta {
        padding-block: 50px;
    }

    .hero-dritta .big-title {
        font-size: 36px;
    }
}

.introduzione-spazio {
    --bs-gutter-x: 5rem;
    align-items: center;
}

.introduzione-spazio .big-par + .big-par {
    margin-top: 24px;
}

.eventi-container {
    background-image: url('../assets/images/home/spazioaperto-albero.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 55% auto;
}

.eventi-intro {
    align-items: center;
}

.eventi-intro .medium-title {
    padding-bottom: 0;
}

.eventi-action {
    text-align: right;
}

.eventi-lista {
    --bs-gutter-x: 5rem;
}

/* --------------------------------------------------------------------------
   Stile condiviso delle anteprime eventi e attività.
   -------------------------------------------------------------------------- */
.evento-preview,
.attivita-preview {
    text-align: center;
    text-decoration: none;
}

.evento-preview > h2,
.evento-preview > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.evento-preview > h2 {
    -webkit-line-clamp: 2;
}

.evento-preview > p {
    -webkit-line-clamp: 3;
}

.evento-image,
.attivita-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 999px;
    margin-bottom: 45px;
    box-shadow: var(--ombra-sm);
}

.evento-image img,
.attivita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .evento-image img,
    .attivita-image img {
        transition: transform 300ms ease;
    }

    .evento-preview:hover .evento-image img,
    .evento-preview:focus-visible .evento-image img,
    .attivita-preview:hover .attivita-image img,
    .attivita-preview:focus-visible .attivita-image img {
        transform: scale(1.04);
    }
}

.evento-read-more,
.attivita-read-more {
    display: block;
    color: var(--emerald);
    text-decoration: underline;
    margin-top: 8px;
}

.evento-preview:hover .evento-read-more,
.evento-preview:focus-visible .evento-read-more,
.evento-preview:hover > h2,
.evento-preview:focus-visible > h2,
.attivita-preview:hover .attivita-read-more,
.attivita-preview:focus-visible .attivita-read-more,
.attivita-preview:hover > h2,
.attivita-preview:focus-visible > h2 {
    color: var(--magenta);
}

/* ----Restiamo in contatto ------ */
.broadcast-contatto {
    display: flex;
    align-items: center;
    gap: 12px;
}


.newsletter-form .form-control {
    border-radius: 50px;
    background-color: transparent;
    border: 0.8px solid #b3b3b3;
    padding: 14px 24px;
    margin-bottom: 24px;
}

.newsletter-form .form-control:is(:autofill, :-webkit-autofill) {
    box-shadow: inset 0 0 0 1000px var(--white);
}


/* --------------------------------------------------------------------------
   CHI SIAMO
   -------------------------------------------------------------------------- */

/* ----La nostra storia ------ */
.storia-container {
    background-image: url('../assets/images/chi-siamo/spazioaperto-albero.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60% auto;
}

.storia-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.storia-gallery img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1;
    object-fit: cover;
}

.storia-gallery img:first-child,
.storia-gallery img:last-child {
    grid-row: 1 / span 2;
    aspect-ratio: auto;
}

.storia-gallery img:first-child {
    grid-column: 1;
}

.storia-gallery img:last-child {
    grid-column: 4;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
    padding-block: 100px 32px;
    background-image: url('../assets/images/footer/footer-background-1920x600.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 1.5fr);
    column-gap: 24px;
}

.footer-logo {
    padding-right: 30px;
}

.footer-logo img {
    max-width: 240px;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 40px;
    row-gap: 5px;
    padding-top: 50px;
}

.footer-bottom p {
    font-size: 16px;
}

.footer-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.footer-contacts,
.footer-information {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 1199.98px) {
    .site-footer {
        font-size: 14px;
    }

    .footer-title {
        font-weight: 400;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-footer {
        padding-block: 80px 30px;
    }
}

/* --------------- footer TABLET ------------------------ */
@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 50px;
        row-gap: 24px;
    }

    .site-footer {
        padding-block: 50px 24px;
    }

    .footer-logo {
        grid-column: 1 / -1;
        padding-right: 0;
        padding-bottom: 15px;
        border-bottom: 1px solid rgb(255 255 255 / 20%);
    }

    .footer-logo img {
        width: 220px;
    }

    .footer-contacts,
    .footer-information {
        gap: 6px;
    }

    .footer-bottom {
        padding-top: 10px;
    }
}

/* ------------- footer MOBILE --------------------- */

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-logo img {
        max-height: 80px;
    }
}

/* ==========================================================================
   ANIMAZIONI
   ========================================================================== */



/* Accessibilità: riduzione del movimento per i componenti personalizzati. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn-magenta,
  .btn-tondo,
  .header-link,
  .back-to-top {
    transition: none;
  }
}
