/* ==========================================================================
   Sicurezza - Styles
   ========================================================================== */


/* --------------------------------------------------------------------------
   Titolo
   -------------------------------------------------------------------------- */

#cybersecurity.bl-titolo{ background-image: url(/img/home/banner/cyber_security_1600x450.png);}

.bl-titolo {
    height: 360px;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin: 1em -15px 1.5em;
}

.bl-titolo > H1 {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.85);
    padding: .8em 1em .5em .4em;
    bottom: 0;
    letter-spacing: .01em;
}

h3 {
    color: #009578;
    font-weight: 700;
}

#page-main UL {
    padding: 0 !important;
}


/* --------------------------------------------------------------------------
   Layout / Sections
   -------------------------------------------------------------------------- */
.sec-section {
    margin-top: 15px;
    background-color: #f5f5f5;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.sec-card {
    border-radius: 18px;
}

.sec-card__body {
    padding: 18px;
}

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */
.sec-video-wrap {
    margin-top: 25px;
}

.sec-video iframe {
    width: 100%;
    height: 440px;
    border: 0;
    border-radius: 16px;
    display: block;
}

@media (max-width: 700px) {
    .sec-video iframe {
        width: 100%;
        height: 230px;
    }

    .sec-video-wrap {
        margin-top: -16px;
    }
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.sec-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sec-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .10);
}

.sec-step:last-child {
    border-bottom: 0;
}

.sec-dot {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, .04);
    border: 1px solid rgba(0, 0, 0, .08);
    font-weight: 700;
    color: #009578;
}

.sec-step h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.sec-step p {
    margin: 0;
    opacity: .88;
    line-height: 1.55;
}

ul.sec-timeline{
    padding: 0 !important;
}
/* --------------------------------------------------------------------------
   Info box
   -------------------------------------------------------------------------- */
.box-info {
    width: 100%;
    margin: 0 0 15px;
    padding: 1.0em;
    font-size: 18px;
    border: 1px solid #009578;
    border-radius: 8px;
    background-color: #f5f5f5; 
}

/* --------------------------------------------------------------------------
   Security tip 
   -------------------------------------------------------------------------- */
.security-tip {
    background-color: #f5f5f5;
    text-align: center;
    padding: 10px 10px 10px 10px;
    margin-top: 10px;
}

.security-tip h2 {
    margin: 0;
    font-style: italic;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */
.sec-checklist {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sec-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.sec-checklist li:last-child {
    margin-bottom: 0;
}

.sec-checklist li::before {
    content: "\f00c";          /* fa-check */
    font-family: "FontAwesome"; /* FontAwesome 4 */
    position: absolute;
    left: 0;
    top: 2px;
    color: #28a745;
}


/* --------------------------------------------------------------------------
   Flex - responsive (mobile first fix)
   -------------------------------------------------------------------------- */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: baseline;
    gap: 16px;                 /* migliore del margin-bottom sparso */
    margin-top: 1em;
    margin-bottom: 3em;
    padding-left: 0;           /* se serve */
    padding-right: 0;
}

.flex-card {
    padding: 0.05em;
    flex-direction: column;
    display: flex;
    border: 1px solid #8ac1b2;
    box-shadow: 2px 6px 8px #888888;
    margin-bottom: 0;          /* ora gestito da gap */
    min-width: 0;              /* IMPORTANTISSIMO: evita overflow in flex */
    width: 100%;               /* base: 1 per riga */
    max-width: 520px;          /* opzionale: non enorme su schermi larghi */
}

.flex-card-titolo { 
    padding-left: 0.5em; 
    font-weight: bold; 
    text-align: center; 
    padding-right: 0.5em; 
    margin:0.2em 0 0.2em 0; 
}

/* Immagine sempre fluida */
/*
.flex-card-img img {
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: 10em;
    object-fit: cover;
}
    */

.flex-card-img img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    max-height: 10em;
}

/* -------------------------
   Tablet: 2 colonne (opzionale)
   ------------------------- */
@media (min-width: 768px) {
    .flex-card {
        width: calc(50% - 16px);   /* 2 card per riga */
        max-width: none;
    }

    
}

/* -------------------------
   Desktop: 3 colonne (opzionale)
   ------------------------- */
@media (min-width: 1200px) {
    .flex-card {
        width: calc(33.333% - 16px);
    }

    
}

/* -------------------------
   Mobile: ottimizzazioni
   ------------------------- */
@media (max-width: 575px) {
    #cybersecurity.bl-titolo{ background-image: url(/img/home/banner/cyber_security_430x310.png);}
    .flex-container {
        margin-top: 1.5em;
        margin-bottom: 1.5em;
        justify-content: center;   /* più naturale su 1 colonna */
        gap: 12px;
    }

    .flex-card {
        width: 100%;
        max-width: 100%;
        box-shadow: 1px 3px 6px rgba(0,0,0,.25);
    }

    .flex-card-img img {
        max-height: 11em;          /* immagini meno “alte” su mobile */
    }

    .flex-card-link {
        float: none;               /* float su mobile spesso crea “stranezze” */
        display: block;
        text-align: center;
        padding-right: 0.5em;
    }
}


