/*
Theme Name: CRI Pizzighettone 2026
Theme URI: https://www.cripizzighettone.it/
Author: Comitato CRI Pizzighettone
Description: Tema personalizzato per il nuovo sito del Comitato CRI Pizzighettone. Prima versione di sviluppo locale.
Version: 0.1.0
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: cri-pizzighettone
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap');
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}
/* Barra grigia: scorre via */
.topbar {
  min-height: 70px;
  padding: 14px 5%;
  background: #999;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-contatti {
  display: flex;
  align-items: center;
  gap: 25px;
}

.topbar-contatti a {
  color: white;
  text-decoration: none;
}

/* Navbar bianca: rimane in alto */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 125px;
  padding: 5px 5%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 1px 4px #00000010;
}

.logo-cri {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #d40000;
  text-decoration: none;
}

.logo-cri img {
  width: 60px;
  height: auto;
}

.logo-cri div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo-cri strong {
  font-size: 30px;
}

.logo-cri span {
  font-size: 20px;
  text-align: center;
}

.menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.menu a {
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

.menu a:hover {
  color: #d40000;
}

.topbar-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.topbar-logo img {
    display: block;
    width: auto;
    height: 60px;
    max-width: 160px;
    object-fit: contain;
}

/* Logo CRI Pizzighettone nella navbar bianca */
.logo-cri img {
  width: 400px;
  height: 100px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Voci principali */
.menu-item {
  position: relative;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 18px 0;
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.menu-link:hover,
.menu-link:focus-visible {
  color: #d40000;
}

/* Menu a tendina */
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 240px;
  padding: 8px 0;
  background: #fff;
  border-top: 3px solid #d40000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 4px 4px;
  z-index: 1100;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

/* Apertura con mouse o tastiera */
.menu-item:hover > .dropdown,
.menu-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Link secondari */
.dropdown a {
  display: block;
  padding: 12px 18px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: #f7f7f7;
  color: #d40000;
}

/* CAROSELLO */
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(420px, 43vw, 680px);
  overflow: hidden;
  background: #222;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Sfumatura per rendere leggibile il testo */
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.38) 48%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.slide-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(25px, 9vw, 150px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 720px;
  padding: 20px;
  color: white;
}

.slide-overlay > span {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.slide-overlay h1,
.slide-overlay h2 {
  margin: 18px 0;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.08;
  font-weight: 700;
}

.slide-overlay p {
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.6;
  max-width: 580px;
}


.hero-carousel .slide-overlay a.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 26px;
    background: #d40000;
    color: #fff;
    border: 0;
    border-radius: 3px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.hero-carousel .slide-overlay a.hero-button:hover {
    background: #a90000;
    color: #fff;
    transform: none;
}

.hero-carousel .slide-overlay a.hero-button span {
    display: inline;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.hero-carousel .slide-overlay a.hero-button span:empty::after {
    content: "→";
}


/* FRECCE */
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: #d40000;
}

.carousel-arrow.prev { left: 22px; }
.carousel-arrow.next { right: 22px; }

/* PALLINI */
.carousel-dots {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: #d40000;
  border-color: #d40000;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-carousel {
    height: 500px;
  }

  .slide-overlay {
    left: 12px;
    right: 12px;
    padding: 20px;
  }

  .slide-overlay h1,
  .slide-overlay h2 {
    font-size: 36px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
}

/* ==============================
   SEZIONE ULTIME NOTIZIE
============================== */

.news-section {
    padding: 85px 24px;
    background: #f7f7f7;
}

.news-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* INTESTAZIONE */

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 38px;
}

.section-label {
    color: #c90000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.news-header h2 {
    margin: 12px 0;
    color: #222;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
}

.news-header p {
    max-width: 650px;
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

.all-news-link {
    flex-shrink: 0;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.25s ease;
    justify-content: center;
}

.all-news-link span {
    margin-left: 6px;
}

.all-news-link:hover {
    color: #d00000;
}

/* GRIGLIA */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* SINGOLA SCHEDA */

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e7e7e7;
    border-bottom: 4px solid transparent;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.news-card:hover,
.news-card:focus-visible {
    transform: translateY(-7px);
    border-bottom-color: #d00000;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    outline: none;
}

/* IMMAGINI */

.news-image {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: #ddd;
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.06);
}

/* ETICHETTA CATEGORIA */

.news-category {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 8px 12px;
    background: #d00000;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* TESTO */

.news-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    padding: 25px 23px;
}

.news-date {
    color: #888;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.news-content h3 {
    margin: 14px 0 12px;
    color: #242424;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 750;
    transition: color 0.25s ease;
}

.news-card:hover .news-content h3,
.news-card:focus-visible .news-content h3 {
    color: #d00000;
}

.news-content p {
    margin: 0 0 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.news-read {
    margin-top: auto;
    color: #c90000;
    font-size: 14px;
    font-weight: 800;
}

/* PULSANTE ARCHIVIO */

.news-footer {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.news-archive-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 15px 25px;
    background: #d00000;
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    border: 2px solid #d00000;
    border-radius: 3px;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.news-archive-button:hover {
    background: #a90000;
    border-color: #a90000;
}

/* TABLET */

@media (max-width: 950px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .news-card:last-child {
        grid-column: 1 / -1;
    }

    .news-image {
        height: 220px;
    }
}

/* SMARTPHONE */

@media (max-width: 600px) {
    .news-section {
        padding: 60px 18px;
    }

    .news-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card:last-child {
        grid-column: auto;
    }

    .news-image {
        height: 230px;
    }

    .news-content {
        padding: 22px 20px;
    }

    .news-content h3 {
        font-size: 20px;
    }

    .news-footer {
        margin-top: 30px;
    }
}

/* ACCESSIBILITÀ */

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-image img,
    .news-content h3,
    .all-news-link,
    .news-archive-button {
        transition: none;
    }

    .news-card:hover {
        transform: none;
    }
}


/* ==============================
   SCOPRI IL MONDO CROCE ROSSA
============================== */

.cri-world-section {
    padding: 70px 24px;
    background: #fff;
}

.cri-world-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    max-width: 1240px;
    margin: 0 auto;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #ddd;
    border-radius: 5px;
    isolation: isolate;
}

/* FOTOGRAFIA DI SFONDO */

.cri-world-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("assets/foto-mondo-cri.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.7s ease;
}

/* VELO SCURO LEGGERO PER LEGGERE IL TESTO */

.cri-world-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.02) 100%
    );
    transition: background 0.4s ease;
}

/* CONTENUTO */

.cri-world-content {
    max-width: 680px;
    padding: 60px clamp(28px, 7vw, 90px);
}

.cri-world-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cri-world-content h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 800;
}

.cri-world-content p {
    max-width: 540px;
    margin: 0 0 30px;
    color: #fff;
    font-size: 17px;
    line-height: 1.8;
}

/* PULSANTE */

.cri-world-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 15px 22px;
    color: #fff;
    background: #d00000;
    border: 2px solid #d00000;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 800;
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.cri-world-arrow {
    font-size: 21px;
    transition: transform 0.3s ease;
}

