
*{
    font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body{
    margin: 0px;
    background-color: #1b2332;
    background-size: 300% auto;
    background-position: center top;
}

h1{
    font-weight: 500;
}

h1, h2{
    font-family: "Playfair Display", serif;
    color: #d2d3e5;
}

.header-container{
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    margin-top: 30px; 
    margin-left: 10px; 
    margin-right: 10px;
}

.logo{
    width: 100px;
    opacity: 0.8;
}

.header-container h1{
    color: #d2d3e5; 
    margin-bottom: 4px; 
    margin-top: 7px; 
    font-weight: 500; 
    font-size: 1.9em;
    letter-spacing: 0em;
}

.header-subtitle{
    margin: 0;
    color: rgb(210 211 229 / 76%);
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.today-count{
    font-family: "Playfair Display", serif;
    color: rgb(210 211 229 / 76%);
    font-weight: 700;
    font-size: 1.2em;
    margin-top: -0.2em;
}

#main-home-icon{
    position: absolute;
    z-index: 1000;
    top: 34px; 
    right: 20px; 
    height: 20px; 
    cursor: pointer; 
    opacity: 0.65;
}

#main-share-icon{
    position: absolute; 
    z-index: 1000;
    top: 85px; 
    right: 20px; 
    height: 20px; 
    cursor: pointer; 
    opacity: 0.65;
}

#main-bookmark-icon{
    position: absolute; 
    z-index: 999;
    top: 0px; 
    right: 12px; 
    width: 37px; 
    opacity: 0.45;
}

.single-news-source{
    font-size: 14px !important;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

/* BOX NOTIZIA */

.news-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-bottom: 30px;
    background-color: #273554;
    max-width: 500px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.04);
    padding-bottom: 10px;
    position: relative;
    overflow: hidden;
    /*height: 380px;*/
    transition: box-shadow 0.5s ease;
    backdrop-filter: blur(2px);
}

.news-box:hover{
    box-shadow: 0 0px 12px hsl(240, 50.00%, 6.30%);
}

.news-img{
    max-width: 100%;
    margin-bottom: 0px;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 0px;
}

h2, p{
    color: #d2d3e5;
}

a{
    text-decoration: none;
}

.subtitle{
    white-space: nowrap;        /* una sola riga */
    overflow: hidden;           /* nasconde ciò che eccede */
    text-overflow: ellipsis;    /* mostra ... */
    word-break: keep-all;       /* NON spezza parole */
    overflow-wrap: normal;      /* evita wrap forzato */
}

.news-box .image-container{
    /*position: absolute;
    top: 0;
    left: 0;*/
    width: 100%;
}

/*.news-box .image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    #273554ff 0%,
    #273554cc 10%,
    #27355466 25%,
    #2735541a 35%,
    #27355400 40%
    );
}*/

.news-box .headlines-container{
    padding-left: 10px;
    padding-right: 10px;
    /*position: absolute;
    bottom: 0;
    left: 0;*/
    width: 100%;
    z-index: 10;
    padding-bottom: 12px;
    box-sizing: border-box;
}

.news-box .headlines-container h2{
    color: rgb(236 236 242)
}

.news-box .headlines-container p{
    margin-top: 5px;
}

.news-box h2{
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0em;
    line-height: 1.2;
    overflow-wrap: anywhere; /* o break-word */
    word-break: normal;
}

.news-box p{
    opacity: .80;
    font-size: .95rem;
}

.read_more {
    color: white;
    background-color: #315c7a;
    border-radius: 100px;
    border: 0px solid black;
    padding: 7px;
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 500;
    cursor: pointer;
}

.single-news-title{
    max-width: 600px; 
    padding-left: 15px; 
    padding-right: 15px; 
    margin-top: 7px;
    font-size: 1.4em;
    margin-bottom: 12px;
}

.faq-container{
    max-width: 460px; 
    margin: 0 auto;
}

