/* === TIPOGRAFIA BASE === */
body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

/* === TITOLI === */
h1 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: #CC0000;
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.4;
}

h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
}

h4 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}

/* === TESTO === */
p {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: black;
}

/* Variante opzionale per testi un po' più grandi (es. articoli principali) */
p.grande {
    font-size: 18px;
}

/* === METADATI / DIDASCALIE === */
.metadati-articolo {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
}

/* Se vuoi supportare sia 13 che 14px */
.metadati-articolo.small {
    font-size: 13px;
}

.metadati-articolo.normal {
    font-size: 14px;
}

.article-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.label-red {
    background-color: red;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
}

#banner-top {
    width: 967px;
}

.ad-banner {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    /* margin: 1rem 0; */
}

.ad-banner img,
#banner-top img {
    width: 100%;
}

footer {
    background-color: #333;
    color: #ccc;
    padding: 2rem 0;
    text-align: center;
}

.navbar {
    background-color: transparent !important;
}

.border-nav {
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.border-nav .nav-item {
    border-left: 2px solid #e0e0e0;
    border-right: 2px solid #e0e0e0;
    padding-left: 10px;
    padding-right: 10px;
}

.card,
.card-img-top {
    height: 100%;
    border-radius: 0%;
}

.btn {
    border-radius: 0%;
}

#vivere-regione-box {
    background-image: url("img/base-Marche.jpg");
    min-height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    /* background-color: #47C0DB; */
}

#vivere-nazionale-box {
    background-image: url("img/base-Italia.jpg");
    min-height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    /* background-color: #007DFD; */
}

/* GLIDE */
/* Posiziona le frecce fuori dal carosello */
#carouselCustom .arrows-outside {
    position: absolute;
    top: 50%;
    left: -100px;
    right: -100px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
    /* evita problemi di overlay */
}

#carouselCustom .arrows-outside .glide__arrow {
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    pointer-events: all;
    /* riattiva i click */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 0;
    z-index: 2;
}

#carouselCustom .arrows-outside .glide__arrow:hover {
    background-color: #f0f0f0;
}

/* VIVERE REGIONALE E NAZIONALE */
#vivere-regione-box .arrows-outside,
#vivere-nazionale-box .arrows-outside {
    position: absolute;
    top: 89%;
    left: -3%;
    right: 40%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

#vivere-regione-box .arrows-outside .glide__arrow,
#vivere-nazionale-box .arrows-outside .glide__arrow {
    background-color: transparent;
    border: 1px solid black;
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    pointer-events: all;
    /* riattiva i click */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 0;
    z-index: 2;
}

#vivere-regione-box .arrows-outside .glide__arrow:hover,
#vivere-nazionale-box .arrows-outside .glide__arrow:hover {
    border: 1px solid black;
}

#vivere-regione-box .arrows-outside .glide__arrow:hover,
#vivere-nazionale-box .arrows-outside .glide__arrow:hover {
    background-color: #f0f0f0;
}

#vivere-regione-box .btn,
#vivere-nazionale-box .btn {
    font-size: 11px;
    font-weight: 600;
    position: absolute;
    bottom: 36%;
}

.img-notizia-piccola {
    height: fit-content;
    width: 100%;
}

/* ARTICOLO */
.share-box {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.share-box a {
    text-decoration: none;
    padding: 10px;
    color: #CC0000;
    transition: background 0.3s;
    min-width: 20px;
}

.share-box a:hover {
    color: black;
    font-weight: 800;
}

.accordion-button {
    color: #CC0000;
}

#accordionRiassunto button.accordion-button {
    color: #CC0000;
    font-weight: 600;
    box-shadow: none;
}

#accordionRiassunto .accordion-body,
#accordionRiassunto button.accordion-button,
#allegati {
    background: #E7E7E7;
}

#allegati-list a,
#allegati-list a::after {
    color: black;
}

/* BARRA LATERALE */
#articoli-laterali{
    height: fit-content;
}

#articoli-laterali p{
    font-size: 15px;
    font-weight: 650;
    line-height: 12px;
}

#articoli-laterali a{
    text-decoration: none;
    color: black;
}

#articoli-laterali a:visited{
    color: black;
}

/* ARTICOLI PIÙ LETTI */
.glide__slide>.card{
    background-color: #F2F2F2;
}


/* COLORI PERSONALIZATI */
.bg-custom-secondary {
    background-color: #666666;
}

.bg-custom-red {
    background-color: #CC0000;
}

.text-custom-red {
    color: #CC0000;
}

.bg-marche {
    background-color: #E4F6FA;
}

.bg-nazionale {
    background-color: #E9F3FF;
}