/* --- Sfondo generale del sito --- */
body {
  background: #f5f7fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --- RIGA PRINCIPALE (line-main) come contenitore centrato --- */
/* Assicurati che la riga che contiene i contenuti abbia la classe: line-main */
.line-main {
  padding: 48px 16px 72px;
}

/* Card bianca centrale che contiene il modulo (eventi, donazioni, adesione, ecc.) */
.line-main > div {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px 40px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

/* Su schermi piccoli riduciamo un po’ i padding */
@media (max-width: 768px) {
  .line-main {
    padding: 32px 10px 50px;
  }

  .line-main > div {
    padding: 22px 18px 28px;
    border-radius: 18px;
  }
}

/* --- Pulsanti (Dettagli, Iscriviti, Fai una donazione…) --- */
/* Yapla di solito usa .btn / .btn-primary sui link trasformati in pulsanti */
.line-main .btn,
.line-main .btn-primary,
.line-main a.btn,
.line-main button,
.line-main input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(14, 148, 136, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.line-main .btn:hover,
.line-main .btn-primary:hover,
.line-main a.btn:hover,
.line-main button:hover,
.line-main input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(14, 148, 136, 0.45);
}

/* Variante “secondaria” (se Yapla usa btn-secondary o btn-outline, la rendiamo bianca con bordo) */
.line-main .btn-secondary,
.line-main .btn-outline,
.line-main .btn.btn-outline,
.line-main a.btn.btn-outline {
  background: #ffffff;
  color: #0f766e !important;
  border: 2px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.line-main .btn-secondary:hover,
.line-main .btn-outline:hover,
.line-main a.btn.btn-outline:hover {
  background: #ecfdf5;
}

/* --- Testi principali nelle card --- */
.line-main h1,
.line-main h2,
.line-main h3 {
  color: #0f172a;
}

.line-main p,
.line-main li {
  color: #334155;
}

/* --- Footer blu Yapla: riduciamo un po’ l’altezza --- */
footer,
.line-footer {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* --- “Pillola” misteriosa sopra il menu: la nascondiamo --- */
/* È di solito un pulsante di call-to-action nel menu; se non ti serve la togliamo */
.line-menu .btn,
.line-menu .btn-primary {
  display: none !important;
}

/* Fascia logo + header */
.mod-header-container {
  background: #8FE6D5;              /* verde acqua Polpo Verde */
  background-image: none !important;
  padding: 18px 40px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);  /* ombra sotto l’header */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo un filo più contenuto e centrato in verticale */
.mod-header-logo {
  max-height: 80px;
  height: auto;
  display: block;
}

/* Menu in linea, più arioso e leggibile */
.mod-header-wrapper {
  display: flex;
  gap: 26px;
  align-items: center;
}

.mod-header-wrapper li {
  list-style: none;
}

.mod-header-wrapper a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: #0b1120;                 /* quasi nero blu, leggibile sopra il verde */
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

/* Sottolineatura morbida al passaggio e sulla pagina attiva */
.mod-header-wrapper a:hover,
.mod-header-wrapper a:focus {
  color: #047857;                 /* verde più scuro */
}

.mod-header-wrapper a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #047857;
  transition: width 0.22s ease-out;
}

.mod-header-wrapper a:hover::after,
.mod-header-wrapper a:focus::after {
  width: 100%;
}

/* Tagline (che aggiungiamo via JS) */
.pv-header-tagline {
  margin-left: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #064e3b;
  white-space: nowrap;
}

/* Mobile: header su due righe, testo centrato */
@media (max-width: 768px) {
  .mod-header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }
  .pv-header-tagline {
    margin: 10px 0 0;
    font-size: 0.85rem;
  }
}

/* Rende il contenitore posizionabile per le pseudo-element */
.mod-header-container {
  position: relative;
}

/* Frase motivazionale nella fascia verde */
.mod-header-container::after {
  content: "Ogni rifiuto raccolto è un pezzo di terra salvato.";
  position: absolute;
  right: 40px;
  bottom: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.9rem;
  font-weight: 5000;
  color: #064e3b;  /* verde scuro leggibile */
  white-space: nowrap;
}

/* Piccole "icone" tonde decorative accanto alla frase */
.mod-header-container::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e; /* verde brillante */
  box-shadow:
    14px 6px 0 0 #0ea5e9,   /* bolla azzurra */
    28px 2px 0 0 #a7f3d0;   /* bolla verde chiaro */
}

/* Mobile: niente frase né bolle, per non schiacciare il menu */
@media (max-width: 768px) {
  .mod-header-container::after,
  .mod-header-container::before {
    display: none;
  }
}
/* ============================
   FOOTER – CARD CENTRATA
   ============================ */

/* Sfondo intorno alla card */
.line-footer {
    background: #E3F8F3 !important;
    padding: 60px 0 !important;
}

/* Contenitore della card */
.zone-footer {
    display: flex !important;
    justify-content: center !important;
}

/* Card bianca */
.zone-footer .footer-classic {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    text-align: center;

    /* TRUCCO: override del padding ereditato da Yapla */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Titoli */
.footer-classic h3 {
    color: #064E3B !important;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Testo */
.footer-classic p,
.footer-classic a {
    color: #0f172a !important;
    font-size: 15px;
}

/* Hover link */
.footer-classic a:hover {
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {
    .zone-footer .footer-classic {
        padding: 22px 20px;
        border-radius: 14px;
    }
}

<style>
  /* Titolo "Eventi in Programma" (secondo H2 della pagina) */
  h2:nth-of-type(2) {
    font-size: 24px;
    font-weight: 700;
    color: #1f3e4d;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 18px;
  }

  /* Titoli degli eventi (h3) */
  h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1f3e4d;
    margin-top: 26px;
    margin-bottom: 4px;
  }

  /* Data evento (h4 sotto il titolo) */
  h3 + h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #2aa67a;
    margin-bottom: 4px;
  }

  /* Riga "Dal ... al ..." subito dopo la data */
  h3 + h4 + * {
    font-size: 13px;
    color: #5a6a73;
  }

  /* Bottoni Dettagli / Iscriviti */
  a[href*="/eventi/detail"],
  a[href*="/eventi/register"] {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    margin-top: 8px;
    margin-right: 8px;
    background: linear-gradient(135deg, #2aa67a, #43b5bc);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease,
      opacity 0.15s ease;
  }

  a[href*="/eventi/detail"]:hover,
  a[href*="/eventi/register"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
    opacity: 0.96;
  }

  /* Linea di separazione fra gli eventi, più soft e coerente */
  h3 + h4 + * + hr,
  h3 + h4 + hr {
    border: none;
    border-top: 1px solid rgba(67, 181, 188, 0.3);
    margin: 18px 0 10px;
  }
</style>

<style>
  /* --- Forza dimensione uniforme alle anteprime eventi --- */
  img.thumb.e-thumbnail {
    width: 100% !important;
    max-width: 360px !important;     /* larghezza massima uniforme */
    height: 220px !important;        /* altezza uniforme */
    object-fit: cover !important;    /* ritaglio elegante senza deformazioni */
    border-radius: 16px !important;  /* bordi coerenti con stile Polpo Verde */
    display: block !important;
    margin: 12px auto !important;    /* centra l'immagine */
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  }

  /* In caso Yapla inserisca solo una delle due classi (fallback sicuro) */
  img.thumb,
  img.e-thumbnail {
    width: 100% !important;
    max-width: 360px !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    display: block !important;
    margin: 12px auto !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  }
</style>

<style>
/* Nasconde tutti i wrapper PoweredBy ovunque appaiano */
.poweredBy-wrapper,
.poweredBy-container,
.poweredBy,
a.poweredBy-link,
div.poweredBy,
div[class*="poweredBy"],
a[href*="utm_campaign=poweredby"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Nasconde eventuali contenitori duplicati senza classe */
img[src*="yapla-logo"],
img[alt="Yapla Logo"] {
    display: none !important;
}

/* Nel caso Yapla annidi il blocco in container fluidi */
.row-fluid > .poweredBy,
.row-fluid [class*="poweredBy"] {
    display: none !important;
}
</style>
<style>
  /* --- CARD DONAZIONI (anteprima campagne) --- */
  .zone-donation .campaigns .item {
    background: #f5f8fd;
    border-radius: 20px;
    padding: 18px 16px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.12);
    margin-bottom: 22px;
  }

  /* immagine anteprima uniforme */
  .zone-donation .campaigns .item img.thumb {
    width: 100% !important;
    max-width: 360px !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 16px;
    display: block;
    margin: 8px auto 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
  }

  /* titolo campagna */
  .zone-donation .campaigns .item h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* linea sotto il titolo */
  .zone-donation .campaigns .item hr {
    border: none;
    border-top: 1px solid rgba(37, 99, 235, 0.25);
    width: 60%;
    margin: 8px auto 10px;
  }

  /* descrizione (se la userai in futuro) */
  .zone-donation .campaigns .item .campaign-desc {
    font-size: 13px;
    color: #4b5563;
    min-height: 0; /* ora non hai testo, ma così siamo pronti */
    margin-bottom: 8px;
  }

  /* contenitore bottoni */
  .zone-donation .campaigns .item .campaign-actions {
    margin-top: 8px;
  }

  /* stile base bottoni */
  .zone-donation .campaigns .item .campaign-actions .btn-primary {
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease,
      opacity 0.15s ease,
      background 0.15s ease;
    margin: 4px 6px;
    text-decoration: none !important;
  }

  /* primo bottone: Fai una donazione (più evidente, blu -> verde) */
  .zone-donation .campaigns .item .campaign-actions .btn-primary:first-child {
    background: linear-gradient(135deg, #2563eb, #2aa67a);
    color: #ffffff !important;
  }

  .zone-donation .campaigns .item .campaign-actions .btn-primary:first-child:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.3);
    opacity: 0.96;
  }

  /* secondo bottone: Dettagli (più soft, contorno) */
  .zone-donation .campaigns .item .campaign-actions .btn-primary:last-child {
    background: #e5edff;
    color: #1d4ed8 !important;
    box-shadow: none;
  }

  .zone-donation .campaigns .item .campaign-actions .btn-primary:last-child:hover {
    background: #d4e0ff;
    transform: translateY(-1px);
  }

  /* responsive: allarga le card su mobile */
  @media (max-width: 768px) {
    .zone-donation .campaigns .col-sm-8 {
      width: 100%;
    }
    .zone-donation .campaigns .item {
      margin-left: auto;
      margin-right: auto;
    }
  }
</style>