.faq-item{
    position: relative;
    /*border: 1px dotted #ffffff61;*/
    background: linear-gradient(to bottom, transparent 0, transparent 18px, #3c4a5b26 18px, #5e738836 100%);
    border-radius: 20px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top: 0px solid white;
    margin: 3px auto;
}

.faq-item.first{
    background: linear-gradient(to bottom, transparent 0, transparent 18px, #5b563c26 18px, #887c5e36 100%);
}

.faq-question{
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 8px;
    min-height: 36px;           /* scegli tu il valore */
    line-height: 1;             /* evita che la line box cambi */
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    background-color: #273554;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 7px;
    border-radius: 100px;
    cursor: pointer;
    /*border: 1px solid #d2d3e52e;*/
    font-size: 1em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    z-index: 2;
    margin: 0px;
    transition: background-color 52ms ease-in-out;
}

.faq-question.is-flashing{
  background-color: #37486b !important;
}

.faq-question .plus{
  position: absolute;
  left: 4px;
  top: 50%;
  margin-top: -14px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1b23326b;
  border-radius: 100px;
  font-size: 0.8em;
}

.faq-question p{
    margin: 0px;
    color: #d2d3e5;
    font-size: 1em;
    line-height: 1.4em;
    margin-left: 20px; 
    margin-right: 10px;
}
/*
.faq-item.f-left{
    margin-left: -5px;
}

.faq-item.f-right{
    margin-right: -5px;
}
*/
/*
.faq-item.f-left .faq-question{
    background-color: #37486b;
}
*/
.faq-item.first .faq-question{
    background-color: #c89f3c;
    font-weight: 600;
}

.faq-item.first .faq-question p{
    color: #1b2332;
}

.faq-item.first .faq-question .plus{
    background-color: #451f0129;
}

.faq-item.first .faq-question .st0{
    fill: #d2d3e5;
}

.faq-question b{
    float: left; 
    margin-left: 4px; 
    opacity: 0.9;
}

.faq-answer{
    display: none;
    text-align: left;
    padding: 15px;
    padding-top: 0px;
}

.faq-answer p{
    font-family: "Quicksand", sans-serif;
    font-size: 1em;
    margin-bottom: 12px;
}

.faq-answer *{
    color: #ececec;
}

.faq-answer strong{
    color: white;
}

.faq-answer mark{
    background-color: #53532e;
    color: #e4e5f0;
}

.faq-answer ul{
    padding-left: 20px;
}

.faq-answer ul li{
    margin-bottom: 3px;
}

.faq-answer ol{
    padding-left: 20px;
}

.answer-links{
    font-weight: normal;
    font-size: 0.85em;
    font-style: italic;
    
}

.dot{
  width: 5px;
  height: 5px;
  border: 1px solid #d2d3e5;
  border-radius: 50%;
  margin: 0 auto; /* centers horizontally */
}

.dot-vline{
  width: 1px;
  height: 10px;
  margin: 0 auto; /* centra orizzontalmente */
  background: repeating-linear-gradient(
    to bottom,
    #d2d3e5 0 1px,      /* puntino */
    transparent 1px 3px  /* spazio */
  );
}

.single-news-ask{
    padding-left: 15px; 
    padding-right: 15px; 
    margin-top: 7px;
    font-size: 1.25em;
    margin-bottom: 12px;
    font-weight: 500;
    font-family: "Playfair Display", serif;
}


/* MOBILE BIG */

@media (min-width: 400px) {
    .read_more {
        font-size: 15px;
    }
}

/* DESKTOP */

@media (min-width: 700px) {
    
    body{
        background-size: 130% auto;
    }

    .header-container{
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        margin-top: 40px; 
        margin-left: 10px; 
        margin-right: 10px;
    }

    .logo{
        width: 100px;
        opacity: 0.8;
    }

    .header-container h1{
        font-size: 2.4em;
        margin-bottom: 6px;
    }

    .header-subtitle{
        font-size: 0.82em;
    }

    #main-home-icon{
        top: 42px; 
        right: 24px;
    }

    #main-share-icon{
        top: 96px; 
        right: 24px;
    }

    #main-bookmark-icon{
        right: 13px; 
        width: 44px;
    }

    .news-box .headlines-container{
        padding-left: 0px;
        padding-right: 18px;
        position: relative;
        width: auto;
        padding-bottom: 0px;
        flex: 1;
        min-width: 0;
    }

    .news-box .headlines-container p{
        margin-top: 10px;
    }

    .news-box{
        flex-direction: row;
        gap: 20px;
        max-width: 800px;
        padding-bottom: 0px;
        height: auto;
    }

    .news-box .image-container{
        position: relative;
        width: auto;
        height: auto;
    }

    .news-box .image-container::after {
        content: none;
    }

    .news-img{
        max-width: 300px;
        border-top-left-radius: 18px;
        border-bottom-left-radius: 18px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    }

    .news-box h2{
        font-size: 1.5em;
        letter-spacing: 0em;
        margin-top: 3px;
    }

    .news-box .headlines-container h2{
        color: rgb(223 223 236);
    }

    .single-news-title{
        font-size: 2em;
    }

    .faq-question{
        font-size: 1.2em;
    }
    
    .faq-item.f-left{
        margin-left: -20px;
        /*padding-left: 30px;*/
    }

    .faq-item.f-right{
        margin-right: -20px;
        /*padding-right: 30px;*/
    }

    .faq-question p{
        font-size: 1em;
    }
    
}