* {
    font-family: "Gill Sans", sans-serif;
}

/* START::UTILITIES */
.title-section{
    font-weight: 400;
    line-height: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle-section{
    font-weight: 600;
    line-height: 2.25rem;
    margin-bottom: 1.5rem;
}

/**** SERVIZIO ****/
.servizio-header.image {
    height: 350px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    position: relative;
}
.servizio-header .color-gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bs-primary) 150%);
}
.servizio-header .container-title {
    position: absolute;
    bottom: 1rem;
    left: 4rem;
}

/*
============================================================
    CARD COMUNICAZIONI - Stili Aggiornati e di Rifinitura
============================================================
*/

/* * 1. Stile della card aggiornato: spigoloso e senza bordo
 */
.card-comunicazioni {
    background-color: #f8f9fa;
    border-radius: 0; /* Rimuove completamente la stondatura */
    overflow: hidden;
    /* La proprietà 'border' è stata rimossa */
}

.card-comunicazioni-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.card-comunicazioni-image-link {
    flex: 0 0 250px;
}

.card-comunicazioni-body .image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-comunicazioni-content {
    padding: 1rem 1.5rem 1rem 0;
    flex-grow: 1;
}

/* * 2. Stile del titolo (nessun font-weight specifico)
 */
.card-comunicazioni-content .title {
    color: #212529;
    font-size: 1.2rem;
    /* Nessun font-family o font-weight specificato qui,
       così eredita correttamente "Cabin" dal body */
}

.card-comunicazioni-content .description {
    color: #6c757d;
    font-size: 0.95rem;
}

/* * 3. Contenitore dell'azione e allineamento a destra
 */
.card-comunicazioni-content .action {
    text-align: right; /* Allinea il suo contenuto a destra */
}

.card-comunicazioni-content .action a {
    color: #00796B;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.card-comunicazioni-content .action a:hover {
    color: #004D40;
    text-decoration: underline;
}


/**** CHIPS ****/
.chips {
    display: inline-flex;
    align-items: center;
    border-radius: 50rem !important;
    font-weight: 600;
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
    text-transform: uppercase;
    margin-right: 1rem;
}

.chips-outline-light {
    background-color: transparent;
    border: 1px solid white;
    color:var(--bs-light);
}
.chips-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--bs-secondary);
    color:var(--bs-secondary);
}
.chips-outline-primary {
    background-color: transparent;
    border: 1px solid var(--bs-primary);
    color:var(--bs-primary);
}

.chips-outline-dark {
    background-color: transparent;
    border: 1px solid var(--bs-dark);
    color:var(--bs-dark);
}

.chips-outline-success {
    background-color: transparent;
    border: 1px solid var(--bs-success);
    color:var(--bs-dark);
}

.chips-primary {
    background-color: var(--bs-primary);
    color: white;
}
.chips-secondary {
    background-color: var(--bs-secondary);
    color: white;
}
.chips-danger {
    background-color: var(--bs-danger);
    color: white;
}
.chips-light {
    background-color: white;
    color: black;
}
.chips-dark {
    background-color: var(--bs-dark);
    color: white;
}
.chips-success {
    background-color: var(--bs-success);
    color: white;
}
.chips-warning {
    background-color: var(--bs-warning);
    color: white;
}

.borda{
border: 1px dashed red;
}

.text-primary {
    color: var(--theme-primary)!important;
}

.text-gradiant {
    background: linear-gradient(90deg, var(--theme-primary) 44.51%, var(--theme-title) 66.39%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-primary {
    background-color: var(--theme-primary)!important;
}

.bg-primary-light {
    background-color: var(--theme-primary-light)!important;
}

.bg-secondary {
    background-color: var(--theme-secondary) !important;
}

.icon-news{
    width: 25px;
}

/* END::UTILITIES */

/* START::NAVBAR */
.navbar .nav-link {
    color: var(--theme-primary);
    font-family: "Gill Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.nav-link {
    padding: 0 1rem;
    margin: 0.5rem 0;
}

.navbar .nav-button {
    background: var(--theme-primary);
    color: white;
    border-radius: 100px;
    padding: 0.5rem;
}

.navbar img{
    width: 80px;
}
/* END::NAVBAR */

/* START:HEADER */
.header {
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    z-index: 1;
    height:500px;
}

.header::before{
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(to bottom, transparent, var(--theme-background));
    opacity:0.4;
    height:100%;
    z-index: 2;
}

.header .container {
    z-index: 3;
}
/* END:HEADER */

/* BEGIN:: NEWS */
#news .icon-news:hover{
    opacity: 0.5;
    border-radius: 50%;
}

#news-slider .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-slider .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* END:NEWS */

/* START::SCROLL*/
#btnTop {
    color: var(--theme-primary);
    cursor: pointer;
    font-size: 1.5rem;

    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index:4;

    opacity: 0;
    transition: opacity 0.5s ease;
}

#btnTop.show {
    opacity: 0.7;
    visibility: visible;
}

#btnTop:hover {
    opacity: 1;
}

/* END::SCROLL*/

/*START:: RESPONSIVE*/

@media (max-width: 768px) {
    .card-comunicazioni-body {
        flex-direction: column; /* Gli elementi tornano in colonna su mobile */
        align-items: stretch;   /* Si estendono per tutta la larghezza */
        gap: 0;                 /* Rimuoviamo lo spazio tra gli elementi */
    }

    .card-comunicazioni-image-link {
        flex-basis: auto; /* L'immagine torna ad avere larghezza automatica */
    }

    .card-comunicazioni-body .image {
        height: 220px; /* Possiamo fare l'immagine un po' più alta su mobile */
    }

    .card-comunicazioni-content {
        padding: 1.5rem; /* Aggiungiamo padding su tutti i lati per il testo */
    }
}


@media (min-width:780px){
    .icon-news{
        width: 32px;
    }

    .navbar img{
        width: 150px;
    }

    .navbar .nav-link {
        font-size: 16px;
    }

    .header {
        height:600px;
    }

}

@media (min-width:1024px){
    .icon-news{
        width: 42px;
    }

    .navbar .nav-link {
        font-size: 20px;
    }

    .header {
        height:690px;
    }

    #btnTop {
        bottom:5px;
        font-size: 2rem; /* ~fa-2xl */
    }
}

/* END::RESPONSIVE*/

