/* =========================================================
   L'AGENTE INDIPENDENTE — CSS PERSONALIZZATO
   ========================================================= */


/* =========================================================
   IMPOSTAZIONI GENERALI
   ========================================================= */

body {
    background-color: #F7F8F8;
}

.entry-content {
    color: #33383D;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #315A78;
}

.entry-meta,
.entry-meta a,
.post-meta,
.post-meta a {
    color: #697078;
}

.wp-element-caption,
.wp-caption-text,
figcaption {
    color: #737A80;
}


/* =========================================================
   ARTICOLO — CORPO
   ========================================================= */

.single-post .entry-content,
.single-post .entry-content p {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px;
    line-height: 1.65;
    color: #33383D;
}

.single-post .entry-content p {
    text-align: justify !important;
    margin-bottom: 1.15em;
}


/* =========================================================
   ARTICOLO — TITOLO
   ========================================================= */

.single-post .entry-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 48px;
    line-height: 1.12;
    font-weight: 700;
    color: #315A78;
    margin-bottom: 12px;
}


/* =========================================================
   ARTICOLO — OCCHIELLO
   ========================================================= */

.single-post .entry-content .occhiello {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #697078;
}


/* =========================================================
   ARTICOLO — CATENACCIO
   ========================================================= */

.single-post .entry-content .catenaccio {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.45;
    color: #555555;
}


/* =========================================================
   ARTICOLO — DIDASCALIE
   ========================================================= */

.single-post .entry-content figcaption,
.single-post .entry-content .wp-element-caption,
.single-post .entry-content .wp-caption-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #737A80;
}


/* =========================================================
   ARTICOLO — METADATI
   ========================================================= */

.single-post .entry-meta,
.single-post .post-meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #697078;
}


/* =========================================================
   ARTICOLO — FIRMA AUTORE
   ========================================================= */

.single-post .firma-autore-articolo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    color: #59636C;
}

.single-post .firma-autore-articolo img {
    max-width: 200px;
    height: auto;
}

.single-post .firma-autore-articolo em {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: #737A80;
}


/* =========================================================
   SCHEDE HOME E ARCHIVI
   Autore e data in carattere normale.
   Le categorie restano gestite da Blocksy.
   ========================================================= */

.entry-card .entry-meta .meta-author,
.entry-card .entry-meta .meta-author *,
.entry-card .entry-meta .meta-date,
.entry-card .entry-meta .meta-date * {
    text-transform: none !important;
    --theme-text-transform: none !important;
}


/* =========================================================
   SMARTPHONE — ARTICOLO
   ========================================================= */

@media (max-width: 767px) {

    .single-post .entry-content .wp-block-image.alignleft,
    .single-post .entry-content .wp-block-image.alignright {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 1.5em auto !important;
    }

    .single-post .entry-content .wp-block-image.alignleft img,
    .single-post .entry-content .wp-block-image.alignright img {
        width: 100% !important;
        height: auto !important;
    }

    .single-post .entry-content .wp-block-image figcaption {
        text-align: center;
    }

    .ai-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ai-occhiello {
        font-size: 12px;
        line-height: 1.3;
    }

   .single-post .ai-titolo {
    font-size: 30px !important;
    line-height: 1.08 !important;
}

    .ai-catenaccio {
        font-size: 18px;
        line-height: 1.35;
    }

    .ai-meta {
        font-size: 12px;
        line-height: 1.4;
    }

    .ai-contenuto {
        padding-left: 8px;
        padding-right: 8px;
    }

    .ai-contenuto p {
        font-size: 15px;
    }

    .ai-contenuto figure.wp-block-image.alignright,
    .ai-contenuto figure.wp-block-image.alignleft {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 25px auto 10px auto;
    }

    .ai-contenuto figure.wp-block-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}

.page-id-192 .ai-meta {
    display: none;
}
.entry-card .entry-meta .meta-author,
.entry-card .entry-meta .meta-date {
    text-transform: none !important;
}
/* ==========================================
   TESTATA ARTICOLO – STILE EDITORIALE
   ========================================== */

.single-post .ai-occhiello {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
   color: #315A78 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px !important;
}

.single-post .ai-titolo {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 38px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    color: #315A78 !important;
    margin-bottom: 12px !important;
}

.single-post .ai-catenaccio {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #315A78 !important;
    margin-bottom: 18px !important;
}
/* =========================================================
   TITOLI DELLE SEZIONI
   In evidenza / Ultimi articoli / Vi consigliamo... / Newsletter
   ========================================================= */