/* ICONA LINK ESTERNO */

.cri-world-external {
    position: absolute;
    top: 25px;
    right: 28px;
    font-size: 28px;
    color: #fff;
    opacity: 0.85;
}

/* EFFETTO AL PASSAGGIO DEL MOUSE
   LA FOTO RESTA NATURALE */

.cri-world-banner:hover .cri-world-image {
    transform: scale(1.05);
}

.cri-world-banner:hover .cri-world-overlay {
    background: rgba(0, 0, 0, 0.12);
}

.cri-world-banner:hover .cri-world-button {
    background: #a90000;
    border-color: #fff;
}

.cri-world-banner:hover .cri-world-arrow {
    transform: translateX(6px);
}

/* ACCESSIBILITÀ DA TASTIERA */

.cri-world-banner:focus-visible {
    outline: 3px solid #d00000;
    outline-offset: 5px;
}

/* SMARTPHONE */

@media (max-width: 600px) {
    .cri-world-section {
        padding: 45px 18px;
    }

    .cri-world-banner {
        min-height: 460px;
    }

    .cri-world-content {
        padding: 35px 25px;
    }

    .cri-world-content h2 {
        font-size: 38px;
    }

    .cri-world-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .cri-world-external {
        top: 15px;
        right: 18px;
    }
}

/* RIDUZIONE ANIMAZIONI */

@media (prefers-reduced-motion: reduce) {
    .cri-world-image,
    .cri-world-overlay,
    .cri-world-button,
    .cri-world-arrow {
        transition: none;
    }
}


/* ==============================
   FOOTER CRI PIZZIGHETTONE
============================== */

.site-footer {
    background: #262626;
    color: #fff;
    padding: 65px 6% 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.25fr 0.9fr;
    gap: 45px;
    max-width: 1500px;
    margin: 0 auto;
    padding-bottom: 48px;
}

/* LOGO E IDENTITÀ */

.footer-brand {
    text-align: center;
}

.footer-brand img {
    display: block;
    width: 155px;
    height: 155px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.footer-brand h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.footer-brand p {
    margin: 0;
    color: #ddd;
    font-size: 15px;
}

/* COLONNE */

.footer-column h3 {
    margin: 0 0 30px;
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 800;
}

.footer-column p {
    margin: 0 0 12px;
    color: #e1e1e1;
    font-size: 15px;
    line-height: 1.8;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
    color: #ff3333;
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-column strong {
    color: #fff;
}

.footer-mission .footer-more {
    margin-top: 18px;
    color: #fff;
    font-weight: 700;
}

/* CONTATTI */

.footer-contacts a {
    margin-bottom: 8px;
}

/* BARRA INFERIORE */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 25px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
    color: #e1e1e1;
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

/* SOCIAL */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.footer-socials a:hover {
    background: #d00000;
    border-color: #d00000;
}

/* TABLET */

@media (max-width: 1050px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-brand img {
        margin-left: 0;
    }
}

/* SMARTPHONE */

@media (max-width: 600px) {
    .site-footer {
        padding: 45px 22px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 35px;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-brand img {
        width: 125px;
        height: 125px;
        margin-left: 0;
    }

    .footer-column h3 {
        margin-bottom: 15px;
        font-size: 19px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 25px 0;
    }

    .footer-bottom p {
        text-align: left;
        font-size: 13px;
    }
}

/* ACCESSIBILITÀ */

@media (prefers-reduced-motion: reduce) {
    .footer-column a,
    .footer-socials a {
        transition: none;
    }
}



/* ==============================
   BANNER PAGINE INTERNE
============================== */

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 360px;

    background-image: url("foto-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* VELO SULLA FOTOGRAFIA */

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

/* TITOLO */

.page-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    padding: 50px 24px;
    text-align: center;
}

.page-hero-content h1 {
    margin: 0;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

/* SMARTPHONE */

@media (max-width: 600px) {
    .page-hero {
        min-height: 250px;
    }

    .page-hero-content {
        padding: 35px 20px;
    }

    .page-hero-content h1 {
        font-size: 36px;
    }
}


/* ==============================
   SEZIONE LA STORIA CRI
============================== */

.about-history {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 80px 24px 90px;
    background: #f6f6f6;
}

/* CONTENITORE CENTRALE */

.about-history .about-section-heading,
.about-history .about-text {
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
}

/* INTESTAZIONE */

.about-history .about-section-heading {
    margin-bottom: 35px;
}

.about-history .about-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #c90000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-history .about-section-heading h2 {
    margin: 0;
    color: #292929;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
}

/* SOTTOTITOLI */

.about-history .about-text h3 {
    position: relative;
    margin: 38px 0 18px;
    padding-left: 18px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 700;
    line-height: 1.4;
}

.about-history .about-text h3:first-child {
    margin-top: 0;
}

.about-history .about-text h3::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    background: #d00000;
    border-radius: 2px;
}

/* PARAGRAFI */

.about-history .about-text p {
    margin: 0 0 22px;
    color: #555;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
}

/* TESTO IN EVIDENZA */

.about-history .about-text strong {
    color: #333;
    font-weight: 700;
}

.about-history .about-text em {
    color: #444;
    font-style: italic;
}

/* ULTIMO PARAGRAFO */

.about-history .about-text p:last-child {
    margin-bottom: 0;
}

/* LINEA DECORATIVA IN FONDO */

.about-history::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 45px auto 0;
    background: #d00000;
    border-radius: 3px;
}

/* TABLET */

@media (max-width: 768px) {
    .about-history {
        padding: 60px 25px 65px;
    }

    .about-history .about-section-heading {
        margin-bottom: 28px;
    }

    .about-history .about-text h3 {
        margin-top: 32px;
    }

    .about-history .about-text p {
        font-size: 15px;
        line-height: 1.85;
    }
}

/* SMARTPHONE */

@media (max-width: 480px) {
    .about-history {
        padding: 45px 20px 50px;
    }

    .about-history .about-section-heading h2 {
        font-size: 32px;
    }

    .about-history .about-text h3 {
        margin-top: 28px;
        padding-left: 14px;
        font-size: 21px;
    }

    .about-history .about-text p {
        font-size: 15px;
        line-height: 1.8;
    }

    .about-history::after {
        margin-top: 32px;
    }
}

/* ACCESSIBILITÀ */

@media (prefers-reduced-motion: reduce) {
    .about-history * {
        scroll-behavior: auto;
    }
}



/* ==========================================
   BOX DI NAVIGAZIONE - CHI SIAMO
========================================== */


.about-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 45px auto 0;
    align-items: stretch;
}


.about-link-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.about-link-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.about-link-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.about-link-card:hover .about-link-image img {
    transform: scale(1.05);
}

.about-link-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0 0;
}

.about-link-content h3 {
    margin: 0 0 20px;
    color: #c90000;
    font-family: 'Roboto', sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}

.about-link-content p {
    margin: 0 0 25px;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.about-link-button {
    display: inline-block;
    margin-top: auto;
    padding: 14px 27px;
    color: #fff;
    background: #c90000;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.25s ease;
}

.about-link-button:hover {
    color: #fff;
    background: #a80000;
}

/* TABLET */

@media (max-width: 1100px) {
    .about-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 25px;
    }
}

