/* =====================
   RESET BASE
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





body {
    font-family: "Sofia Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto; 
}


/* =====================
   TIPOGRAFIA BASE
===================== */

h1, h2, h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1d1c1c;
}

h1 { font-size: 2.0rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.3rem; }

p {
    font-size: 1.3rem;
    line-height: 1.3;
    color: #5c5a5a;
    margin-bottom: 10px;
}

p strong {
  font-weight: 700; /* normale: 400, bold: 700 */
  color: #3d3d3d !important;
}

p.sottotitolo {
    color: #990000;
    font-weight: 500;
    text-transform: uppercase;
}

/* =====================
   VERSIONE MOBILE
===================== */

@media (max-width: 768px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }

    p { font-size: 1.2rem; }
}




/* =====================
   LINK GLOBALI
===================== */
a {
    color: #6E6A6A;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {

    text-decoration: none;
}

/* =====================
   CLASSI UTILI GLOBALI
===================== */
.container {
    max-width: 1500px;     /* limite massimo */
    width: 100%;           /* si adatta allo schermo */
    margin: 0 auto;        /* centrato */
    padding: 0 15px;       /* padding sinistro e destro */
    box-sizing: border-box;
}


.text-center {
    text-align: center;
}


.container_review {
    max-width: 1500px;    /* massimo desktop */
    width: 100%;          /* occupa tutto lo spazio disponibile */
    margin: 0 auto;       /* centrato orizzontalmente */
    padding: 0 14px;      /* spazio dai bordi */
    box-sizing: border-box;
}

.text-center_review {
    text-align: center;
}




/* =====================
   CONTAINER SPAZIATORE
===================== */
.spacer {
    height: 30px; /* altezza dello spazio */
    width: 100%;  /* opzionale, prende tutta la larghezza */
}


/* =====================
   CONTAINER 2 BLOCCHI COLORATI
===================== */

.full-width-row {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* importante per padding/margin */
}

.full-width-col {
    display: flex;
    flex-direction: column; /* contenuto verticale dentro la colonna */
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* evita che contenuti troppo larghi escano */
}

/* CONTENIMENTO IMMAGINI */
.full-width-col img {
    max-width: 100%;   /* mai più larga della colonna */
    height: auto;      /* mantiene proporzioni */
    display: block;    /* elimina gap sotto immagini */
}

/* MOBILE: colonne impilate e contenuti adattivi */
@media (max-width: 768px) {
    .full-width-row {
        flex-direction: column; /* stack verticale */
    }

    .full-width-col {
        flex: 1;               /* prendono tutta la larghezza */
        padding: 15px;         /* padding più piccolo su mobile */
    }
}


/* BASE X BOTTONI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    border-radius: 25px; /* rounded */
    border: none;

    font-family: inherit;   /* usa il font del sito */
    font-size: 1rem;
    font-weight: 400;

    cursor: pointer;
    text-decoration: none;
    line-height: 1;

    transition: 
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* VARIANTI COLORE */
.btn-primary {
    background-color: #990000;
    color: #ffffff;
    text-transform: uppercase;
}

.btn-secondary {
    background-color: #0a4d04;
    color: #fff;
    text-transform: uppercase;
}

.btn-slider {
    background-color: #8DC63F;
    color: #fff;
    text-transform: uppercase;
    border: 2px solid #ffffff;
}

.btn-cookie {
    background-color: #0078FF;
    color: #fff;
    text-transform: uppercase;
}

.btn-outline {
    background-color: #DCDBDA;
    color: #61605F;
    border: 2px solid #61605F;
    text-transform: uppercase;
}

/* HOVER */
.btn-primary:hover {
    background-color: #CEAB88;
}

.btn-cookie:hover {
    background-color: #0064D1;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-outline:hover {
    background-color: #61605F;
    color: #fff;
}
.btn-slider:hover {
    background-color: #03383E;
    color: #fff;
}

/* ACTIVE */
.btn:active {
    transform: scale(0.97);
}

/* DISABLED (opzionale) */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}




.news-meta p {
    font-size: 1.2rem !important; /* circa 14px */
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3 !important;
}
.news-meta strong {
    font-weight: 600;
    font-style: normal;
}
 
 /* colonne */
 
/* Desktop: colonne personalizzate */
.flex-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    gap: 20px;
    grid-template-columns: var(--cols);
}

/* Colonne interne */
.flex-grid > div {
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;

}


/* Tablet: 2 colonne, ultima dispari a tutta larghezza */
@media (max-width: 992px) {
    .flex-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flex-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Mobile: 1 colonna */
@media (max-width: 768px) {
    .flex-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   DISPOSIZIONE COLONNE SU MOBILE
===================== */

@media (max-width: 1050px) {
    .order-1 { order: 1; }
    .order-2 { order: 2; }
    .order-3 { order: 3; }
    .order-4 { order: 4; }
	.order-5 { order: 4; }
}

/* =====================
   CLASSE PER CENTRARE IL CONTENUTO SIA VERTICALMENTE CHE ORIZZONTALMENTE NEI CONTENITORI
===================== */
.col-center-both {
    display: flex;
    flex-direction: column; /* <— QUESTA È LA CHIAVE */
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* =====================
   CREA LEGGERA OMBRA E EFFETTO OVER SUI BOX DELLE COLONNE
===================== */

.box {
    background: #ededeb;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 25px;
    transition: all 0.25s ease;
    text-align: left;
    overflow: hidden; /* aggiungi questo */
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.box.left {
    text-align: left;       /* per eventuali testi inline */
}

.box-content p {
    text-align: left;
        font-size: 1.1rem;
}




.contact-icon {
  color: #14458C;
}



.filtro-categorie {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 30px;
}

.filtro-categorie label {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

/* Contenitore per gestire la freccia custom */
.filtro-categorie select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 260px;
    padding: 10px 14px;
    font-size: 18px;
    font-family: inherit; /* 👈 eredita il font del sito */

    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 6px;

    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;

    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filtro-categorie select:hover {
    border-color: #47b9fc;
}

.filtro-categorie select:focus {
    border-color: #47b9fc;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
    outline: none;
}

.filtro-categorie select option {
    color: #03233d;
    font-style: italic;
    opacity: 0.9;
}