.ai-section-title {
    margin: 70px 0 35px;
    padding: 22px 0;
    border-top: 1px solid #190a73;
    border-bottom: 1px solid #190a73;
    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: #190a73;
}
/* NASCONDE IL TITOLO AUTOMATICO DELLE PAGINE */

.page .ai-titolo {
    display: none !important;
}
/* HOME – TITOLI DEGLI ARTICOLI */


/* HOME – CATENACCIO ARTICOLO IN EVIDENZA */

body.page-id-192 li.post-180 .home-catenaccio {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 24px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #315A78 !important;
}


/* Ripristino del testo dell'estratto */

body.page-id-192 li.post-180 .wp-block-post-excerpt {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #315A78 !important;
}
/* RIDUZIONE OCCHIELLO HOME */
body.page-id-192 li.post-180 h2.ai-section-title + .home-catenaccio {
    font-size: 19px !important;
}
/* PAGINA ARTICOLO - spazio sotto header */
.single-post .site-main {
    border-top: 1px solid #315A78;
    padding-top: 28px;
}
/* PAGINA ARTICOLO - immagine 16:9 a tutta larghezza */
.single-post .wp-block-post-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

.single-post .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* =========================================================
   ARTICOLO — IMMAGINI INTERNE AL TESTO
   Mantiene le proporzioni originali e consente
   l'allineamento a destra o a sinistra.
   ========================================================= */

.single-post .entry-content .wp-block-image.alignleft {
    float: left;
    width: auto;
    max-width: 50%;
    margin: 0.5em 1.5em 1em 0;
}

.single-post .entry-content .wp-block-image.alignright {
    float: right;
    width: auto;
    max-width: 50%;
    margin: 0.5em 0 1em 1.5em;
}

.single-post .entry-content .wp-block-image.alignleft img,
.single-post .entry-content .wp-block-image.alignright img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
}
.single-post .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}
/* NASCONDE I METADATI DELLE PAGINE */
.page .ai-meta {
    display: none !important;
}
/* HOME — banner newsletter senza ritaglio */
.page-id-192 .wp-block-image {
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
}

.page-id-192 .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    display: block !important;
    contain-intrinsic-size: auto !important;
}
/* HOME — UNIFORMITÀ TITOLI NEWSLETTER E SUGGERITI */
.page-id-192 .wp-elements-1,
.page-id-192 .wp-elements-2 {
    font-family: Georgia, "Times New Roman", serif !important;
    color: rgb(25, 10, 115) !important;
}
/* TITOLI ARCHIVI E RUBRICHE */
.hero-section .page-title {
    font-family: Georgia, "Times New Roman", serif !important;
    color: rgb(25, 10, 115) !important;
    font-weight: 400 !important;
    font-size: 30px !important;
}
/* ARCHIVIO GENERALE */
.page-id-134 h1.wp-block-heading {
    font-family: Georgia, "Times New Roman", serif !important;
    color: rgb(25, 10, 115) !important;
    font-weight: 400 !important;
    font-size: 30px !important;
}
/* ARCHIVIO GENERALE — righe dei titoli */
.page-id-134 .wp-block-separator {
    background-color: #190a73 !important;
    height: 1px !important;
    border: 0 !important;
}
/* PAGINE — righe sopra e sotto il titolo */
body.page:not(.home) .ai-articolo .ai-contenuto > hr.wp-block-separator:has(+ h1.wp-block-heading),
body.page:not(.home) .ai-articolo .ai-contenuto > h1.wp-block-heading + hr.wp-block-separator {
    background-color: #190a73 !important;
    height: 1px !important;
    border: 0 !important;
}
/* RUBRICHE — titolo con righe */
body.archive.category .hero-section .entry-header {
    border-top: 1px solid #190a73 !important;
    border-bottom: 1px solid #190a73 !important;
}

body.archive.category .hero-section .entry-header .page-title {
    color: #190a73 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 18px 0 !important;
}
/* PAGINE INTERNE — uniforma titoli e righe */
body.page:not(.home):not(.page-id-134) .ai-articolo .ai-contenuto h1.wp-block-heading,
body.page:not(.home):not(.page-id-134) .ai-articolo .ai-contenuto h2.wp-block-heading {
    color: #190a73 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

body.page:not(.home):not(.page-id-134) .ai-articolo .ai-contenuto hr.wp-block-separator {
    background-color: #190a73 !important;
    height: 1px !important;
    border: 0 !important;
}
/* SUGGERITI DALLA REDAZIONE - struttura definitiva */

.snap-carousel-2 .articoli-wrap > figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}
.snap-carousel-2 .articoli-wrap > figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}
.snap-carousel-2 .articoli-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.snap-carousel-2 .articoli-wrap > figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.snap-carousel-2 .articoli-wrap > figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.snap-carousel-2 .articoli-wrap > .testo-articolo {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}
/* SUGGERITI DALLA REDAZIONE - larghezza della singola slide */