/* SMARTPHONE */

@media (max-width: 600px) {
    .about-links-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 30px;
    }

    .about-link-content {
        padding-top: 18px;
    }

    .about-link-content h3 {
        margin-bottom: 12px;
        font-size: 22px;
    }

    .about-link-content p {
        font-size: 15px;
    }

    .about-link-button {
        padding: 13px 23px;
    }
}

/* ACCESSIBILITÀ */

@media (prefers-reduced-motion: reduce) {
    .about-link-image img,
    .about-link-button {
        transition: none;
    }
}


/* BREADCRUMB SOPRA IL TITOLO */

.about-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.about-breadcrumb a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-breadcrumb a:hover {
    color: #c90000;
    text-decoration: underline;
}

.about-breadcrumb span {
    color: #aaa;
}

@media (max-width: 600px) {
    .about-breadcrumb {
        margin-bottom: 22px;
        font-size: 12px;
        gap: 7px;
    }
}


.page-navigation-bottom {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 30px 32px 45px;
    font-family: 'Roboto', sans-serif;
}


/* 5 BOX: 3 SOPRA E 2 CENTRATE SOTTO */

@media (min-width: 1101px) {
    .about-links-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 30px;
    }

    .about-links-grid .about-link-card {
        grid-column: span 2;
    }

    /* Quarta box: seconda riga, a sinistra del centro */
    .about-links-grid .about-link-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    /* Quinta box: seconda riga, a destra del centro */
    .about-links-grid .about-link-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}


/* ==========================================
   TABELLA MISSIONI 118
========================================== */

.missions-table-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 35px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.missions-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    text-align: left;
}

.missions-table thead {
    background: #c90000;
    color: #fff;
}

.missions-table th,
.missions-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.missions-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.missions-table tbody tr:hover {
    background: #fff0f0;
}

.missions-table tbody th {
    font-weight: 600;
    color: #333;
}

.missions-table tbody td {
    color: #555;
}

.missions-table tfoot {
    background: #f1f1f1;
    font-weight: 700;
}

.missions-table tfoot th,
.missions-table tfoot td {
    border-top: 2px solid #c90000;
}

.missions-update {
    margin: 18px 0 0;
    color: #777;
    font-size: 13px;
    font-style: italic;
    text-align: right;
}

@media (max-width: 600px) {
    .missions-table-wrapper {
        padding: 0 12px;
    }

    .missions-table th,
    .missions-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .missions-update {
        font-size: 12px;
    }
}


/* ==========================================
   NEWSLETTER
========================================== */

.newsletter-section {
    padding: 65px 24px;
    background: #f7f7f7;
    font-family: 'Roboto', sans-serif;
}

.newsletter-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-container h2 {
    margin: 12px 0 20px;
    color: #222;
    font-size: 32px;
    line-height: 1.3;
}

.newsletter-container > p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-field label {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.newsletter-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
}

.newsletter-field input:focus {
    outline: 2px solid #c90000;
    outline-offset: 2px;
}

.newsletter-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.newsletter-privacy input {
    margin-top: 4px;
    accent-color: #c90000;
}

.newsletter-form button {
    align-self: center;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.newsletter-note {
    margin-top: 20px;
    font-size: 12px !important;
    color: #777 !important;
}

@media (max-width: 600px) {
    .newsletter-section {
        padding: 45px 20px;
    }

    .newsletter-container h2 {
        font-size: 26px;
    }

    .newsletter-container > p {
        font-size: 14px;
    }
}


/* ==========================================
   BOX 5X1000
========================================== */

.five-per-thousand-card {
    max-width: 650px;
    margin: 45px auto;
    padding: 40px 30px;
    box-sizing: border-box;
    background: #c90000;
    color: #fff;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    border-radius: 4px;
}

.five-per-thousand-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.five-per-thousand-card h2 {
    margin: 15px 0;
    color: #fff;
    font-size: 32px;
}

.five-per-thousand-label {
    max-width: 470px;
    margin: 0 auto 25px;
    font-size: 15px;
    line-height: 1.7;
}

.five-per-thousand-code-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.five-per-thousand-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: #fff;
    color: #222;
    border-radius: 3px;
}

.five-per-thousand-code span {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
}

.five-per-thousand-copy {
    padding: 10px 14px;
    border: 0;
    border-radius: 3px;
    background: #c90000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.five-per-thousand-copy:hover {
    background: #a80000;
}

.five-per-thousand-beneficiary {
    margin: 25px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .five-per-thousand-card {
        margin: 30px 15px;
        padding: 30px 18px;
    }

    .five-per-thousand-card h2 {
        font-size: 27px;
    }

    .five-per-thousand-code span {
        font-size: 21px;
    }
}


/* ==========================================
   MODULO CANDIDATURA
========================================== */

.job-application-form {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.application-fieldset {
    min-width: 0;
    margin: 0 0 30px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.application-fieldset legend {
    padding: 0 10px;
    color: #c90000;
    font-size: 20px;
    font-weight: 700;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.application-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.application-field:last-child {
    margin-bottom: 0;
}

.application-field label {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.application-field input,
.application-field select,
.application-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 15px;
}

.application-field input[type="file"] {
    padding: 10px;
}

.application-field textarea {
    resize: vertical;
}

.application-field input:focus,
.application-field select:focus,
.application-field textarea:focus {
    outline: 2px solid #c90000;
    outline-offset: 2px;
}

.application-help {
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.application-privacy {
    margin: 25px 0;
}

.application-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.application-privacy input {
    margin-top: 4px;
    accent-color: #c90000;
}

.job-application-form > button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 600px) {
    .job-application-form {
        padding: 0 12px;
    }

    .application-fieldset {
        padding: 18px;
    }

    .application-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Checkbox patenti CRI */

.application-checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    cursor: pointer;
}

.application-checkbox input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: #c90000;
}


/* =========================================
   PAGINA NOTIZIE - CROCE ROSSA PIZZIGHETTONE
   ========================================= */


/* HERO */

.news-page-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #a90000;
    font-family: 'Roboto', sans-serif;
}

.news-page-hero .page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(110, 0, 0, 0.88),
        rgba(201, 0, 0, 0.72)
    );
}

.news-page-hero .page-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 75px 30px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
}

.news-hero-eyebrow {
    display: block;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.news-page-hero .page-hero-content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.15;
}

.news-page-hero .page-hero-content p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
}


/* SEZIONE PRINCIPALE */

.news-section {
    width: 100%;
    padding: 75px 25px 65px;
    box-sizing: border-box;
    background: #fff;
    font-family: 'Roboto', sans-serif;
}

.news-section-heading {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.news-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: #c90000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.news-section-heading h2,
.news-newsletter-content h2 {
    margin: 0 0 20px;
    color: #252525;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.3;
}

.news-section-heading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}


/* GRIGLIA DELLE NOTIZIE */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px 28px;
    width: 100%;
    max-width: 1200px;
    margin: 45px auto 0;
    align-items: stretch;
}


