/* ========================================================================== 
   CONSENSO-RECENSIONI.CSS — Letture.eu
   --------------------------------------------------------------------------
   VERSIONE CENTRALIZZATA — PRODUZIONE

   Scopo
   - Gestire esclusivamente banner di consenso, preferenze di consenso,
     pulsanti Accetta/Rifiuta, link informative e tabelle cookie.
   - Non gestire colonna, box, immagini, pulsanti libro, header o footer.

   Linee guida manutenzione
   - Conservare i selettori principali per compatibilità con HTML/JS esistenti.
   - Mantenere unità relative per stabilità tipografica e scaling.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1) BANNER CONSENSO — CONTENITORE
   -------------------------------------------------------------------------- */
.letture-consent{
  background: #fff;
  color: #000;

  border: 1px solid #999;
  border-radius: 0.4rem;

  padding: 0.6rem 0.8rem;
  margin: 1rem 0;

  font-size: 0.85rem;
  line-height: 1.35;
}

.letture-consent p{
  margin: 0 0 0.5rem;
  padding: 0;
}


/* --------------------------------------------------------------------------
   2) BANNER CONSENSO — AZIONI
   -------------------------------------------------------------------------- */
.letture-consent-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.letture-consent-actions button{
  background: #fff;
  color: #000;

  border: 1px solid #000;
  border-radius: 0.3rem;

  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;

  cursor: pointer;
}

.letture-consent-actions button:hover{
  background: #000;
  color: #fff;
}

.letture-consent-actions a{
  color: #000;
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
}

.letture-consent-actions a:hover{
  opacity: 0.75;
}


.consent-links{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.letture-consent-actions button:focus,
.letture-consent-actions button:focus-visible,
.letture-consent-actions a:focus,
.letture-consent-actions a:focus-visible{
  outline: 2px solid #000;
  outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   3) PREFERENZE CONSENSO — LINK/PANNELLO DI GESTIONE
   -------------------------------------------------------------------------- */
.gestisci-consenso-wrap{
  text-align: center;
  margin: 14px auto 24px;
}

.gestisci-consenso-wrap a,
.gestisci-consenso-wrap button{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gestisci-consenso-wrap button{
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.gestisci-consenso-wrap a:focus,
.gestisci-consenso-wrap a:focus-visible,
.gestisci-consenso-wrap button:focus,
.gestisci-consenso-wrap button:focus-visible{
  outline: 2px solid #000;
  outline-offset: 3px;
  background: #fff;
  color: #000;
}


/* --------------------------------------------------------------------------
   4) SEZIONE COOKIE — TABELLE RIASSUNTIVE
   -------------------------------------------------------------------------- */
.tabella-cookie{
  width: 100%;
  margin: 1.2rem 0 2rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}

.tabella-cookie th{
  text-align: left;
  vertical-align: bottom;
  font-weight: 700;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #000;
}

.tabella-cookie td{
  vertical-align: top;
  text-align: justify;
  padding: 0.45rem 0.5rem;
  hyphens: auto;
  word-break: normal;
}

.tabella-cookie th:nth-child(1),
.tabella-cookie td:nth-child(1){ width: 22%; }

.tabella-cookie th:nth-child(2),
.tabella-cookie td:nth-child(2){ width: 14%; }

.tabella-cookie th:nth-child(3),
.tabella-cookie td:nth-child(3){ width: 16%; }

.tabella-cookie th:nth-child(4),
.tabella-cookie td:nth-child(4){ width: 22%; }

.tabella-cookie th:nth-child(5),
.tabella-cookie td:nth-child(5){ width: 12%; }

.tabella-cookie th:nth-child(6),
.tabella-cookie td:nth-child(6){ width: 14%; }

.tabella-cookie tbody tr:not(:last-child) td{
  border-bottom: 1px solid #ddd;
}


/* --------------------------------------------------------------------------
   5) RESPONSIVE 320–480 PX
   -------------------------------------------------------------------------- */
@media (max-width: 480px){
  .letture-consent{
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
  }

  .letture-consent-actions{
    flex-direction: row;
    gap: 0.4rem;
  }

  .letture-consent-actions button{
    font-size: 0.84rem;
    padding: 0.25rem 0.55rem;
  }

  .letture-consent-actions a{
    font-size: 0.84rem;
  }

  .tabella-cookie{
    font-size: 0.85rem;
  }

  .tabella-cookie th,
  .tabella-cookie td{
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