.snap-carousel-2 .flexy-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}
/* SUGGERITI DALLA REDAZIONE - slide a tutta larghezza */

/* SUGGERITI DALLA REDAZIONE - larghezza completa */

.snap-carousel-2 .flexy-container,
.snap-carousel-2 .flexy,
.snap-carousel-2 .flexy-view,
.snap-carousel-2 .flexy-items {
    width: 100% !important;
    max-width: 100% !important;
}

.snap-carousel-2 .flexy-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}
/* SUGGERITI DALLA REDAZIONE - contenitore a tutta larghezza */

.snap-carousel-2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.snap-carousel-2 .flexy-view {
    width: 100% !important;
    max-width: 100% !important;
}

.snap-carousel-2 .flexy-items {
    width: 100% !important;
    max-width: 100% !important;
}
/* SUGGERITI DALLA REDAZIONE - query a tutta larghezza */

#snap-carousel-2 > .wp-block-blocksy-query {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}
/* SUGGERITI DALLA REDAZIONE - nasconde solo la navigazione superiore */
/* SUGGERITI DALLA REDAZIONE - nasconde le frecce superiori */
.snap-carousel-wrapper:has(> #snap-carousel-2) > .snap-carousel-nav {
    display: none !important;
}
}
/* METADATI SOTTO IL CATENACCIO */

.ai-meta {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #777 !important;
    margin-bottom: 2rem !important;
}

.ai-meta .ai-autore::before {
    content: "Di " !important;
}

.ai-meta .ai-separatore {
    display: inline-block !important;
    width: 1px !important;
    height: 18px !important;
    background-color: #777 !important;
    margin: 0 12px !important;
    vertical-align: middle !important;
    font-size: 0 !important;
    color: transparent !important;
}

.ai-meta .ai-categoria {
    color: #2467d6 !important;
}
/* METADATI CARD HOME E RUBRICHE */

.wp-block-query .ai-meta,
.snap-carousel-2 .ai-meta {
    font-size: 12px !important;
    line-height: 1.4 !important;
}
/* Nasconde l'autore automatico nelle interviste */
.category-interviste .ai-autore {
    display: none !important;
}

.category-interviste .meta-author {
    display: none !important;
}
.category-interviste .ai-autore + .ai-separatore {
    display: none !important;
}
/* HOME — leggibilità schede articoli */
.page-id-192 .wp-block-post-excerpt__excerpt {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.page-id-192 .ai-meta {
    font-size: 14px !important;
}

/* HOME – TESTO DEGLI ESTRATTI */
.page-id-192 .wp-block-post-excerpt,
.page-id-192 .wp-block-post-excerpt p {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}
/* ARTICOLO — CORPO DEL TESTO */
.single-post .ai-contenuto,
.single-post .ai-contenuto p {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    line-height: 1.65 !important;
    color: #315A78 !important;
}
/* HOME — FONT TITOLI SCHEDE */
body.home h2.wp-block-post-title,
body.home h2.wp-block-post-title a {
    font-family: Georgia, "Times New Roman", serif !important;
}
/* TITOLI SCHEDE CAROSELLO HOME */
.wp-block-post-title {
    font-family: Georgia, "Times New Roman", serif !important;
}
/* HOME - uniforma occhiello e catenaccio articolo in evidenza */
.page-id-192 .ai-occhiello,
.page-id-192 .ai-catenaccio {
    color: #315A78 !important;
}

.page-id-192 .ai-occhiello {
    margin-bottom: 5px !important;
}
/* CHI SIAMO – profilo */
.profilo-testo {
    flex: 0 0 68% !important;
    max-width: 68% !important;
}

.profilo-foto {
    flex: 0 0 32% !important;
    max-width: 32% !important;
}

.profilo-foto img {
    width: 100% !important;
    height: auto !important;
}

/* =====================================================
   CHI SIAMO - PROFILO
   ===================================================== */

/* Tablet e desktop */
.profilo-riga {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;
}

.profilo-riga > .wp-block-group {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.profilo-riga > .wp-block-image {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    margin: 0 !important;
}

.profilo-riga > .wp-block-image img {
    width: 100% !important;
    height: auto !important;
}

/* Smartphone */
@media (max-width: 600px) {

    .profilo-riga {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .profilo-riga > .wp-block-group,
    .profilo-riga > .wp-block-image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profilo-riga > .wp-block-image {
        order: -1 !important;
        margin-bottom: 20px !important;
    }
}=====================================================
   COMMENTI - L'AGENTE INDIPENDENTE
   ===================================================== */


/* COMMENTI PUBBLICATI */

#comments.ct-comments {
    width: 60% !important;
    max-width: 60% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Titolo COMMENTI */

#comments.ct-comments .ct-comments-title {
    font-size: 0 !important;
    margin-top: 70px !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
}

#comments.ct-comments .ct-comments-title::before {
    content: "Commenti";
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    color: #1f3448;
}

/* Elenco commenti */

#comments.ct-comments .ct-comment-list {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* SPAZIATURA TRA I COMMENTI */

#comments.ct-comments .ct-comment-list > .comment {
    margin: 0 !important;
    padding: 0 !important;
}

