/*SELEZIONE LINGUA DA SITO E DA LINK*/
body {
            
            font-family: Arial, sans-serif;
            color: #e0e6f1;;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            padding-bottom: 40px;
        }
.intestazione-country {
    background-color: #0d1e3c; /* Blu scuro */
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
  
}
.intestazione-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    
    background-color: #141c2c;;
}
.intestazione-links .country-link {
    background-color: rgba(255, 255, 255, 0.2); /* grigio chiaro trasparente */
    padding: 14px 8px;                         /* spazio interno */
    border-radius: 8px;                        /* angoli arrotondati */
    display: inline-block; 
    color:  #89c4fd;                    /* rettangolo intorno al testo */
}
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px; /* Regola l'altezza in base alla tua immagine */
    margin-right: 10px;
}
.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    position: relative;
    margin-left: 5px;
}
.logo-text::before {
    content: ''; /* Obbligatorio per gli pseudo-elementi */
    position: absolute;
    left: -8px; /* Posiziona la riga leggermente a sinistra della scritta */
    top: 50%;
    transform: translateY(-50%); /* Centra verticalmente la riga */
    height: 130%; /* Altezza della riga rispetto al genitore */
    width: 1px; /* Spessore della riga */
    background-color: white;
}
.intestazione-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;

}


.search-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 20px;
}

.search-button svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Bottone 'Accesso' */
.access-button {
    background-color: #FFC107; /* Giallo Eni */
    color: #0d1e3c;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 20px;
}


.intestazione-nav {
    padding: 18px 30px;
}

        .country-selection-container {
    background-color: #181c42;
    width: 100%;        /* prende tutta la larghezza del contenitore */
            height: 100%;
    

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

        .header {
            height: 40px;
            align-self: stretch;
            flex-grow: 0;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 16px 84px;
            background-color: #040832;
        }

        .header h2 {


            height: 40px;
            flex-grow: 0;
            font-family: EniTab;
            font-size: 32px;
            font-weight: bold;
            font-stretch: normal;
            font-style: normal;
            line-height: 1.25;
            letter-spacing: normal;
            text-align: left;
            color: #fff;
        }

        .close-button {
    font-size: 2rem;       /* grandezza della X */
    cursor: pointer;
    line-height: 1;


    width: 40px;             /* larghezza cerchio */
    height: 40px;            /* altezza cerchio */
    border-radius: 50%;      /* lo rende un cerchio */
    display: flex;           /* per centrare la X */
    align-items: center;
    justify-content: center;
    color: #fff;             /* colore della X */
            background-color: rgba(255, 255, 255, 0.2);
        } /* sfondo trasparente */
    .close {
        width: 24px;             /* larghezza cerchio */
        height: 24px;
    }


        .countries-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap:5% 10%;
            padding:40px 80px;
            max-width: 100%;
            margin-inline: auto;
        }

        .country-card {
            display: flex;
            flex-direction: column;
            padding: 10px;
        }

        .flag-and-name {
            display: flex;
            align-items: center;
            padding-bottom: 10px;
            border-bottom: 1px solid #ffffff;
            margin-bottom: 10px;
        }

        /* Stile specifico per le bandiere della libreria "flag-icons" */
        .fi {
            width: 30px;
            height: 20px;
            margin-right: 10px;
            border: 1px solid #3d4a6a; /* Bordo sottile per visibilità */
        }

        .country-card h3 {
            font-size: 32px;
            font-family: EniTab;
            font-weight: bold;
            margin: 0;
            color: #ffffff;
        }

        .languages p {
            line-height: 1.71;
            font-family: EniTab;
            font-size: 14px;
            color:  #ffffff;
            margin: 3px 0;
        }
        a {
            text-decoration: none;
        }
        .languages p:hover {
    color: #89c4fd; /* azzurro al passaggio del mouse */
    cursor: pointer;
}
.Vector-Stroke {
    display: none;
}

.country-top-bar{
    display: none;
     background:  hsl(241, 70%, 13%);
  justify-content: space-between;
  align-items: center;
  
  padding: 5px 15px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.final-link {
 display: none;
}

/* ----------------- VERSIONE MOBILE ----------------- */
/* ----------------- MOBILE RESPONSIVE ----------------- */
@media (max-width: 992px) {
    body {
        padding-bottom: 20px;
    }

    .intestazione-top {
        display: none !important;
        
    }
    .country-top-bar{
        display: flex;
        border: none;
    }
    .Vector-Stroke{
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: #fff;
        cursor: pointer;

    }

    .logo-container {
        display: none;
    }

    .intestazione-links {
        display: none;
    }

    .intestazione-links a,
    .access-button,
    .search-button {
        display: none;
    }

    .country-selection-container {
        width: 95%;
        margin: 0 auto;
        
        
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background-color:#040832;
        
    }
    .header h2 {
        display: none;
    }

    .close-button {
        display: flex;
        margin-right: -80%;
        background-color: #040832;
}


    /* GRIGLIA A 2 COLONNE SU MOBILE */
    .countries-grid {
        grid-template-columns: repeat(2, 1fr); /* due colonne */
        gap: 15px;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 30px;
        padding: 40px 0px ;
    }

    .country-card {
        padding: 8px;
    }

    .flag-and-name {
        padding-bottom: 5px;
        margin-bottom: 5px;
        border-bottom: 1px solid #ffffff;
    }

    .fi {
        width: 25px;
        height: 16px;
        margin-right: 8px;
    }

    .country-card h3 {
        font-size: 16px;
    }

    .languages p {
        font-family: EniTab;
        font-size: 14px;

        line-height: 1.71;
        margin: 8px 0;
        cursor: pointer;
    }
    .languages p:hover {
        color: #89c4fd; /* azzurro al passaggio del mouse */
        cursor: pointer;
    }

        .final-link {
            display: flex;
            background-color: #f0f0f0; /* grigio chiaro */
            align-items: center;
            justify-content: center;
            height: 30px;
        }

        .final-link a {
            color: #000 !important; /* testo nero */
            text-decoration: underline;
            text-decoration-thickness: 2px;
            font-size: 0.8rem;
            justify-content: center;
            text-align: center;
            font-weight: bold;
            display: block;
            margin-left: 20px;
        }
    }



