/* RESET BASE */ 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
html, body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #eac1dc;
  color: #3a3a3a;
}

/* LINK GLOBALI */
a {
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #873260;
  text-decoration: underline;
}

a.text_inline_link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a.text_inline_link:hover {
  color: #6f5aa7;
  text-decoration: underline;
}

.text_br_link {
  display: inline-block;
  margin-top: 1em;
  color: #b72f68;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.text_br_link:hover {
  color: #6f5aa7;
}

/* ------------------------------
             INDEX
------------------------------ */
/* HEADER */
/* NAVBAR */
.navbar {
  width: 100%;
  background-color: #333;
  padding: 1.3em 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 3em;
}

.navbar a {
  color: whitesmoke;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  text-decoration: underline;
}

.site-name {
  text-transform: uppercase;
  font-weight: bold;
}

/* Selettore lingua + icona ℹ️ */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-switcher select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

/* ACCESSIBILITÀ: label per screen reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* HERO SECTION */
.hero {
  width: 100vw;
  height: 97vh;
  background-image: url("../img/hero.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-color: #f6e1ee;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero-text {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.2em 2em;
  border-radius: 15px;
  max-width: 90%;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.hero-text h1 {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.hero-text p {
  font-size: 1.6em;
  margin: 0;
}

/* MAIN */
main {
  display: block;
  width: 100%;
  padding-bottom: 4em;
}

/* INTRO SECTION */
.intro {
  margin: 0 auto;
  padding: 5.5em 2em 2em 2em; 
  max-width: 1100px;
  text-align: center;
}

.intro-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3em;
  font-weight: 700;
  color: #6f5aa7;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.08);
  letter-spacing: 0.03em;
  border-bottom: 2px solid #b72f68;
  display: inline-block;
  line-height: 1.1;
  padding-bottom: 0.1em;
  text-align: center;
  margin-bottom: 0.8em;
}

.intro-h2 a {
  color: #6f5aa7;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.intro-h2 a:hover {
  color: #5a005c;
  text-decoration: underline;
}

.intro-p {
  padding-bottom: 0.5em;
  font-size: 1.2em;
  text-align: justify; 
  line-height: 1.6;  
}

/* SEZIONE COSA PUOI TROVARE */
.cosa-trovare {
  padding: 3em 2em;
  background-color: #f6e1ee;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  text-align: center;
  max-width: 1100px;
  min-height: 650px;
  margin: 2.5em auto 0 auto;
  border-left: 4px solid #6f5aa7;
}

.cosa-trovare h2 {
  font-size: 2em;
  color: #6f5aa7;
  margin-bottom: 1.5em;
}

/* CONTAINER DELLE CARD */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
}

/* STILE CARD */
.soft-card {
  background-color: #fff0f7;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 1.5em 1.2em;
  min-width: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 30%;
  text-decoration: none;
  color: inherit;
}

.soft-card h3 {
  font-size: 1.2em;
  margin-bottom: 0.6em;
  color: #b72f68;
}

.soft-card p {
  font-size: 0.95em;
  line-height: 1.4;
  color: #3a3a3a;
  pointer-events: none;
}

.soft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.card-emoji {
  font-size: 2.2em;
  margin-bottom: 0.4em;
}

/* BOX STRUMENTI */
.strumenti-section {
  background-color: #f6e1ee;
  border-left: 4px solid #6f5aa7;
  padding: 2em;
  margin: 2.5em auto 0 auto;
  max-width: 1100px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.strumenti-section h2 {
  color: #6f5aa7;
  font-size: 1.8em;
  margin-bottom: 1em;
}

.strumenti-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  justify-content: center;
  margin-top: 1em;
}

.strumenti-card {
  background-color: #fff0f7;
  border-radius: 10px;
  padding: 1em 1.5em;
  text-decoration: none;
  color: #3a3a3a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.strumenti-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  background-color: #fff0f7;
  text-decoration: none;
  color: #6f5aa7;
}

.strumenti-card span {
  pointer-events: none;
}

/* Strumenti Responsive: riquadri in colonna */
@media (max-width: 768px) {
  .strumenti-grid {
    flex-direction: column;
    align-items: center;
  }

  .strumenti-card {
    width: 100%;
    justify-content: center;
  }
}

/* LINGUAGGIO BOX */
.linguaggio-box {
  background-color: #f6e1ee;
  border-left: 4px solid #6f5aa7;
  padding: 1.5em;
  margin: 4em auto 0 auto;
  max-width: 1100px;
  border-radius: 12px;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
}

.linguaggio-box h2 {
  color: #6f5aa7;
  margin-bottom: 0.6em;
}

.linguaggio-box a {
  display: inline-block;
  margin-top: 1em;
  color: #b72f68;
  font-weight: bold;
  text-decoration: none;
}

.section-spacing {
  margin-top: 4em;
}

/* RESPONSIVE: card in colonna schermi piccoli */
@media (max-width: 1024px) {
  .soft-card {
    flex: 0 1 45%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .soft-card {
    flex: 0 1 100%;
  }

  .hero-text h1 {
    font-size: 2.2em;
  }

  .hero-text p {
    font-size: 1.1em;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1em;
  }
}




/* ------------------------------------------
           STILI PER PAGINE INTERNE 
-------------------------------------------*/

/* ------------------------------
   STILI TESTUALI e HEADINGS
------------------------------ */

/* Titolo principale pagine interne */
.page-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6em;
  font-weight: 700;
  color: #6f5aa7;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
  border-bottom: 2px solid #b72f68;
  display: block;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
  margin-bottom: 1em;
  padding-bottom: 0.2em;
  text-align: center;
}

/* ------------------------------
      LINK (inline, br)
------------------------------ */
  
/*inline link generali*/
a.text-inline-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a.text-inline-link:hover {
  color: #6f5aa7;
  text-decoration: underline;
}

/*br link generali*/
a.text-br-link {
  display: inline-block;
  margin-top: 1em;
  color: #b72f68;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a.text-br-link:hover {
  color: #6f5aa7;
}

/* ------------------------------
   SECTION (contenitore base)
------------------------------ */
.section-base {
  background-color: #ffffff;
  max-width: 1100px;
  margin: 3em auto;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  line-height: 1.7;
}

.container-section-materiali {
  display: block; 
  max-width: 1100px;
  margin left: 4px solid #6f5aa7;
}

/*Container pagina item podcast*/
.container-section-item {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2em;
  padding: 2em 1.5em;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}

/* ------------------------------
   SPACING (margini e padding generici)
------------------------------ */
.margin-top-sm { margin-top: 2em; }
.margin-top-md { margin-top: 3em; }
.margin-top-lg { margin-top: 5em; }

.first-section {
  margin-top: 150px;
}

/* ------------------------------
              BOX
------------------------------ */

/* BOX L – contenitori a tutta larghezza */
.box-L {
  background-color: #f6e1ee;
  border-left: 4px solid #6f5aa7;
  padding: 3em 2em;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.box-L h1 {
  font-size: 2.5em;
  color: #6f5aa7;
  margin-bottom: 1.5em;
  text-align: center;
}

.box-L h2 {
  font-size: 1.8em;
  color: #6f5aa7;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.box-L p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 1.2em;
  text-align: justify;
}

/* BOX M – contenuto principale affiancato da sidebar */
.box-M {
  background-color: #f6e1ee;
  border-left: 4px solid #6f5aa7;
  padding: 3em 2em;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  text-align: left;
}

/* BOX S – sidebar, form, mini-box */
.box-S {
  background-color: #f6e1ee;
  border-left: 4px solid #6f5aa7;
  padding: 2em 1.5em;
  margin: 0 auto;
  max-width: 350px
  min-height: 1200px
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  text-align: left;
}

/* BOX S sidebar associazioni e reti*/

.associazioni-container {
  display: flex;
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.associazioni-sidebar {
  width: 250px;                 
  flex-shrink: 0;            
  background-color: #f6e1ee;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  top: 120px;
}


.associazioni-sidebar label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.4em;
  color: #3a3a3a;
}

.associazioni-sidebar select,
.associazioni-sidebar input {
  width: 100%;
  margin-bottom: 1.2em;
  padding: 0.5em;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.filtro-lettere {
  margin-top: 1em;
}

.filtro-lettere .lettere {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em;
  margin-top: 0.5em;
}

.filtro-lettere .lettere a {
  text-decoration: none;
  font-weight: bold;
  color: #6f5aa7;
  padding: 0.3em 0.5em;
  border-radius: 6px;
  background-color: #fff;
  border: 1px solid #6f5aa7;
  font-size: 0.9em;
}

.filtro-lettere .lettere a:hover {
  background-color: #6f5aa7;
  color: #fff;
}

  /*BOX S sidebar specifica materiali*/

.sidebar-materiali {
  position: sticky;
  top: 120px; 
  align-self: flex-start;
  background-color: #d5bde3;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  border-left: none;
  margin-left: 0
  max-width: 250px;
  flex: 0 0 240px;
}


.sidebar-materiali label {
  margin-bottom: 0.4em;
  display: block;
  font-size: 0.95em;
}

.sidebar-materiali input[type="checkbox"] {
  margin-right: 0.4em;
}

/* box L materiali */
.boxL-materiali {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2em;
  padding: 2em 1.2em;
  background-color: #ffffff;
  border-left: none;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}

/* Box M pagina item Podcast */
.boxM-item {
  flex: 1 1 65%; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%; 
}

.boxM-item h1 {
  font-size: 2.2em;
  color: #6f5aa7;
  font-weight: 700;
  margin-bottom: 1em;
  margin-top: 0.2em;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.boxM-item img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  border: 2px solid #ccc;
  margin-bottom: 1em;
  margin-top: 0.5em;
}

/* Box laterali S item Podcast METADATI*/
.boxS.metadati {
  background-color: #f6e1ee;
  border-left: 4px solid #6f5aa7;
  padding: 2em 1.5em;
  max-width: 280px;
  min-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5em;
}

.boxS.metadati h3 {
  font-size: 1.2em;
  color: #6f5aa7;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-top: 1em;
  text-align: center;
}

.boxS.metadati ul,
.boxS.metadati li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.boxS.metadati li a {
  line-height: 1.6;
  text-decoration: none;
  color: #6f5aa7;
  display: block;
  margin-bottom: 0.3em;
  text-align: left;
}

.boxS.metadati li a:hover {
  text-decoration: underline;
}

/* Allineamento alto + interlinea */
.boxS.metadati {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.boxS.metadati ul {
  margin-top: 0.5em;
}

.boxS.metadati li a {
  line-height: 1.6;
  text-decoration: none;
  color: #6f5aa7;
}

.boxS.metadati li a:hover {
  text-decoration: underline;
}

.etichette-risorsa h4 {
  font-size: 1.1em;
  color: #6f5aa7;
  margin-top: 1em;
  margin-bottom: 0.6em;
  text-align: center;
}

.etichette-risorsa ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.etichette-risorsa li {
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 0.4em;
  color: #3a3a3a;
  text-align: left;
}


/* Box laterali S item Podcast Altre risorse*/
.boxS-item {
  background-color: #f6e1ee;
  padding: 2em 1.5em;
  border-left: 4px solid #6f5aa7;
  border-radius: 12px;
  max-width: 280px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.boxS-item .blocco {
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.boxS-item img {
  display: block;
  margin: 0 auto 0.5em auto;
  width: 100%;
  max-width: 140px;
  border-radius: 10px;
}

.boxS-item h3 {
  font-size: 1.2em;
  color: #6f5aa7;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-top: 1em;
  text-align: center;
}

.boxS-item p {
  font-size: 0.9em;
  margin: 0.2em 0;
  color: #3a3a3a;
  text-align: center;
}

.boxS-item a {
  font-size: 0.9em;
  color: #6f5aa7;
  text-decoration: none;
  text-align: center;
  margin-top: 0.2em;
}

.boxS-item a:hover {
  text-decoration: underline;
}

.boxS-item ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* ------------------------------
             FILTRI
------------------------------ */

.dropdown-container {
  display: none;
  padding: 0.5em 1em;
  margin-bottom: 1em;
}

.dropdown-btn {
  background-color: #d7d2e7;
  color: #3a3a3a;
  padding: 0.8em 1em;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 0.4em;
  transition: background-color 0.2s ease;
}

.dropdown-btn:hover {
  background-color: #cfcbe3;
}

.sidebar-materiali label {
  display: block;
  margin: 0.4em 0;
}


/* ------------------------------
       TABELLE e GRIGLIE
------------------------------ */

/*tabella associazioni*/
.tabella-associazioni {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: 1em;
  overflow-x: auto;
}

.tabella-associazioni .riga {
  display: grid;
  grid-template-columns:  30% 20% 30% 10% 10%;
  align-items: center;
  padding: 0.6em 1em;
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.tabella-associazioni .intestazione {
  background-color: #eac1dc;
  font-weight: bold;
  color: #3a3a3a;
}

/* Contenitore -griglia card materiali */
.griglia-materiali {
  flex: 1 1 auto; 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2em;
  align-items: stretch;
}

/*Tabella METADATI ITEM PODCAST*/

.tabella-metadati {
  width: 100%;
  max-width: 500px;
  border-collapse: collapse;
  margin: 1em auto;
  font-size: 0.95em;
  background-color: #f9f3fc;
  border: 1px solid #d2b8e4;
  border-radius: 6px;
}

.tabella-metadati th,
.tabella-metadati td {
  border: 1px solid #d2b8e4;
  padding: 0.6em;
  text-align: left;
}

.tabella-metadati th {
  background-color: #e9d5f8;
  color: #3a3a3a;
}

/* ------------------------------
              CARD 
------------------------------ */
 
/*card materiali*/
.card-materiali {
  background-color: #d7d2e7;
  border-radius: 12px;
  padding: 1.2em;
  margin: 0 0 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  max-width: 280px;     
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  box-sizing: border-box; 

}

.card-materiali img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8em;
}

  border-radius: 8px;
  margin-bottom: 0.8em;
}

.card-materiali h3 {
  font-size: 0.6em;
  margin-bottom: 0.5em;
  color: #6f5aa7;
}

.card-materiali p {
  font-size: 0.80em;
  line-height: 1.3;
}

.card-materiali {
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out;
}

.card-materiali:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

/* ------------------------------
   RESPONSIVE (mobile, tablet)
------------------------------ */
@media (max-width: 768px) {
  .page-h1 {
    font-size: 2em;
  }

  .section-base {
    padding: 1.5em;
  }

  .tabella-associazioni .riga {
    font-size: 0.9em;
    grid-template-columns: 1.8fr 1fr 2fr 0.5fr 0.5fr;
  }
}

/* Responsive pag ITEM PODCAST */
@media (max-width: 960px) {
  .container-section-item {
    flex-direction: column;
  }
  .boxS-item {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 2em;
  }
  .boxM-item {
    width: 100%;
  }
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  text-align: center;
  padding: 1.5em 1em;
  background-color: #eac1dc;
  font-size: 0.9em;
  margin-top: 3em;
}