#comments.ct-comments .ct-comment-list > .comment .ct-comment-inner {
    margin: 0 !important;
    padding: 18px 0 !important;
}

/* Elimina eventuali spazi interni aggiuntivi */

#comments.ct-comments .ct-comment-list > .comment .ct-comment-content {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* Spazio tra l'ultimo commento e il modulo */

#respond.comment-respond {
    margin-top: 20px !important;
}

/* Evita spazio eccessivo prima del primo commento */

#comments.ct-comments .ct-comment-list > .comment:first-child {
    padding-top: 20px !important;
}

/* Testo dei commenti */

#comments.ct-comments .ct-comment-content.entry-content,
#comments.ct-comments .ct-comment-content.entry-content p {
    font-size: 18px !important;
    line-height: 1.55;
}


/* MODULO DI INSERIMENTO */

#respond.comment-respond {
    width: 500px;
    max-width: 500px;
    margin-left: 0;
    margin-right: auto;
    margin-top: 25px;
    padding: 22px 26px;
    box-sizing: border-box;
    background-color: #f3f6f8;
    border: 1px solid #d7e0e6;
}

/* Testi del modulo */
#respond.comment-respond,
#respond.comment-respond p,
#respond.comment-respond label {
    font-size: 16px;
    line-height: 1.5;
}

/* Campo del commento */
#respond.comment-respond textarea#comment {
    min-height: 120px;
    height: 120px;
    font-size: 16px;
    line-height: 1.5;
}

/* Placeholder */
#respond.comment-respond textarea#comment::placeholder {
    font-size: 16px;
}


/* FENICE */

.ai-fenice-commenti {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 60px;
}

.ai-fenice-commenti img {
    width: 170px;
    height: auto;
}
/* ARTICOLO — spazio sotto immagini senza didascalia */
.single-post .entry-content .wp-block-image:not(:has(figcaption)) {
    margin-bottom: 20px !important;
}
/* ARTICOLO — distacco tra immagine e inizio del testo */
.single-post .ai-contenuto p:first-of-type {
    margin-top: 25px !important;
} 
/* UNIFORMITÀ TIPOGRAFICA ARTICOLO */