/* SINGOLA SCHEDA */

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* IMMAGINI */

.news-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f1f1;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}


/* TESTI DELLE SCHEDE */

.news-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    box-sizing: border-box;
}

.news-card-date {
    display: block;
    margin-bottom: 12px;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.news-card-content h3 {
    margin: 0 0 14px;
    color: #c90000;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.news-card-content p {
    margin: 0 0 24px;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}


/* PULSANTI DELLE SCHEDE */

.news-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding: 12px 17px;
    border-radius: 3px;
    background: #c90000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.news-card-button:hover {
    background: #a80000;
    color: #fff;
}


/* CARICA ALTRE NOTIZIE - DISATTIVATO */

.news-load-more-container {
    display: flex;
    justify-content: center;
    margin: 45px 0 0;
}

.news-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    border: 1px solid #c90000;
    border-radius: 3px;
    background: #fff;
    color: #c90000;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    opacity: 0.65;
    cursor: not-allowed;
}

.news-load-more:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.news-load-more span {
    font-size: 16px;
}

.news-coming-soon {
    margin: 14px 0 0;
    color: #999;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}


/* SEZIONE NEWSLETTER */

.news-newsletter {
    padding: 65px 25px;
    background: #f7f7f7;
    font-family: 'Roboto', sans-serif;
}

.news-newsletter-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.news-newsletter-content h2 {
    margin-bottom: 18px;
}

.news-newsletter-content > p {
    max-width: 680px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 1.9;
}

.news-newsletter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 25px;
    margin-top: 28px;
}

.news-newsletter-button {
    display: inline-block;
    padding: 14px 22px;
    border: 1px solid #c90000;
    border-radius: 3px;
    background: #c90000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.2s ease;
}

.news-newsletter-button:hover {
    background: #a80000;
    color: #fff;
}

.news-newsletter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c90000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.news-newsletter-link:hover {
    text-decoration: underline;
}


/* TABLET */

@media (max-width: 1000px) {

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 22px;
    }

    .news-section {
        padding: 60px 22px;
    }

}


/* SMARTPHONE */

@media (max-width: 600px) {

    .news-page-hero {
        min-height: 290px;
    }

    .news-page-hero .page-hero-content {
        padding: 60px 20px;
    }

    .news-hero-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .news-page-hero .page-hero-content p {
        font-size: 15px;
    }

    .news-section {
        padding: 45px 18px 50px;
    }

    .news-section-heading h2,
    .news-newsletter-content h2 {
        font-size: 28px;
    }

    .news-section-heading p {
        font-size: 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-content h3 {
        font-size: 19px;
    }

    .news-card-content p {
        font-size: 14px;
    }

    .news-load-more-container {
        margin-top: 35px;
    }

    .news-load-more {
        padding: 13px 19px;
        font-size: 12px;
    }

    .news-newsletter {
        padding: 48px 20px;
    }

    .news-newsletter-content > p {
        font-size: 14px;
    }

    .news-newsletter-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .news-newsletter-button {
        max-width: 100%;
        box-sizing: border-box;
    }

}


/* ==========================================
   ARTICOLO NOTIZIE - CRI PIZZIGHETTONE
   ========================================== */

.news-article-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 60px 25px;
    overflow: hidden;
    box-sizing: border-box;
    background: #a90000;
    font-family: 'Roboto', sans-serif;
}

.news-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(100, 0, 0, 0.92),
        rgba(201, 0, 0, 0.78)
    );
}

.news-article-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    color: #fff;
}

.news-article-back {
    display: inline-block;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-article-back:hover {
    color: #fff;
    text-decoration: underline;
}

.news-article-category {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.news-article-hero-content h1 {
    max-width: 850px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(32px, 4.5vw, 51px);
    font-weight: 800;
    line-height: 1.2;
}

.news-article-hero-subtitle {
    max-width: 760px;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.7;
}

.news-article-meta-divider {
    opacity: 0.6;
}


/* CONTENUTO ARTICOLO */

.news-article {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 55px 25px 80px;
    box-sizing: border-box;
    color: #444;
    font-family: 'Roboto', sans-serif;
}


/* IMMAGINE PRINCIPALE */

.news-article-main-image {
    margin: 0 0 40px;
}

.news-article-main-image img {
    display: block;
    width: 100%;
    max-height: 540px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    background: #f1f1f1;
}

.news-article-main-image figcaption {
    margin-top: 12px;
    color: #888;
    font-size: 12px;
    line-height: 1.7;
}


/* RISULTATO IN EVIDENZA */

.news-article-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 45px;
    padding: 35px 25px;
    border: 1px solid #eee;
    border-top: 4px solid #c90000;
    background: #fafafa;
    text-align: center;
}

.news-article-highlight-label {
    margin-bottom: 12px;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.news-article-highlight strong {
    color: #c90000;
    font-size: clamp(45px, 7vw, 65px);
    font-weight: 800;
    line-height: 1.2;
}

.news-article-highlight p {
    max-width: 450px;
    margin: 12px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}


/* TESTO */

.news-article-body {
    max-width: 780px;
    margin: 0 auto;
}

.news-article-body p {
    margin: 0 0 24px;
    color: #555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.95;
}

.news-article-body .news-article-intro {
    color: #333;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
}

.news-article-body h2 {
    margin: 42px 0 18px;
    color: #292929;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.4;
}

.news-article-body strong {
    color: #333;
    font-weight: 700;
}


/* CITAZIONE */

.news-article-quote {
    margin: 38px 0;
    padding: 10px 0 10px 25px;
    border-left: 4px solid #c90000;
    color: #444;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.7;
}


/* FIRMA FINALE */

.news-article-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 55px 0 45px;
    text-align: center;
}

.news-article-signature-line {
    display: block;
    width: 55px;
    height: 3px;
    margin-bottom: 20px;
    background: #c90000;
}

.news-article-signature p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.9;
}

.news-article-signature strong {
    color: #333;
}


/* PULSANTI FINALI */

.news-article-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-article-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 19px;
    border: 1px solid #c90000;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.news-article-button-primary {
    background: #c90000;
    color: #fff;
}

.news-article-button-primary:hover {
    border-color: #a80000;
    background: #a80000;
    color: #fff;
}

.news-article-button-secondary {
    background: #fff;
    color: #c90000;
}

.news-article-button-secondary:hover {
    background: #c90000;
    color: #fff;
}


/* TABLET E SMARTPHONE */

