/* EGP Privacy: banner, blocco del modulo, link nel piè di pagina, pagine legali. */

.egp-tasto {
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: 500 13px/1 Montserrat, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.egp-tasto:hover,
.egp-tasto:focus-visible { background: #fff; color: #111; }
.egp-tasto:focus-visible { outline: 2px solid #cfcabe; outline-offset: 3px; }

/* Banner */
.egp-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 26px;
  background: #111;
  color: #f9f9f9;
  border: 1px solid #3a3a3a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  font: 400 14px/1.6 Montserrat, sans-serif;
}
.egp-banner[hidden] { display: none; }
.egp-banner p { margin: 0; }
.egp-banner-titolo { font: 500 22px/1.2 Cormorant, serif; margin-bottom: 6px !important; }
.egp-banner a { color: #cfcabe; text-decoration: underline; }
.egp-banner-testo { flex: 1; }
.egp-banner-tasti { display: flex; gap: 12px; flex-shrink: 0; }

/* Modulo fermo in attesa del consenso */
.egp-blocco {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 28px;
  border: 1px solid #3a3a3a;
  text-align: center;
  color: #f9f9f9;
  background: #111;
  font: 400 15px/1.7 Montserrat, sans-serif;
}
.egp-blocco[hidden] { display: none; }
.egp-blocco p { margin: 0 0 22px; }
.egp-tasto-pieno { background: #f9f9f9; color: #111; border-color: #f9f9f9; }
.egp-tasto-pieno:hover,
.egp-tasto-pieno:focus-visible { background: #cfcabe; border-color: #cfcabe; color: #111; }
iframe[data-egp-src][hidden] { display: none; }

.egp-nota {
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  font: 400 13px/1.6 Montserrat, sans-serif;
  opacity: .8;
}
.egp-nota a { color: inherit; text-decoration: underline; }

/* Link nel piè di pagina */
.egp-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 2px;
  color: #f7f7f7;
  font: 400 13px/1.4 Montserrat, sans-serif;
}
/* La fascia nera del sito è alta 100 px fissi: con i link deve potersi allungare. */
section#footer { height: auto; min-height: 100px; padding: 16px 0 8px; }
.egp-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.egp-link a { opacity: .8; }
.egp-link a:hover,
.egp-link a:focus-visible { opacity: 1; }
.egp-link-fuori { padding: 12px 16px; background: #000; color: #f9f9f9; }

/* Pagine Privacy Policy e Cookie Policy */
.egp-legale {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 24px 90px;
  color: #313131;
  font: 400 16px/1.75 Montserrat, sans-serif;
}
.egp-legale h1 { font: 500 46px/1.15 Cormorant, serif; margin: 0 0 8px; }
.egp-legale h2 { font: 600 28px/1.25 Cormorant, serif; margin: 44px 0 10px; }
.egp-legale h3 { font: 600 16px/1.4 Montserrat, sans-serif; margin: 24px 0 6px; }
.egp-legale p,
.egp-legale ul { margin: 0 0 14px; }
.egp-legale ul { padding-left: 22px; }
.egp-legale li { margin-bottom: 6px; }
.egp-legale a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.egp-legale .egp-agg { font-size: 13px; opacity: .7; margin-bottom: 30px; }
.egp-legale table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.egp-legale th,
.egp-legale td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #ddd; }

@media (max-width: 720px) {
  .egp-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; left: 10px; right: 10px; bottom: 10px; }
  .egp-banner-tasti .egp-tasto { flex: 1; padding: 0 12px; }
  .egp-legale { padding: 120px 20px 70px; font-size: 15px; }
  .egp-legale h1 { font-size: 36px; }
  .egp-legale h2 { font-size: 24px; }
  .egp-link { flex-direction: column; align-items: center; gap: 0; }
}