.ai-occhiello,
.ai-titolo,
.ai-catenaccio,
.ai-contenuto p {
    font-family: Georgia, "Times New Roman", serif !important;
    color: #315A78 !important;
}
/* HOME - titolo articolo in evidenza */
@media (max-width: 767px) {
    .page-id-192 .ai-contenuto .wp-block-post-title {
        font-size: 24px !important;
        line-height: 1.15 !important;
        margin-top: 4px !important;
    }
}
/* ARCHIVIO GENERALE — titoli degli articoli */
.page-id-134 .wp-block-post-title,
.page-id-134 .wp-block-post-title a {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    color: #315A78 !important;
}
@media (max-width: 767px) {
    .snap-carousel-wrapper .wp-block-post-date,
    .snap-carousel-wrapper .taxonomy-category {
        font-size: 12px !important;
        line-height: 1.3 !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}
/* METADATI ARTICOLO – DUE RIGHE */

.ai-firma,
.wp-block-post-date,
.taxonomy-category {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* Firma sulla prima riga */
.ai-firma {
    flex: 0 0 100% !important;
}

/* Data e categoria sulla seconda riga */
.wp-block-post-date,
.taxonomy-category {
    flex: 0 0 auto !important;
}
/* Elimina il separatore prima della data */
.wp-block-post-date::before {
    display: none !important;
}
/* ULTIMI ARTICOLI - METADATI MOBILE */

@media (max-width: 767px) {

    /* La scheda deve restare in una sola colonna */
    #snap-carousel-1 .scheda-ultimi-articoli {
        flex-wrap: nowrap !important;
    }

    /* Firma: prima riga */
    #snap-carousel-1 .scheda-ultimi-articoli > .ai-firma {
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    /* Gruppo data + categoria: seconda riga */
    #snap-carousel-1 .scheda-ultimi-articoli > .wp-block-group:has(> .wp-block-post-date) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Data e categoria: stessa dimensione */
    #snap-carousel-1 .wp-block-post-date,
    #snap-carousel-1 .taxonomy-category {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}
/* IN EVIDENZA - METADATI MOBILE */

@media (max-width: 767px) {

    .meta-home {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* Firma: prima riga */
    .meta-home > .ai-firma {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    /* Data e categoria: seconda riga */
    .meta-home > .wp-block-post-date,
    .meta-home > .taxonomy-category {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .meta-home > .wp-block-post-date {
        padding: 0 !important;
    }
}
/* SUGGERITI DALLA REDAZIONE - METADATI MOBILE */

@media (max-width: 767px) {

    .articoli-wrap .testo-articolo > .wp-block-group:has(> .ai-firma) {
        display: grid !important;
        grid-template-columns: auto auto !important;
        justify-content: start !important;
        align-items: center !important;
        width: 100% !important;
        column-gap: 0 !important;
        row-gap: 4px !important;
        margin: 0 !important;
    }

    /* Firma: prima riga */
    .articoli-wrap .testo-articolo > .wp-block-group:has(> .ai-firma) > .ai-firma {
        grid-column: 1 / -1 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Data e categoria: seconda riga */
    .articoli-wrap .testo-articolo > .wp-block-group:has(> .ai-firma) > .ct-dynamic-data,
    .articoli-wrap .testo-articolo > .wp-block-group:has(> .ai-firma) > .taxonomy-category {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Nessun separatore prima della data */
    .articoli-wrap .testo-articolo > .wp-block-group:has(> .ai-firma) > .ct-dynamic-data::before {
        content: none !important;
        display: none !important;
    }

    /* Separatore tra data e categoria */
    .articoli-wrap .testo-articolo > .wp-block-group:has(> .ai-firma) > .taxonomy-category::before {
        content: "|" !important;
        display: inline !important;
        margin: 0 6px !important;
    }
}
/* IN EVIDENZA - FONT METADATI MOBILE */

@media (max-width: 767px) {

    .meta-home > .ai-firma,
    .meta-home > .wp-block-post-date,
    .meta-home > .taxonomy-category {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    }
}
/* ULTIMI ARTICOLI - ANTEPRIMA MOBILE */
@media (max-width: 767px) {

    #snap-carousel-1 .scheda-ultimi-articoli > .wp-block-post-excerpt {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}
/* CAROSELLO ULTIMI ARTICOLI - MOBILE
   ripristino struttura verticale */

.scheda-ultimi-articoli {
    display: block !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}

    .schedule-ultimi-articoli > * {
        width: 100% !important;
        max-width: 100% !important;
    }

}
/* TITOLO ARTICOLO - MOBILE */

@media (max-width: 767px) {

    .articoli-wrap .testo-articolo h2.ct-dynamic-data {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

}
/* METADATI ARTICOLO - DIMENSIONI E BARRE */

@media (max-width: 767px) {

    .articoli-wrap .testo-articolo .ai-firma,
    .articoli-wrap .testo-articolo .wp-block-post-date,
    .articoli-wrap .testo-articolo .taxonomy-category {
        font-size: 14px !important;
        line-height: 1.4 !important;
        border-left: none !important;
        border-right: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .articoli-wrap .testo-articolo .ai-firma::before,
    .articoli-wrap .testo-articolo .ai-firma::after,
    .articoli-wrap .testo-articolo .wp-block-post-date::before,
    .articoli-wrap .testo-articolo .wp-block-post-date::after,
    .articoli-wrap .testo-articolo .taxonomy-category::before,
    .articoli-wrap .testo-articolo .taxonomy-category::after {
        content: none !important;
        display: none !important;
        border: none !important;
    }

}
/* CARDS SUGGERITI - MOBILE
   foto sopra, titolo sotto */

@media (max-width: 767px) {

    .flexy-item .articoli-wrap {
        grid-template-columns: 1fr !important;
    }

    .flexy-item .articoli-wrap .immagine-articolo {
        margin-right: 0 !important;
    }

}
/* TEST FINALE ULTIMI ARTICOLI */

@media (max-width: 767px) {
    body.page-id-192 #snap-carousel-1 .scheda-ultimi-articoli .wp-block-post-excerpt {
        font-size: 15px !important;
        line-height: 24px !important;
    }

    body.page-id-192 #snap-carousel-1 .scheda-ultimi-articoli .wp-block-post-excerpt p {
        font-size: 15px !important;
        line-height: 24px !important;
    }
}
@media (max-width: 767px) {

    /* FOOTER - widget */
    footer .ct-widget,
    footer .ct-widget p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    /* FOOTER - copyright */
    footer .ct-footer-copyright {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}
/* ==================================================
   FOOTER MOBILE
   Menu + social / recapiti / dati legali
   ================================================== */

@media (max-width: 767px) {

    /* Prima riga del footer */
    .ct-footer .ct-container:has(.footer-menu-inline) {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        column-gap: 20px !important;
        row-gap: 8px !important;
        align-items: start !important;
    }

    /* Apre il contenitore che racchiude recapiti e social */
    .ct-footer .ct-container:has(.footer-menu-inline)
    > div:has(.ct-widget.widget_text) {
        display: contents !important;
    }

    /* Menu: prima riga a sinistra */
    .ct-footer .footer-menu-inline {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    /* Social: prima riga a destra */
    .ct-footer .ct-widget:has(.wp-block-social-links) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        margin-bottom: 0 !important;
    }

    /* Recapiti: seconda riga a tutta larghezza */
    .ct-footer .ct-widget.widget_text:has(a[href^="mailto:"]) {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin-top: 0 !important;

        /* Separatore identico a quello Blocksy */
        border-top: 0.8px solid rgb(58, 79, 102) !important;
        padding-top: 12px !important;
    }

    /* Dati legali più compatti */
    .ct-footer .ct-widget.widget_text p {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        line-height: 1.35 !important;
    }
}
/* ==================================================
   HOME - METADATI ARTICOLO IN EVIDENZA - DESKTOP
   ================================================== */

@media (min-width: 768px) {

    .meta-home {
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .meta-home > .ai-firma,
    .meta-home > .wp-block-post-date,
    .meta-home > .taxonomy-category {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .meta-home > .ai-firma::after {
        content: "|";
        margin-left: 8px;
    }
}
/* ==================================================
   HOME - METADATI "SUGGERITI DALLA REDAZIONE"
   ================================================== */

.articoli-wrap .testo-articolo > .wp-block-group:has(.ai-firma) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.articoli-wrap .testo-articolo > .wp-block-group:has(.ai-firma) > * {
    width: auto !important;
    flex: 0 0 auto !important;
}
/* Home - distanza occhiello / titolo articolo in evidenza */
.home .ai-occhiello + .wp-block-post-title {
    margin-top: 12px !important;
}
/* =====================================================
   ARTICOLO SINGOLO - OTTIMIZZAZIONE SMARTPHONE
   ===================================================== */

@media (max-width: 600px) {

    /* Catenaccio */
    .single-post .ai-catenaccio {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    /* Corpo dell'articolo */
    .single-post .ai-contenuto p {
        font-size: 17px !important;
        line-height: 28px !important;
    }

    /* Firma autore in calce */
    .single-post .firma-autore-articolo {
        font-size: 16px !important;
    }

    /* Metadati sotto il catenaccio */
    .single-post .ai-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
    }

    /* Autore da solo sulla prima riga */
    .single-post .ai-meta .ai-autore {
        flex: 0 0 100% !important;
    }

    /* Elimina il separatore dopo l'autore */
    .single-post .ai-meta .ai-separatore:first-of-type {
        display: none !important;
    }

    /* Spazio dopo la data */
    .single-post .ai-meta .ai-data {
        margin-right: 8px !important;
    }

    /* Separatore fra data e categoria */
    .single-post .ai-meta .ai-separatore:last-of-type {
        display: inline !important;
        margin-right: 8px !important;
    }
	/* Metadati: nessun separatore tra autore e data */
.single-post .ai-meta .ai-autore + .ai-separatore {
    display: none !important;
}
}/* /* =====================================================
   AREA COMMENTI - SMARTPHONE
   ===================================================== */

@media (max-width: 600px) {

    /* Il blocco commenti deve occupare tutta la larghezza disponibile */
    .single-post .ct-comments {
        width: 100% !important;
        max-width: none !important;
    }

    .single-post .comment-respond,
    .single-post .comment-form {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    /* Campi del modulo */
    .single-post .comment-form input[type="text"],
    .single-post .comment-form input[type="email"],
    .single-post .comment-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Testi liberi di andare a capo */
    .single-post .comment-notes,
    .single-post .comment-form-cookies-consent {
        white-space: normal !important;
        overflow-wrap: normal !important;
    }
}/* /* =====================================================
   AREA COMMENTI - SMARTPHONE
   ===================================================== */

@media (max-width: 600px) {

    #comments.ct-comments {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    #comments .comment-respond,
    #comments .comment-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    #comments .comment-form input[type="text"],
    #comments .comment-form input[type="email"],
    #comments .comment-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #comments .comment-notes,
    #comments .comment-form-cookies-consent {
        white-space: normal !important;
    }
}
/* /* =====================================================
   SUGGERITI DALLA REDAZIONE - METADATI SMARTPHONE
   ===================================================== */

@media (max-width: 600px) {

    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap.is-layout-flex:has(.ai-firma) {
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap.is-layout-flex:has(.ai-firma) .ai-firma {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap.is-layout-flex:has(.ai-firma) .ct-dynamic-data,
    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap.is-layout-flex:has(.ai-firma) .wp-block-post-date,
    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap.is-layout-flex:has(.ai-firma) .taxonomy-category {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap.is-layout-flex:has(.ai-firma) .meta-separatore {
        border-left: 0 !important;
    }
}
/* /* =====================================================
   ARCHIVIO GENERALE - METADATI SMARTPHONE
   ===================================================== */

@media (max-width: 600px) {

    .archivio-metadati {
        display: grid !important;
        grid-template-columns: auto auto auto !important;
        justify-content: start !important;
        align-items: center !important;
        column-gap: 8px !important;
        row-gap: 4px !important;
    }

    /* Autore: prima riga */
    .archivio-metadati > *:first-child {
        grid-column: 1 / -1 !important;
        width: auto !important;
    }

    /* Primo separatore: eliminato */
    .archivio-metadati > *:nth-child(2) {
        display: none !important;
    }

    /* Data, separatore e categoria: seconda riga */
    .archivio-metadati > *:nth-child(3),
    .archivio-metadati > *:nth-child(4),
    .archivio-metadati > *:nth-child(5) {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}
/* =====================================================
   CHI SIAMO - SEZIONE MI PRESENTO - SMARTPHONE
   ===================================================== */

@media (max-width: 600px) {

    .profilo-riga {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .profilo-foto {
        width: 100% !important;
        order: -1 !important;
        margin-bottom: 20px !important;
    }

    .profilo-foto img {
        width: 100% !important;
        height: auto !important;
    }
}
/* =====================================================
   CHI SIAMO - SEZIONE MI PRESENTO - DESKTOP/TABLET
   ===================================================== */

@media (min-width: 601px) {
    .profilo-riga {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }
}
/* =====================================================
   HOME - SUGGERITI DALLA REDAZIONE
   Uniformazione dimensione metadati
   ===================================================== */

.articoli-wrap .testo-articolo .wp-block-group.is-nowrap * {
    font-size: 16px !important;
}
/* 
/* =====================================================
   FOOTER - TABLET VERTICALE
   ===================================================== */

@media (min-width: 601px) and (max-width: 900px) {

    /* Contenitore principale del footer: due colonne bilanciate */
    footer .ct-container:has(#footer-menu) {
        grid-template-columns: 1fr 1fr !important;
        align-items: start !important;
    }

    /* Menu centrato nella propria colonna */
    #footer-menu {
        text-align: center !important;
    }

    #footer-menu .menu {
        justify-content: center !important;
    }

    /* Recapiti centrati */
    #block-9 {
        text-align: center !important;
    }

    /* Social centrati sotto i recapiti */
    #block-22 {
        text-align: center !important;
    }

    #block-22 .wp-block-social-links {
        justify-content: center !important;
    }

    /* Recapiti leggermente compatti */
    #block-9 p {
        line-height: 1.35 !important;
    }

    /* Informazioni legali leggermente più piccole */
    footer .ct-footer-copyright,
    footer [data-id="copyright"] {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}
/* TEST titolo Suggeriti - tablet */
@media (min-width: 601px) and (max-width: 1200px) {

    .articoli-wrap h2.ct-dynamic-data {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

}
@media (min-width: 601px) and (max-width: 1200px) {
    .articoli-wrap .testo-articolo h2.ct-dynamic-data {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }
}

/* SUGGERITI - IMMAGINE TABLET VERTICALE */
@media (min-width: 601px) and (max-width: 767px) {

    .articoli-wrap .immagine-articolo img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: cover !important;
    }

}
/* SUGGERITI - METADATI TABLET VERTICALE */
@media (min-width: 601px) and (max-width: 767px) {

    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap > .ai-firma,
    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap > .ct-dynamic-data.meta-separatore,
    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap > .taxonomy-category {
        font-size: 14px !important;
        line-height: 1.3 !important;
        font-weight: 400 !important;
    }

    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap > .meta-separatore {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .articoli-wrap .testo-articolo .wp-block-group.is-nowrap > .meta-separatore::before {
        content: "|" !important;
        display: inline !important;
        margin: 0 7px !important;
    }
}
/* /* /* /* =====================================================
   ARCHIVIO GENERALE - METADATI TABLET
   ===================================================== */

@media (min-width: 601px) and (max-width: 1200px) {

    .wp-block-columns.archivio-metadati {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wp-block-columns.archivio-metadati:not(.is-not-stacked-on-mobile)
    > .wp-block-column {
        flex: 0 0 auto !important;
        flex-basis: auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
	/* Uniforma i caratteri dei metadati */
.wp-block-columns.archivio-metadati,
.wp-block-columns.archivio-metadati * {
    font-size: 16px !important;
    line-height: 1.3 !important;
}
}
/* =====================================================
   PAGINE CATEGORIA - 2 SCHEDE SU TABLET VERTICALE
   ===================================================== */

@media (min-width: 601px) and (max-width: 688px) {

    body.category .entries {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}
(()=>{
  const e=document.querySelector('.profilo-foto');
  if(!e) return 'profilo-foto non trovata';

  const out=[];

  [...document.styleSheets].forEach((sheet,si)=>{
    let rules;
    try { rules=sheet.cssRules; } catch(err) { return; }

    const scan=(rs,media='nessuna')=>{
      [...rs].forEach(r=>{
        if(r.cssRules){
          scan(r.cssRules,r.conditionText || media);
        }

        if(r.selectorText){
          try{
            if(
              e.matches(r.selectorText) &&
              (r.style.flex || r.style.flexBasis || r.style.width)
            ){
              out.push({
                foglio:si,
                media,
                selector:r.selectorText,
                flex:r.style.flex,
                flexBasis:r.style.flexBasis,
                width:r.style.width,
                importantFlex:r.style.getPropertyPriority('flex'),
                importantBasis:r.style.getPropertyPriority('flex-basis'),
                css:r.cssText
              });
            }
          }catch(err){}
        }
      });
    };

    scan(rules);
  });

  return {
    computed:{
      flex:getComputedStyle(e).flex,
      flexBasis:getComputedStyle(e).flexBasis,
      width:getComputedStyle(e).width
    },
    regole:out
  };
})()
/* 
 * /* =====================================================
   CHI SIAMO - PROFILO TABLET VERTICALE
   ===================================================== */

@media (min-width: 601px) and (max-width: 900px) {

    .profilo-riga {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .profilo-riga > .profilo-testo {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .profilo-riga > .profilo-foto {
        flex: 0 0 38% !important;
        width: 38% !important;
        max-width: 38% !important;
        margin: 0 !important;
    }

    .profilo-riga > .profilo-foto img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}
/* =====================================================
   CHI SIAMO - INTESTAZIONE PROFILO TABLET VERTICALE
   ===================================================== */

/* La versione speciale tablet resta nascosta normalmente */
.profilo-intestazione-tablet {
    display: none !important;
}

@media (min-width: 601px) and (max-width: 900px) {

    /* Mostra titolo + foto creati appositamente per il tablet */
    .profilo-intestazione-tablet {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 24px !important;
        margin-bottom: 24px !important;
    }

    /* Titolo nella nuova riga */
    .profilo-intestazione-tablet > p {
        flex: 1 1 auto !important;
        margin: 0 !important;
    }

    /* Foto nella nuova riga */
  .profilo-intestazione-tablet > .wp-block-image {
    flex: 0 0 auto !important;
    width: 220px !important;
    max-width: 220px !important;
    margin: 0 !important;
}

.profilo-intestazione-tablet > .wp-block-image img {
    width: 220px !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: contain !important;
}

    /* Nasconde il vecchio titolo */
    .profilo-titolo-originale {
        display: none !important;
    }

    /* Nasconde la vecchia foto accanto al primo paragrafo */
    .profilo-riga > .wp-block-image {
        display: none !important;
    }

    /* Il primo paragrafo torna a tutta larghezza */
    .profilo-riga {
        display: block !important;
    }

    .profilo-riga > .wp-block-group {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
}
/* =====================================================
   NEWSLETTER - PRIMA IMMAGINE CENTRATA SU TABLET VERTICALE
   ===================================================== */

@media (min-width: 601px) and (max-width: 900px) {

    .wp-image-562 {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .wp-image-562 {
        object-fit: contain !important;
    }
}

@media (max-width: 767px) {

  /* Titolo della sezione commenti */
  #comments .ct-comments-title,
  #comments .comments-title {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Testo dei singoli commenti */
  #comments .ct-comment-content,
  #comments .comment-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: left !important;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }
}

@media (max-width: 767px) {
  #comments h2,
  .ct-comments h2,
  .comments-area h2 {
    padding-left: 16px !important;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  #comments h3.ct-comments-title {
    margin-left: 16px !important;
  }
}