@media (max-width: 600px) {

    .news-article-hero {
        min-height: 400px;
        padding: 40px 20px;
    }

    .news-article-back {
        margin-bottom: 30px;
    }

    .news-article-category {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .news-article-hero-subtitle {
        font-size: 15px;
    }

    .news-article-meta {
        font-size: 11px;
    }

    .news-article {
        padding: 30px 18px 55px;
    }

    .news-article-main-image {
        margin-bottom: 30px;
    }

    .news-article-main-image img {
        aspect-ratio: 4 / 3;
    }

    .news-article-highlight {
        margin-bottom: 35px;
        padding: 28px 18px;
    }

    .news-article-body p {
        font-size: 15px;
        line-height: 1.85;
    }

    .news-article-body .news-article-intro {
        font-size: 16px;
    }

    .news-article-body h2 {
        margin-top: 35px;
        font-size: 23px;
    }

    .news-article-quote {
        padding-left: 18px;
        font-size: 18px;
    }

    .news-article-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .news-article-button {
        width: 100%;
        box-sizing: border-box;
    }

}


/* ==========================================
   ARTICOLO SPIEDO BRESCIANO SOLIDALE
   ========================================== */

.spiedo-article-hero {
    background: #a90000;
}

.spiedo-article-hero .news-article-hero-overlay {
    background: linear-gradient(
        120deg,
        rgba(95, 0, 0, 0.93),
        rgba(201, 0, 0, 0.75)
    );
}


/* INFORMAZIONI PRINCIPALI */

.spiedo-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 45px;
}

.spiedo-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 25px 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
    text-align: center;
}

.spiedo-info-icon {
    margin-bottom: 12px;
    font-size: 25px;
}

.spiedo-info-label {
    margin-bottom: 9px;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.spiedo-info-card strong {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}


/* MENU */

.spiedo-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 30px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.spiedo-menu-list li {
    position: relative;
    padding: 12px 12px 12px 32px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.spiedo-menu-list li::before {
    position: absolute;
    top: 12px;
    left: 5px;
    color: #c90000;
    content: "\2713";
    font-size: 16px;
    font-weight: 800;
}

.spiedo-menu-note {
    padding: 17px 20px;
    border-left: 3px solid #c90000;
    background: #f7f7f7;
    color: #666 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
}


/* PRENOTAZIONI */

.spiedo-booking {
    margin: 50px 0;
    padding: 40px 30px;
    border-top: 4px solid #c90000;
    background: #f7f7f7;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.spiedo-booking-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #c90000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.spiedo-booking h2 {
    margin: 0 0 15px;
    color: #292929;
    font-size: 28px;
    line-height: 1.4;
}

.spiedo-booking > p {
    max-width: 600px;
    margin: 0 auto 28px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.spiedo-booking-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 30px;
}

.spiedo-booking-details > div {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.spiedo-booking-label {
    color: #888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.spiedo-booking-details a,
.spiedo-booking-details strong {
    overflow-wrap: anywhere;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
}

.spiedo-booking-details a:hover {
    color: #c90000;
    text-decoration: underline;
}

.spiedo-booking .news-article-button {
    display: inline-flex;
}


/* RINGRAZIAMENTI */

.spiedo-thanks {
    margin: 45px 0;
    text-align: center;
}

.spiedo-thanks h2 {
    margin: 0 0 15px;
    color: #292929;
    font-size: 25px;
    line-height: 1.4;
}

.spiedo-thanks p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 1.9;
}


/* TABLET */

@media (max-width: 800px) {

    .spiedo-info-grid {
        gap: 12px;
    }

    .spiedo-info-card {
        padding: 20px 10px;
    }

    .spiedo-info-card strong {
        font-size: 13px;
    }

    .spiedo-booking-details {
        gap: 15px;
    }

}


/* SMARTPHONE */

@media (max-width: 600px) {

    .spiedo-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spiedo-info-card {
        padding: 18px;
    }

    .spiedo-menu-list {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .spiedo-booking {
        margin: 35px 0;
        padding: 30px 20px;
    }

    .spiedo-booking h2 {
        font-size: 24px;
    }

    .spiedo-booking-details {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .spiedo-booking-details > div {
        align-items: center;
    }

    .spiedo-thanks h2 {
        font-size: 23px;
    }

}


/* ==========================================
   ARTICOLO FORMULA 1 - MONZA 2026
   ========================================== */

.f1-article-hero {
    background: #171717;
}

.f1-article-hero .news-article-hero-overlay {
    background: linear-gradient(
        120deg,
        rgba(15, 15, 15, 0.94),
        rgba(65, 0, 0, 0.78)
    );
}


/* INFORMAZIONI PRINCIPALI */

.f1-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 45px;
}

.f1-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 25px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fafafa;
    text-align: center;
}

.f1-info-label {
    margin-bottom: 12px;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.f1-info-card strong {
    color: #c90000;
    font-size: 18px;
    line-height: 1.5;
}

.f1-info-card p {
    margin: 8px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.7;
}


/* GALLERIA */

.f1-gallery {
    margin: 55px 0;
}

.f1-gallery-heading {
    margin-bottom: 28px;
    text-align: center;
}

.f1-gallery-heading h2 {
    margin: 0 0 12px;
    color: #292929;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
}

.f1-gallery-heading p {
    margin: 0;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.f1-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.f1-gallery-grid figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f1f1f1;
}

.f1-gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.f1-gallery-grid figure:hover img {
    transform: scale(1.04);
}

.f1-gallery-note {
    margin: 15px 0 0;
    color: #999;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}


/* TABLET */

@media (max-width: 800px) {

    .f1-info-grid {
        gap: 12px;
    }

    .f1-info-card {
        padding: 20px 10px;
    }

    .f1-info-card strong {
        font-size: 15px;
    }

    .f1-gallery-grid {
        gap: 12px;
    }

}


/* SMARTPHONE */

@media (max-width: 600px) {

    .f1-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .f1-info-card {
        padding: 18px;
    }

    .f1-info-card strong {
        font-size: 16px;
    }

    .f1-gallery {
        margin: 40px 0;
    }

    .f1-gallery-heading h2 {
        font-size: 24px;
    }

    .f1-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .f1-gallery-grid img {
        aspect-ratio: 16 / 10;
    }

}

/* Adattamenti WordPress e responsive */
body { margin: 0; }
img { max-width: 100%; }
.site-content { min-height: 50vh; }
.wp-content-page { max-width: 1180px; margin: 0 auto; padding: 48px 5%; }
.wp-content-page h1 { color: #c90000; }
.news-section { padding: 60px 5%; }
.news-section-heading { max-width: 900px; margin: 0 auto 35px; text-align: left; }
.wp-news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.wp-news-card { overflow: hidden; border-radius: 8px; box-shadow: 0 4px 18px #00000012; background: #fff; }
.wp-news-card img { display: block; width: 100%; height: 220px; object-fit: cover; }
.wp-news-card-content { padding: 20px; }
.wp-news-card h3 { margin-top: 0; }
.wp-news-card a { color: #b90000; }
.wp-news-card p { line-height: 1.6; }
.menu-toggle { display:none; background:#c90000; color:#fff; border:0; padding:10px 14px; border-radius:4px; }
@media(max-width: 950px) { .navbar { flex-wrap:wrap; min-height:auto; } .logo-cri img { width:180px; height:auto; } .menu { flex-wrap:wrap; gap:12px; } .topbar { flex-wrap:wrap; } .topbar-contatti { flex-wrap:wrap; gap:12px; } .wp-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width: 640px) { .navbar { padding:14px 4%; } .menu { width:100%; gap:10px; justify-content:flex-start; } .menu-link { font-size:12px; padding:8px 0; } .dropdown { min-width:190px; } .topbar-logo img { width:58px; } .topbar-contatti { font-size:12px; } .hero-carousel { height:480px; } .slide-overlay { left:12px; right:12px; padding:12px; } .wp-news-grid { grid-template-columns:1fr; } .wp-content-page { padding:32px 5%; } }

/* FOOTER */
.site-footer {
    background: #262626;
    color: #fff;
    padding: 40px 6% 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.3fr 0.8fr;
    gap: 45px;
    padding-bottom: 55px;
}

.footer-grid h2 {
    font-size: 1.5rem;
    margin: 0 0 45px;
}

.footer-brand img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.footer-mission p {
    line-height: 1.8;
}

.footer-grid a {
    color: #ff3038;
    text-decoration: none;
}

.footer-grid a:hover {
    text-decoration: underline;
}

.footer-mission > a {
    color: #fff;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-bottom {
    border-top: 1px solid #888;
    padding: 38px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom p {
    margin: 0;
    text-align: right;
}

.footer-social {
    display: flex;
    gap: 25px;
}

.footer-social a {
    width: 58px;
    height: 58px;
    border: 1px solid #aaa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .footer-grid h2 {
        margin-bottom: 20px;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 35px 6% 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom p {
        text-align: left;
        line-height: 1.6;
    }
}


/* ========================================
   FONT GLOBALE - CROCE ROSSA PIZZIGHETTONE
   ======================================== */

html,
body,
button,
input,
select,
textarea {
    font-family: "Roboto Condensed", sans-serif;
}

body {
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: "Roboto Condensed", sans-serif;
}

.navbar,
.menu,
.menu a,
.dropdown,
.site-footer,
.site-footer a,
.news-card,
.wp-news-card,
.hero-button {
    font-family: "Roboto Condensed", sans-serif;
}


/* ===== HOMEPAGE WORDPRESS: CORREZIONI ===== */

.hero-carousel {
    position: relative;
    width: calc(100% - 32px);
    height: clamp(420px, 37vw, 560px);
    margin: 16px auto 36px;
    overflow: hidden;
    background: #222;
    border-radius: 6px;
}

.hero-carousel .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease;
}

.hero-carousel .carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-carousel .carousel-slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 7vw, 100px);
    color: #fff;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.62),
        rgba(0, 0, 0, 0.08)
    );
}

.hero-carousel .slide-overlay h1,
.hero-carousel .slide-overlay h2 {
    max-width: 650px;
    margin: 16px 0;
    color: #fff;
    font-size: clamp(2.3rem, 4.5vw, 4.5rem);
    line-height: 1.08;
}

.hero-carousel .slide-overlay p {
    max-width: 600px;
    line-height: 1.8;
}

.news-section {
    padding: 70px 24px;
    background: #fff;
}

.news-section-heading {
    max-width: 1200px;
    margin: 0 auto 36px;
}

.wp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.wp-news-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.wp-news-card > a:first-child {
    display: block;
    overflow: hidden;
}

.wp-news-card > a:first-child img {
    display: block;
    width: 100%;
    height: 265px;
    object-fit: cover;
}

.wp-news-card-content {
    padding: 24px;
}

.wp-news-card-content h3 {
    line-height: 1.35;
}

.wp-news-card-content h3 a {
    color: #222;
    text-decoration: none;
}

.wp-news-card-content > a:last-child {
    color: #c90000;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 850px) {
    .wp-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hero-carousel {
        width: calc(100% - 20px);
        height: 460px;
        margin: 10px auto 24px;
    }

    .hero-carousel .slide-overlay {
        padding: 24px;
    }

    .wp-news-grid {
        grid-template-columns: 1fr;
    }

    .wp-news-card > a:first-child img {
        height: 230px;
    }

    .news-section {
        padding: 45px 16px;
    }
}



/* CAROSELLO: frecce e indicatori */
.hero-carousel .carousel-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-carousel .carousel-arrow:hover {
    background: #c90000;
}

.hero-carousel .carousel-arrow.prev {
    left: 20px;
}

.hero-carousel .carousel-arrow.next {
    right: 20px;
}

.hero-carousel .carousel-dots {
    position: absolute;
    z-index: 5;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.hero-carousel .dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-carousel .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-carousel .carousel-arrow:focus-visible,
.hero-carousel .dot:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.carousel-empty {
    display: grid;
    align-content: center;
    height: 100%;
    padding: 40px;
    color: #fff;
}

@media (max-width: 560px) {
    .hero-carousel .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .hero-carousel .carousel-arrow.prev {
        left: 10px;
    }

    .hero-carousel .carousel-arrow.next {
        right: 10px;
    }
}


/* =========================================
   CAROSELLO HOMEPAGE - CRI PIZZIGHETTONE
   ========================================= */

.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(350px, 35vw, 540px);
    overflow: hidden;
    background: #222;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.hero-carousel .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.hero-carousel .carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-carousel .carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.42) 48%,
        rgba(0, 0, 0, 0.12) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-carousel .carousel-slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel .slide-overlay {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(28px, 11%, 210px);
    right: 10%;
    transform: translateY(-50%);
    max-width: 1000px;
    color: #fff;
    background: transparent;
    padding: 0;
}

.hero-carousel .slide-overlay > span {
    display: block;
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-carousel .slide-overlay h1,
.hero-carousel .slide-overlay h2 {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(38px, 5vw, 82px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-carousel .slide-overlay p {
    max-width: 850px;
    margin: 0 0 34px;
    color: #fff;
    font-size: clamp(17px, 1.7vw, 28px);
    line-height: 1.55;
}

.hero-carousel .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 30px;
    min-height: 60px;
    background: #d40000;
    color: #fff;
    border: 0;
    border-radius: 3px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel .hero-button:hover {
    background: #a90000;
    color: #fff;
    transform: translateY(-2px);
}

/* Frecce laterali */

.hero-carousel .prev,
.hero-carousel .next {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-carousel .prev {
    left: 35px;
}

.hero-carousel .next {
    right: 35px;
}

.hero-carousel .prev:hover,
.hero-carousel .next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Pallini cliccabili sotto il carosello */

.hero-carousel .carousel-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-carousel .dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-carousel .dot.active {
    background: #fff;
}

/* Adattamento per smartphone */

@media (max-width: 768px) {
    .hero-carousel {
        height: 540px;
    }

    .hero-carousel .slide-overlay {
        left: 25px;
        right: 25px;
    }

    .hero-carousel .slide-overlay h1,
    .hero-carousel .slide-overlay h2 {
        font-size: clamp(36px, 9vw, 54px);
        letter-spacing: -0.5px;
    }

    .hero-carousel .slide-overlay p {
        font-size: 17px;
    }

    .hero-carousel .hero-button {
        min-height: 50px;
        padding: 15px 23px;
        font-size: 16px;
    }

    .hero-carousel .prev,
    .hero-carousel .next {
        top: auto;
        bottom: 16px;
        width: 42px;
        height: 42px;
        font-size: 25px;
    }

    .hero-carousel .prev {
        left: 16px;
    }

    .hero-carousel .next {
        right: 16px;
    }

    .hero-carousel .carousel-dots {
        bottom: 31px;
    }
}


/* Pulsante carosello: testo e freccia sempre visibili */
.hero-carousel .slide-overlay a.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 25px 26px;
    background: #d40000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.hero-carousel .slide-overlay .hero-button-text {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
    font-size: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-carousel .slide-overlay .hero-button-arrow {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
    font-size: 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
}



/* NEWSLETTER CRI */
.cri-newsletter {
    background: #c90016;
    color: #fff;
    
}

.cri-newsletter-inner {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.cri-newsletter-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cri-newsletter-text h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.cri-newsletter-text p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1.7;
}

.cri-newsletter-label {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.cri-newsletter-input-group {
    display: flex;
    gap: 8px;
}

.cri-newsletter-input-group input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 3px;
    background: #fff;
    color: #222;
    font-size: 15px;
}

.cri-newsletter-input-group button {
    height: 52px;
    padding: 0 20px;
    border: 1px solid #fff;
    border-radius: 3px;
    background: #fff;
    color: #b80014;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.cri-newsletter-input-group button:hover {
    background: #f2f2f2;
}

.cri-newsletter-privacy {
    margin: 12px 0 0;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    line-height: 1.6;
}

.cri-newsletter-privacy a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .cri-newsletter {
        padding: 42px 20px;
    }

    .cri-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cri-newsletter-input-group {
        flex-direction: column;
    }

    .cri-newsletter-input-group input,
    .cri-newsletter-input-group button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* ========================================
   ARCHIVIO NOTIZIE - CRI PIZZIGHETTONE
======================================== */

.cri-news-archive {
    padding-top: 20px;
    padding-bottom: 80px;
}

.cri-news-archive-header {
    max-width: 850px;
    margin: 0 0 42px;
}

.cri-news-archive-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #c90016;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cri-news-archive-header h2 {
    margin: 0 0 18px;
    color: #172536;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
}

.cri-news-archive-header p {
    margin: 0;
    color: #626d79;
    font-size: 17px;
    line-height: 1.8;
}

/* Griglia delle notizie */

.cri-news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Singola card */

.cri-news-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e9edf1;
    border-radius: 12px;
    box-shadow: 0 5px 22px rgba(20, 35, 50, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cri-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(20, 35, 50, 0.13);
}

/* Immagini */

.cri-news-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f2f4;
}

.cri-news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cri-news-card:hover .cri-news-card-image img {
    transform: scale(1.04);
}

.cri-news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    color: #ffffff;
    background: linear-gradient(135deg, #b80014, #e32636);
    font-size: 17px;
    font-weight: 800;
    text-align: center;
}

/* Contenuto */

.cri-news-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 25px;
}

.cri-news-card-content time {
    display: block;
    margin-bottom: 13px;
    color: #c90016;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.cri-news-card-content h3 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 750;
}

.cri-news-card-content h3 a {
    color: #172536;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cri-news-card-content h3 a:hover {
    color: #c90016;
}

.cri-news-card-content p {
    margin: 0 0 24px;
    color: #65717e;
    font-size: 15px;
    line-height: 1.75;
}

.cri-news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 17px;
    border-radius: 5px;
    background: #c90016;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.cri-news-card-link:hover {
    background: #990011;
}

/* Paginazione */

.cri-news-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
}

.cri-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #e0e4e9;
    border-radius: 6px;
    color: #172536;
    text-decoration: none;
}

.cri-news-pagination .page-numbers.current,
.cri-news-pagination .page-numbers:hover {
    border-color: #c90016;
    background: #c90016;
    color: #ffffff;
}

/* Tablet */

@media (max-width: 1000px) {
    .cri-news-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .cri-news-card-content {
        padding: 22px;
    }
}

/* Smartphone */

@media (max-width: 640px) {
    .cri-news-archive {
        padding-top: 10px;
        padding-bottom: 45px;
    }

    .cri-news-archive-header {
        margin-bottom: 28px;
    }

    .cri-news-archive-header p {
        font-size: 15px;
    }

    .cri-news-archive-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cri-news-card-content {
        padding: 21px;
    }

    .cri-news-card-content h3 {
        font-size: 20px;
    }
}



/* ========================================
   PAGINA SINGOLO ARTICOLO
======================================== */

.cri-single-article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 30px 70px;
}

.cri-article-date {
    margin: 0 0 12px;
    color: #c90016;
    font-size: 14px;
    font-weight: 700;
}

.cri-article-title {
    margin: 0 0 30px;
    color: #172536;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 800;
}

.cri-article-featured-image {
    margin-bottom: 35px;
    overflow: hidden;
    border-radius: 12px;
}

.cri-article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.cri-article-content {
    color: #354252;
    font-size: 17px;
    line-height: 1.85;
}

.cri-article-content p {
    margin-bottom: 22px;
}

.cri-article-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .cri-single-article {
        padding: 20px 18px 45px;
    }

    .cri-article-title {
        font-size: 32px;
    }

    .cri-article-content {
        font-size: 16px;
    }
}


/* Navigazione articolo: sinistra, centro, destra */

.cri-article-navigation-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 45px 0 65px;
}

.cri-article-navigation-prev {
    justify-self: start;
}

.cri-article-home {
    justify-self: center;
    margin-top: 0;
}

.cri-article-navigation-next {
    justify-self: end;
}

.cri-article-navigation-prev a,
.cri-article-navigation-next a,
.cri-article-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid #c90016;
    border-radius: 6px;
    background: #c90016;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cri-article-navigation-prev a:hover,
.cri-article-navigation-next a:hover,
.cri-article-home-button:hover {
    background: #990011;
    transform: translateY(-2px);
}

/* Smartphone */

@media (max-width: 600px) {
    .cri-article-navigation-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cri-article-home {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .cri-article-navigation-prev a,
    .cri-article-navigation-next a,
    .cri-article-home-button {
        padding: 11px 12px;
        font-size: 12px;
    }
}


/* ========================================
   TAG ARTICOLI - CRI PIZZIGHETTONE
======================================== */

.cri-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 28px;
}

.cri-article-tags-label {
    width: 100%;
    margin-bottom: 3px;
    color: #737e89;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cri-article-tags a {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid #f0c5ca;
    border-radius: 50px;
    background: #fff1f2;
    color: #b80014 !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none !important;
    transition: background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.cri-article-tags a:hover {
    border-color: #c90016;
    background: #c90016;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .cri-article-tags {
        gap: 7px;
        margin-bottom: 22px;
    }

    .cri-article-tags a {
        padding: 6px 11px;
        font-size: 12px;
    }
}


/* ========================================
   RICERCA AVANZATA NOTIZIE
======================================== */

.cri-news-filters {
    margin: 42px 0 48px;
    padding: 30px;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #f8f9fb;
    box-shadow: 0 5px 22px rgba(20, 35, 50, 0.04);
}

.cri-news-filters-heading {
    margin-bottom: 25px;
}

.cri-news-filters-heading h2 {
    margin: 0 0 8px;
    color: #172536;
    font-size: 25px;
    font-weight: 800;
}

.cri-news-filters-heading p {
    margin: 0;
    color: #687582;
    font-size: 15px;
    line-height: 1.6;
}

.cri-news-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cri-news-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cri-news-filter-field label {
    color: #263445;
    font-size: 13px;
    font-weight: 750;
}

.cri-news-filter-field input,
.cri-news-filter-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d9dfe6;
    border-radius: 6px;
    background: #ffffff;
    color: #263445;
    font-family: inherit;
    font-size: 14px;
}

.cri-news-filter-field input:focus,
.cri-news-filter-field select:focus {
    outline: 2px solid rgba(201, 0, 22, 0.15);
    border-color: #c90016;
}

.cri-news-filter-field select:disabled {
    background: #eceff2;
    color: #8a939d;
    cursor: not-allowed;
}

.cri-news-filter-date {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cri-news-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cri-news-filter-submit {
    min-height: 45px;
    padding: 12px 22px;
    border: 1px solid #c90016;
    border-radius: 6px;
    background: #c90016;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cri-news-filter-submit:hover {
    background: #990011;
}

.cri-news-filter-reset {
    color: #5f6b78;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.cri-news-filter-reset:hover {
    color: #c90016;
    text-decoration: underline;
}

/* Intestazione risultati */

.cri-news-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.cri-news-results-heading h2 {
    margin: 0;
    color: #172536;
    font-size: 25px;
    font-weight: 800;
}

.cri-news-results-heading span {
    color: #687582;
    font-size: 14px;
}

/* Tag sulle card */

.cri-news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 22px;
}

.cri-news-card-tags a {
    padding: 5px 9px;
    border: 1px solid #f0c5ca;
    border-radius: 30px;
    background: #fff1f2;
    color: #b80014;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.cri-news-card-tags a:hover {
    background: #c90016;
    color: #ffffff;
}

/* Nessun risultato */

.cri-news-no-results {
    padding: 42px 25px;
    border: 1px dashed #d9dfe6;
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
}

.cri-news-no-results h3 {
    margin: 0 0 10px;
    color: #172536;
    font-size: 22px;
}

.cri-news-no-results p {
    color: #687582;
}

.cri-news-no-results a {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 17px;
    border-radius: 6px;
    background: #c90016;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

/* Responsive */

@media (max-width: 700px) {
    .cri-news-filters {
        margin: 28px 0 35px;
        padding: 20px 16px;
    }

    .cri-news-filter-date {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cri-news-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cri-news-filter-submit {
        width: 100%;
    }

    .cri-news-filter-reset {
        text-align: center;
    }
}


/* CHI SIAMO - correzione sezione storia */
.about-section.about-history {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 40px 0 60px;
}

.wp-content-page {
    background: #f5f5f5;
}

.about-breadcrumb {
    margin-bottom: 1px;
}

.about-history .about-section-heading {
    margin-bottom: 28px;
}

.about-history .about-text {
    max-width: 100%;
    padding: 0;
    margin: 0;
}


/* CHI SIAMO — gerarchia dei titoli */
.about-history .about-section-heading h2 {
    font-size: 50px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -2px;
    margin: 22px 0 30px;
    color: #292929;
}

/* Sottotitolo con barretta rossa */
.about-history .about-section-heading h3,
.about-history .about-text h2,
.about-history .about-text h3 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 500;
    color: #292929;
    border-left: 6px solid #c90016;
    padding-left: 20px;
    margin: 32px 0 24px;
}

/* Sottotitolo con barretta rossa */
.about-history .about-section-heading h4,
.about-history .about-text h4{
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
    color: #292929;
    border-left: 6px solid #c90016;
    padding-left: 20px;
    margin: 32px 0 24px;
}

/* Etichetta sopra il titolo */
.about-history .about-eyebrow {
    display: block;
    color: #c90016;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Testo descrittivo */
.about-history .about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin: 0 0 22px;
}

/* Adattamento smartphone */
@media (max-width: 768px) {
    .about-history .about-section-heading h2 {
        font-size: 46px;
        letter-spacing: -1px;
    }

    .about-history .about-section-heading h3,
    .about-history .about-text h2,
    .about-history .about-text h3 {
        font-size: 27px;
        padding-left: 14px;
        border-left-width: 5px;
    }

    .about-history .about-text p {
        font-size: 17px;
        line-height: 1.75;
    }
}



/* CHI SIAMO — allineamento e larghezza del contenuto */
.wp-content-page {
    width: 90%;
    overflow-wrap: break-word;
}

.about-history {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.about-history .about-section-heading,
.about-history .about-text {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.about-history .about-text p {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Smartphone */
@media (max-width: 768px) {
    .about-history {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* CHI SIAMO — nasconde le immagini originali dell'editor */
.cri-about-page .about-text figure.wp-block-image {
    display: none;
}


/* CHI SIAMO - correzione sezione storia */
.about-section.about-history-2 {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 40px 0 60px;
}

.wp-content-page {
    background: #f5f5f5;
}

.about-breadcrumb {
    margin-bottom: 1px;
}

.about-history-2 .about-section-heading {
    margin-bottom: 28px;
}

.about-history-2 .about-text {
    max-width: 100%;
    padding: 0;
    margin: 0;
}


/* CHI SIAMO — gerarchia dei titoli */
.about-history-2 .about-section-heading h2 {
    font-size: 50px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -2px;
    margin: 22px 0 30px;
    color: #292929;
}

/* Sottotitolo con barretta rossa */
.about-history-2 .about-section-heading h3,
.about-history-2 .about-text h2,
.about-history-2 .about-text h3 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 500;
    color: #292929;
    border-left: 6px solid #c90016;
    padding-left: 20px;
    margin: 32px 0 24px;
}

/* Sottotitolo con barretta rossa */
.about-history-2 .about-section-heading h4,
.about-history-2 .about-text h4{
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
    color: #292929;
    border-left: 6px solid #c90016;
    padding-left: 20px;
    margin: 32px 0 24px;
}

/* Etichetta sopra il titolo */
.about-history-2 .about-eyebrow {
    display: block;
    color: #c90016;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Testo descrittivo */
.about-history-2 .about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin: 0 0 22px;
}

/* Adattamento smartphone */
@media (max-width: 768px) {
    .about-history-2 .about-section-heading h2 {
        font-size: 46px;
        letter-spacing: -1px;
    }

    .about-history-2 .about-section-heading h3,
    .about-history-2 .about-text h2,
    .about-history-2 .about-text h3 {
        font-size: 27px;
        padding-left: 14px;
        border-left-width: 5px;
    }

    .about-history-2 .about-text p {
        font-size: 17px;
        line-height: 1.75;
    }
}



/* CHI SIAMO — allineamento e larghezza del contenuto */
.wp-content-page {
    width: 90%;
    overflow-wrap: break-word;
}

.about-history-2 {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.about-history-2 .about-section-heading,
.about-history-2 .about-text {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.about-history-2 .about-text p {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Smartphone */
@media (max-width: 768px) {
    .about-history-2 {
        padding-left: 20px;
        padding-right: 20px;
    }
}



