/*******************************/
/********* General CSS *********/
/*******************************/
@font-face {
    font-family: 'Aeion';
    src: url('../fonts/Aeion-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aeion';
    src: url('../fonts/Aeion-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

body {
    color: #797979;
    background: #efefef;
    font-family: 'Aeion', sans-serif;
}

h1,
h2, 
h3, 
h4,
h5, 
h6 {
    color: #414141;
}

a {
    color: #313131;
    transition: .3s;
}

a:hover,
a:active,
a:focus {
    color: #581D0C;
    outline: none;
    text-decoration: none;
}

.btn:focus,
.form-control:focus {
    box-shadow: none;
}

.container-fluid {
    max-width: 1366px;
}

.btn {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #581D0C;
    background: transparent;
    border: 2px solid #581D0C;
    border-radius: 0;
    box-shadow: inset 0 0 0 50px #fff;
    transition: ease-out 0.3s;
    -webkit-transition: ease-out 0.3s;
    -moz-transition: ease-out 0.3s;
    border-radius: 15px; /* Rounded corners */
}

.btn:hover {
    color: #fff;
    background: #C3CA09;
    box-shadow: inset 0 0 0 0 #C3CA09;
    border-color: #C3CA09;
}


.tree-container {
    margin: 20px auto;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
}



/* HOME CSS */

        .container {
            padding-top: 50px;
        }
        .block-row {
            margin-bottom: 50px;
        }
        .block-title {
            text-align: center;
            font-weight: bold;
            color: #581D0C;
            margin-bottom: 15px;
            font-size: 1.8rem;
        }
        .block-image {
            width: 100%;
            height: auto;
            border-radius: 8px;
            transition: transform 0.3s ease;
        }
        .block-image:hover {
            transform: scale(1.05);
        }
        .info-box {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            margin-top: 10px;
        }
        .info-box h2 {
            font-size: 1.4rem;
            color: #581D0C;
        }
        .info-box p {
            color: #555;
        }

/**********************************/
/************* DB CSS *************/
/**********************************/
.icon-radio {
    cursor: pointer;
    width: 100%;
    max-width: 160px; /* Mantieni questa dimensione per schermi più grandi */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Assicura che tutte le immagini siano responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Media query per schermi piccoli */
@media (max-width: 575.98px) {
    .icon-radio {
        max-width: 80px; /* Riduci ulteriormente la larghezza delle icone su mobile */
    }
    
    /* Contenitore dell'immagine */
    .image-container {
        border: 2px solid transparent; /* Nessun bordo di default */
        padding: 5px; /* Spazio intorno all'immagine */
        display: inline-block; /* Per mantenere il layout inline */
        border-radius: 10px; /* Arrotonda gli angoli del contenitore */
        background-color: #f0f0f0; /* Colore di sfondo */
        transition: border-color 0.3s ease; /* Transizione per l'effetto di selezione */
    }
    
    /* Quando l'icona è selezionata */
    .image-container.selected {
        border-color: #007bff; /* Colore del bordo quando selezionato */
    }
    
    /* Effetto hover sull'immagine */
    .image-container:hover {
        border-color: #007bff; /* Colore del bordo quando si passa il mouse sopra */
    }
    
    /* Effetto hover anche per l'immagine stessa */
    .image-container img {
        transition: transform 0.3s ease; /* Aggiunge una transizione per l'effetto zoom */
    }
    
    /* Aumenta leggermente l'immagine al passaggio del mouse */
    .image-container:hover img {
        transform: scale(1.05); /* Zoom leggero */
    }

}

/* Stile per il riquadro attorno alle immagini morfologiche */
.icon-container-morph .image-container {
    border: 3px solid transparent; /* Riquadro inizialmente invisibile */
    padding: 7px;
    border-radius: 8px; /* Arrotonda gli angoli */
    transition: border-color 0.3s ease; /* Transizione per un effetto morbido */
    display: inline-block; /* Assicura che il bordo si applichi solo all'immagine */
}

.icon-container-morph .image-container img {
    cursor: pointer; /* Aggiungi il cursore "pointer" per indicare che è cliccabile */
    transition: transform 0.3s ease; /* Aggiungi una leggera animazione quando l'immagine è selezionata */
}

/* Quando l'immagine viene selezionata */
.icon-container-morph .image-container.selected {
    border-color: #ffff; /* Cambia il colore del bordo quando selezionata */
}

/* Effetto hover solo sull'immagine */
.icon-container-morph .image-container:hover {
    border-color: #C3CA09; /* Cambia il colore del bordo al passaggio del mouse */
}

/* Ingrandisci leggermente l'immagine quando è selezionata */
.icon-container-morph .image-container img.selected {
    transform: scale(1.1); /* Ingrandisci leggermente l'immagine */
}

/* Imposta lo stile per l'etichetta del testo senza sovrapposizioni */
.icon-container-morph .icon-label {
    display: block;
    margin-top: 5px;
    text-align: center; /* Per allineare il testo sotto l'immagine */
}

/* Media query per dispositivi mobili */
@media (max-width: 575.98px) {
    /* Stili per l'icon container per metterli in riga */
    .icon-container-morph {
        display: flex;
        flex-wrap: wrap; /* Consente di andare a capo se necessario */
        justify-content: space-around; /* Distribuisce gli elementi con spazio intorno */
    }
    
    /* Riduci le dimensioni dei contenitori */
    .icon-container-morph .image-container {
        max-width: 80px; /* Riduce la dimensione del contenitore su mobile */
        margin: 5px; /* Aggiunge un piccolo margine tra i contenitori */
    }

    /* Mantieni responsive le immagini all'interno */
    .icon-container-morph .image-container img {
        width: 100%; /* Mantieni l'immagine all'interno del contenitore */
        height: auto;
    }

    /* Allinea il testo al centro sotto le immagini */
    .icon-label {
        font-size: 12px; /* Riduci la dimensione del testo su mobile */
        text-align: center;
    }
}

/* Non è necessario modificare altro nel CSS */


/**********************************/
/************* DB CSS *************/
/**********************************/
.icon-radio {
    cursor: pointer;
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto;
}
.icon-label {
    text-align: center;
    display: block;
}
.selected {
    border: 4px solid green;
    border-radius: 8px;
}
.highlight-1 { background-color: #d36a6a; } 
.highlight-2 { background-color: #d37b7b; } 
.highlight-3 { background-color: #d38d8d; }  
.highlight-4 { background-color: #d49e9e; }  
.highlight-5 { background-color: #d4afaf; }  
.highlight-6 { background-color: #d6bfbf; }  
.highlight-7 { background-color: #d8d2b1; } 
.highlight-8 { background-color: #dac39a; }  
.highlight-9 { background-color: #e0d3b5; }  
.highlight-10 { background-color: #d5cfaf; }  
.highlight-11 { background-color: #ced8b5; } 
.highlight-12 { background-color: #bed8b5; } 
.highlight-13 { background-color: #b1d3a5; } 
.highlight-14 { background-color: #9cc2a5; } 
.highlight-15 { background-color: #8dbfbf; } 
.highlight-16 { background-color: #87c4d5; }  
.highlight-17 { background-color: #78bbd5; }  
.highlight-18 { background-color: #6fa6c7; } 
.highlight-19 { background-color: #6080bf; }  
.highlight-s { background-color: #C3CA09; }

.selected-snp-id {
    color: #C3CA09; /* Scegli un colore per il testo che si distingue */
    font-weight: bold; /* Facoltativo: rende il testo più visibile */
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-popup {
    font-size: 1.5rem;
    color: #51A8D1;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.icon-popup:hover {
    color: #C3CA09;
    transform: scale(1.1);
}

.popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    display: none;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

/* Rimuovi il margine superiore dell'header h3 nel popup */
.popup-box h3 {
    margin-top: 0;
    margin-bottom: 10px; /* Regola se necessario */
}

.popup-box.active {
    display: block;
}

.popup-box .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup-overlay.active {
    display: block;
}

/* Stili per il contenuto del popup */
.popup-content {
    margin: 0;
    padding: 0;
}

.popup-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.popup-content table {
    margin-top: 0;
}

/* Media query per tablet e desktop */
@media (min-width: 576px) {
    .popup-box {
        width: 70%;
        max-width: 500px;
    }
}

@media (min-width: 992px) {
    .popup-box {
        width: 50%;
        max-width: 600px;
    }
}

/* Stili per la tabella dei nucleotidi */
.nucleotide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
}

.nucleotide-table th, .nucleotide-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.nucleotide-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.nucleotide-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.nucleotide-table tr:hover {
    background-color: #ddd;
}



.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Questo allinea gli elementi agli estremi */

}

.title-with-link {
    margin: 0;
}

.clickable-text-container {
    margin: 0;
    margin-left: 10px;
}

.clickable-text {
    cursor: pointer;
    font-size: 16px;
    color: #581D0C; /* Colore del link normale */
}

.clickable-text:hover {
    color: #8F912F; /* Colore del link quando il mouse è sopra (in questo caso rosso) */
    text-decoration: underline;
}


.section-box {
    border: 3px solid #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 30px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Aggiunge un'ombra */
}
.section-box-small {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 10px auto;
}

.color-red {
    color: red;
}
.color-green {
    color: green;
}
.color-blue {
    color: blue;
}
.color-orange {
    color: orange;
}


.morphology-section {
    display: none; /* Nascondi inizialmente */
}
.morphology-section.active {
    display: block; /* Mostra quando attivo */
}

.parameters-section {
    display: none; /* Nascondi inizialmente */
}
.parameters-section.active {
    display: block; /* Mostra quando attivo */
}
.toggle-header {
    cursor: pointer; /* Cambia il cursore in una manina */
    color: #581D0C ; /* Colore iniziale del testo */
    transition: color 0.2s; /* Aggiungi una transizione per un effetto più fluido */
}
.toggle-header:hover {
     color: #C3CA09 ; /* Cambia il colore del testo quando il mouse è sopra */
}

.top-right-link {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
}

.table.table-bordered {
    border: 2px solid #581D0C; /* Cambia il colore e la larghezza del bordo esterno della tabella */
    border-radius: 10px; /* Aggiunge angoli arrotondati */
    overflow: hidden; /* Assicura che i bordi arrotondati funzionino bene */
}

.table.table-bordered th,
.table.table-bordered td {
    border: 1px solid #581D0C; /* Cambia il colore del bordo delle celle */
    padding: 10px; /* Aggiunge spazio interno alle celle */
    text-align: center; /* Centra il testo nelle celle */
}

.table.table-bordered th {
    border-bottom: 16px solid #efefef; /* Cambia il colore del rigo sotto l'intestazione */
}



/* Colore di sfondo delle righe pari */
.table.table-bordered tr:nth-child(even) {
    background-color: #eeeeee; /* Cambia il colore di sfondo delle righe pari */
}

/* Colore di sfondo delle righe dispari */
.table.table-bordered tr:nth-child(odd) {
    background-color: #ffffff; /* Cambia il colore di sfondo delle righe dispari */
}

/* Stili applicati solo alle tabelle all'interno di #snp-details */
#snp-details table td, #snp-details table th {
    word-wrap: break-word;
    word-break: break-all;
    max-width: 300px; /* Regola la larghezza massima come preferisci */
    width: 33.33%; /* Assicura che ogni colonna prenda 1/3 dello spazio disponibile */
}

/* Rimuovi la regola che imposta larghezza al 50% */
#snp-details .table-col {
    width: 33.33%; /* Larghezza uguale per tutte le colonne */
}

/* Stili generali (se desideri applicare modifiche aggiuntive solo all'interno di #snp-details) */
#snp-details .table {
    margin: auto;
}

#snp-details th.text-center {
    text-align: center;
}



.diagonal-split {
    position: relative;
    width: 120px; /* Adatta la larghezza alla tua tabella */
    height: 60px; /* Adatta l'altezza */
    background: linear-gradient(to bottom left, #fff 50%, #f0f0f0 50%);
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

.diagonal-split .upper-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 5px; /* Aggiusta il padding se necessario */
    font-weight: bold;
}

.diagonal-split .lower-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 5px; /* Aggiusta il padding se necessario */
    font-weight: bold;
}

.custom-height-table thead tr {
    height: 120px; /* Imposta l'altezza desiderata */
}

.custom-height-table thead th {
    height: 120px; /* Imposta la stessa altezza per le celle */
    vertical-align: middle; /* Assicura che il testo sia allineato verticalmente */
}

/* Aumenta la larghezza della prima colonna */
.custom-height-table thead th:first-child, 
.custom-height-table tbody td:first-child {
    width: 250px; /* Imposta la larghezza desiderata per la prima colonna */
}

.wrap-snp-id {
    width: 5px; /* Imposta una larghezza stretta per forzare l'andata a capo */
    word-break: break-all; /* Forza il testo a spezzarsi dopo ogni carattere */
    white-space: normal; /* Permette al testo di andare a capo */
    text-align: center; /* Centra il testo nella cella */
}


/* style.css */

/* Stile del select */
.select-custom {
    display: block;
    width: 100%;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23595c5f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"%3E%3Cpolyline points="6 9 12 15 18 9"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
}

/* Focus e hover sul select */
.select-custom:focus, .select-custom:hover {
    border-color: #C3CA09;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(88, 29, 12, 0.25);
}

/* Stile delle opzioni */
.select-custom option {
    color: #495057;
    background-color: #fff;
}

/* Per risolvere il problema dell'icona mancante su alcuni browser */
.select-custom::-ms-expand {
    display: none;
}

/* Stile dell'icona del dropdown */
.select-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 1em;
    height: 1em;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23595c5f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"%3E%3Cpolyline points="6 9 12 15 18 9"/%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
    color: #595c5f; /* Colore dell'icona */
}



/*******************************/
/********** Hero CSS ***********/
/*******************************/
.hero {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    padding: 120px 0 0 0;
    overflow: hidden;
    background: url(../img/header.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 90vh; /* Altezza minima per desktop */
}

@media (max-width: 991.98px) {
    .hero {
        min-height: 70vh; /* Altezza minima per dispositivi mobili */
    }
}

.hero .container-fluid {
    padding: 0;
}

.hero .hero-image {
    position: relative;
    text-align: right;
    padding-right: 65px;
}

.hero .hero-image img {
    max-width: 80%;
    max-height: 80%;
}

.hero .hero-content {
    position: relative;
    padding-left: 75px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.hero .hero-text p {
    color: #ffffff80;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 180px;
}

.hero .hero-text h1 {
    color: #C3CA09;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero .hero-text h2 {
    display: inline-block;
    margin: 0;
    height: 35px;
    color: #ffffff80;
    font-size: 35px;
    font-weight: 600;
}

.hero .hero-text .typed-text {
    display: none;
}

.hero .hero-text .typed-cursor {
    font-size: 35px;
    font-weight: 300;
    color: #ffffff;
}

.hero .hero-btn .btn {
    margin-top: 35px;
    color: #581D0C;
    background: #ffffff;
    box-shadow: inset 0 0 0 50px #ffffff;
    border-radius: 15px; /* Rounded corners */
}

.hero .hero-btn .btn:hover {
    color: #ffffff;
    background: #C3CA09;
    box-shadow: inset 0 0 0 0 #ffffff;
    border-color: #581D0C;
    border-radius: 15px; /* Rounded corners */
}

.hero .hero-btn .btn:first-child {
    margin-right: 10px;
}

@media (max-width: 991.98px) {
    .hero {
        padding-top: 60px;
    }
    
    .hero .hero-content {
        padding: 0 15px;
    }
    
    .hero .hero-text p {
        font-size: 20px;
    }
    
    .hero .hero-text h1 {
        font-size: 45px;
    }
    
    .hero .hero-text h2 {
        font-size: 25px;
        height: 25px;
    }
    
    .hero .hero-btn .btn {
        padding: 12px 30px;
        letter-spacing: 1px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero,
    .hero .hero-text,
    .hero .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .hero .hero-text p {
        font-size: 18px;
    }
    
    .hero .hero-text h1 {
        font-size: 35px;
    }
    
    .hero .hero-text h2 {
        font-size: 22px;
        height: 22px;
    }
    
    .hero .hero-btn .btn {
        padding: 10px 15px;
        letter-spacing: 1px;
    }
}

@media (max-width: 575.98px) {
    .hero .hero-text p {
        font-size: 16px;
    }
    
    .hero .hero-text h1 {
        font-size: 30px;
    }
    
    .hero .hero-text h2 {
        font-size: 18px;
        height: 18px;
    }
    
    .hero .hero-btn .btn {
        padding: 8px 10px;
        letter-spacing: 0;
    }
}


/*******************************/
/******* Section Header ********/
/*******************************/

.navbar {
    position: fixed;  /* Imposta la navbar come fissa */
    top: 0;           /* Mantiene l'header in alto */
    width: 100%;      /* Occupa tutta la larghezza della pagina */
    z-index: 1000;    /* Assicura che l'header sia sopra agli altri elementi */
    background-color: #C3CA09 !important; /* Colore di sfondo dell'header */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Aggiunge un'ombra all'header */
}

/* Aggiusta il contenitore per evitare sovrapposizioni */
body {
    padding-top: 70px;  /* Spazio extra per evitare che il contenuto si sovrapponga all'header */
}


/* Logo styles */
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #581D0C;
    transition: 0.5s;
}

.navbar-brand img {
    height: 50px; /* Altezza dell'immagine del logo per desktop */
    max-width: 100%;
    transition: height 0.5s;
}

/* Navbar link styles */
.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-item .nav-link {
    color: #581D0C;
    font-weight: 600;
    font-size: 15px;
    padding: 7px 11px;
    transition: color 0.2s;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #ffffff; /* Cambia colore quando ci passi sopra */
}

.nav-link.active {
    font-weight: bold;
    color: white !important; /* Cambia il colore come preferisci */
    font-size: 1.1rem !important; /* Aumenta leggermente la dimensione del font */
}

/* Burger menu styles */
.navbar-toggler {
    border: none;
    outline: none;
    transition: all 0.3s ease-in-out;
}

/* Hide the navbar links in mobile view and use burger menu */
@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-brand {
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .navbar-brand img {
        height: 60px; /* Riduci l'altezza del logo per mobile */
    }

    /* Navbar links as dropdown menu in mobile view */
    .navbar-nav {
        width: 100%;
        text-align: center;
    }

    .navbar-collapse {
        background-color: #C3CA09;
        padding: 15px;
    }

    .navbar-nav .nav-item {
        margin: 10px 0;
    }

    .navbar-nav .nav-item .nav-link {
        font-size: 18px; /* Aumenta il font per rendere leggibili i link in mobile */
    }
    
    /* Bandiera attiva - piena luminosità e saturazione */
    .active-flag {
        filter: brightness(1) saturate(1);
    }
    
    /* Bandiera inattiva - meno luminosa e desaturata */
    .inactive-flag {
        filter: brightness(0.5) saturate(0.3); /* Regola la luminosità e saturazione per bandiera inattiva */
        transition: filter 0.3s ease-in-out; /* Aggiungi una transizione per rendere fluido il cambiamento */
    }
    
    /* Aggiungi un effetto hover per le bandiere inattive */
    .inactive-flag:hover {
        filter: brightness(0.8) saturate(0.8); /* Effetto al passaggio del mouse per rendere la bandiera più visibile */
        transform: scale(1.1); /* Leggero ingrandimento al passaggio del mouse */
    }

}



/*******************************/
/********** About CSS **********/
/*******************************/
.about {
    position: relative;
    width: 100%;
    margin: -45px 0 140px 0;
}

.about .col-lg-6 {
    padding: 0;
}

.about .section-header {
    margin-bottom: 30px;
}

.about .about-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about .about-img img {
    position: relative;
    width: 80%;
    height: 80%;
    object-fit: cover;
}

.about .about-content {
    padding: 0 60px;
}

.about .about-text p {
    font-size: 16px;
}

.about .skills {
    margin-bottom: 30px;
}

.about .skill-name {
    margin-top: 15px;
}

.about .skill-name p {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 400;
}

.about .skill-name p:last-child {
    float: right;
}

.about .progress {
    height: 10px;
    border-radius: 10px;
    background: #dddddd;
}

.about .progress .progress-bar {
    width: 0px;
    background: #581D0C;
    border-radius: 10px;
    transition: 2s;
}

.about .about-text a.btn {
    margin-top: 15px;
}

@media (max-width: 991.98px) {
    .about .about-content {
        padding: 45px 15px 0 15px;
    }
}


/*******************************/
/******* Experience CSS ********/
/*******************************/
.experience {
    position: relative;
    padding: 45px 0 15px 0;
}

.experience .timeline {
    position: relative;
    width: 100%;
}

.experience .timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #581D0C;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.experience .timeline .timeline-item {
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 30px;
}

.experience .timeline .timeline-item.left {
    left: 0;
    padding-right: 30px;
}

.experience .timeline .timeline-item.right {
    left: 50%;
    padding-left: 30px;
}

.experience .timeline .timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 48px;
    right: -8px;
    background: #ffffff;
    border: 2px solid #581D0C;
    border-radius: 16px;
    z-index: 1;
}

.experience .timeline .timeline-item.right::after {
    left: -8px;
}

.experience .timeline .timeline-item::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 46px;
  right: 10px;
  z-index: 1;
  border: 10px solid;
  border-color: transparent transparent transparent #dddddd;
}

.experience .timeline .timeline-item.right::before {
  left: 10px;
  border-color: transparent #dddddd transparent transparent;
}

.experience .timeline .timeline-date {
    position: absolute;
    width: 100%;
    top: 44px;
    font-size: 16px;
    font-weight: 600;
    color: #C3CA09;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.experience .timeline .timeline-item.left .timeline-date {
    text-align: left;
    left: calc(100% + 55px);
}

.experience .timeline .timeline-item.right .timeline-date {
    text-align: right;
    right: calc(100% + 55px);
}

.experience .timeline .timeline-text {
    padding: 30px;
    background: #ffffff;
    position: relative;
    border-right: 5px solid #dddddd;
    box-shadow: 0 0 60px rgba(0, 0, 0, .08);
}

.experience .timeline .timeline-item.right .timeline-text {
    border-right: none;
    border-left: 5px solid #dddddd;
}

.experience .timeline .timeline-text h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 600;
}

.experience .timeline .timeline-text h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
}

.experience .timeline .timeline-text p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 767.98px) {
    .experience .timeline::after {
        left: 8px;
    }

    .experience .timeline .timeline-item {
        width: 100%;
        padding-left: 38px;
    }
    
    .experience .timeline .timeline-item.left {
        padding-right: 0;
    }
    
    .experience .timeline .timeline-item.right {
        left: 0%;
        padding-left: 38px;
    }

    .experience .timeline .timeline-item.left::after, 
    .experience .timeline .timeline-item.right::after {
        left: 0;
    }
    
    .experience .timeline .timeline-item.left::before,
    .experience .timeline .timeline-item.right::before {
        left: 18px;
        border-color: transparent #dddddd transparent transparent;
    }
    
    .experience .timeline .timeline-item.left .timeline-date,
    .experience .timeline .timeline-item.right .timeline-date {
        position: relative;
        top: 0;
        right: auto;
        left: 0;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .experience .timeline .timeline-item.left .timeline-text,
    .experience .timeline .timeline-item.right .timeline-text {
        border-right: none;
        border-left: 5px solid #dddddd;
    }
}


/*******************************/
/********* Service CSS *********/
/*******************************/

.service {
    position: relative;
    width: 100%;
    padding: 45px 0 140px 0;
}

.service .service-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 0 transparent;
    transition: ease-out 0.5s;
    height: 100%;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.service .service-item:hover {
    box-shadow: inset 800px 0 0 0 #581D0C;
}

.service .service-icon {
    position: relative;
    width: 150px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #581D0C;
    background: #ffffff;
    margin-bottom: 20px;
}

.service .service-icon i {
    position: relative;
    font-size: 60px;
    color: #581D0C;
    transition: .3s;
}

.service .service-item:hover i {
    font-size: 75px;
}

.service .service-text {
    position: relative;
    padding: 0 30px;
    text-align: center;
}

.service .service-text h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    transition: 1s;
}

.service .service-text p {
    margin: 0;
    font-size: 16px;
    transition: 1s;
}

.service .service-item:hover .service-text h3,
.service .service-item:hover .service-text p {
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .service .service-text h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .service .service-text p {
        font-size: 14px;
    }
}

/*******************************/
/******** Portfolio CSS ********/
/*******************************/
.portfolio {
    position: relative;
    padding: 45px 0 15px 0;
}

.portfolio #portfolio-filter {
    padding: 0;
    margin: -15px 0 25px 0;
    list-style: none;
    font-size: 0;
    text-align: center;
}

.portfolio #portfolio-filter li {
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #581D0C;
    border: 2px solid transparent;
    border-radius: 0;
    box-shadow: inset 0 0 0 50px #581D0C;
    transition: ease-out 0.3s;
    -webkit-transition: ease-out 0.3s;
    -moz-transition: ease-out 0.3s;
}

.portfolio #portfolio-filter li:hover,
.portfolio #portfolio-filter li.filter-active {
    color: #581D0C;
    background: transparent;
    box-shadow: inset 0 0 0 0 #581D0C;
    border-color: #581D0C;
}

.portfolio .portfolio-item {
    position: relative;
}

.portfolio .portfolio-wrap {
    position: relative;
    width: 100%;
}

.portfolio .portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio .portfolio-img img {
    position: relative;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transform: scale(1.1);
    transition: .5s;
}

.portfolio .portfolio-item:hover img {
    margin-left: 15px;
}

.portfolio .portfolio-text {
    position: relative;
    height: 60px;
    width: calc(100% - 30px);
    margin: -30px 15px 30px 15px;
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, .12);
}

.portfolio .portfolio-text h3 {
    width: calc(100% - 70px);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 0 15px;
    white-space: nowrap;
    overflow: hidden;
}

.portfolio .portfolio-text a.btn {
    width: 50px;
    height: 50px;
    padding: 0 0 2px 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: 100;
}

.portfolio .portfolio-item:hover a.btn {
    color: #581D0C;
    background: transparent;
    box-shadow: inset 0 0 0 0 #581D0C;
    border-color: #581D0C;
}


/*******************************/
/********* Banner CSS **********/
/*******************************/
.banner {
    position: relative;
    width: 100%;
    margin: 45px 0;
    padding: 90px 0;
    background: #581D0C;
}

.banner .container {
    max-width: 750px;
    text-align: center;
}

.banner .section-header {
    margin-bottom: 20px;
}

.banner .section-header p {
    color: #C3CA09;
    background: transparent;
}

.banner .section-header p::after {
    display: none;
}

.banner .section-header h2 {
    color: #ffffff;
}

.banner .section-header h2 span {
    color: #C3CA09;
    font-size: 50px;
}

.banner .banner-text p {
    font-size: 18px;
    color: #ffffff;
}

.banner .banner-text .btn {
    margin-top: 15px;
    color: #581D0C;
    background: #ffffff;
    box-shadow: inset 0 0 0 50px #ffffff;
    border-radius: 15px; /* Rounded corners */
}

.banner .banner-text .btn:hover {
    color: #ffffff;
    background: #C3CA09;
    box-shadow: inset 0 0 0 0 #ffffff;
    border-color: #581D0C;
    border-radius: 15px; /* Rounded corners */
}




/*******************************/
/*********** Team CSS **********/
/*******************************/
.team {
    position: relative;
    width: 100%;
    padding: 45px 0 15px 0;
}

.team .team-item {
    position: relative;
    background: #ffffff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: inset 0 0 0 0 transparent;
    transition: ease-out 0.5s;
}

.team .team-img {
    position: relative;
    width: 50%;
    overflow: hidden;
}

.team .team-img img {
    position: relative;
    width: 100%;
    transition: .5s;
}

.team .team-text {
    position: relative;
    width: 50%;
    padding: 0 30px;
}

.team .team-text h2 {
    color: #581D0C;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    transition: 1s;
}

.team .team-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: 1s;
}

.team .team-text p {
    margin-bottom: 20px;
    transition: 1s;
}

.team .team-social {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.team .team-social a.btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: normal;
    margin-right: 5px;
}

.team .team-item:hover {
    box-shadow: inset 800px 0 0 0 #581D0C;
}

.team .team-item:hover .team-img img {
    transform: scale(1.2);
}

.team .team-item:hover .team-text h2,
.team .team-item:hover .team-text h4,
.team .team-item:hover .team-text p {
    color: #ffffff;
}

.team .team-item:hover .team-social a.btn {
    background: #ffffff;
}

.team .team-item:hover .team-social a.btn:hover {
    border-color: #ffffff;
}

@media(max-width: 575.98px) {
    .team .team-text {
        padding: 0 15px;
    }
    
    .team .team-text h2 {
        font-size: 16px;
        margin-bottom: 0;
    }

    .team .team-text h4 {
        margin-bottom: 5px;
    }

    .team .team-text p {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 10px;
    }
}


/*******************************/
/******* Testimonial CSS *******/
/*******************************/
.testimonial {
    position: relative;
    margin: 45px 0;
    padding: 90px 0;
    background: #581D0C;
}

.testimonial .container {
    max-width: 900px;
}

.testimonial .testimonial-icon {
    margin-bottom: 45px;
    text-align: center;
}

.testimonial .testimonial-icon i {
    font-size: 60px;
    color: rgba(256, 256, 256, .5);
}

.testimonial .testimonial-item {
    position: relative;
    margin: 0 15px;
    text-align: center;
}

.testimonial .testimonial-img {
    position: relative;
    margin-bottom: 15px;
    z-index: 1;
}

.testimonial .testimonial-item img {
    margin: 0 auto;
    width: 120px;
    padding: 10px;
    border: 5px dotted #ffffff;
    border-radius: 100px;
}

.testimonial .testimonial-text {
    position: relative;
    margin-top: -70px;
    padding: 65px 35px 30px 35px;
    text-align: center;
    background: #ffffff;
    border-radius: 500px;
}

.testimonial .testimonial-item p {
    font-size: 18px;
    font-style: italic;
}

.testimonial .testimonial-text h3 {
    color: #581D0C;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.testimonial .testimonial-text h4 {
    color: #666666;
    font-size: 14px;
    margin-bottom: 0;
}

.testimonial .owl-dots {
    margin-top: 15px;
    text-align: center;
}

.testimonial .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(256, 256, 256, .5);
}

.testimonial .owl-dot.active {
    background: #ffffff;
}


/*******************************/
/********* Contact CSS *********/
/*******************************/
.contact {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    padding: 120px 0 0 0;
    overflow: hidden;
    background: url(../img/1header.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 105vh; /* Altezza minima per desktop */
}

.contact .container-fluid {
    background: transparent left center no-repeat;
    background-size: contain;
}

.contact .contact-form {
    max-width: 600px;
    width: 100%;
    padding: 90px 45px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    margin: 15px;
    margin-top: 75px; /* Add margin-top to move forms down */
    border-radius: 15px; /* Rounded corners */
}

/* First Form Styling (Login) */
.contact-form-1 {
    background: #c4ca09a9;
    border-radius: 15px; /* Rounded corners */
}

.contact-form-1 h2 {
    color: #474747;
}

.contact-form-1 .btn {
    color: #372A28;
    background: #372A28;
    box-shadow: inset 0 0 0 50px #c4ca09a9;
    border-radius: 15px; /* Rounded corners */
}

.contact-form-1 .btn:hover {
    color: #c4ca09a9;
    background: #372A28;
    box-shadow: inset 0 0 0 0 #c4ca09a9;
    border-color: #372A28;
    border-radius: 15px; /* Rounded corners */
}

.contact-form-1 .form-control::placeholder {
    color: #474747;
    opacity: 1;
}

/* Second Form Styling (Registration) */
.contact-form-2 {
    background: #2e2321d4;
    border-radius: 15px; /* Rounded corners */
}

.contact-form-2 h2 {
    color: #C3CA09;
}

.contact-form-2 .btn {
    color: #C3CA09;
    background: #C3CA09;
    box-shadow: inset 0 0 0 50px #372A28;
    border-radius: 15px; /* Rounded corners */
}

.contact-form-2 .btn:hover {
    color: #372A28;
    background: #C3CA09;
    box-shadow: inset 0 0 0 0 #C3CA09;
    border-color: #372A28;
    border-radius: 15px; /* Rounded corners */
}

.contact-form-2 .form-control::placeholder {
    color: #C3CA09;
    opacity: 1;
}

.contact .contact-form input,
.contact .contact-form textarea {
    color: #ffffff;
    background: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(256, 256, 256, .5);
    padding: 15px 0;
    border-radius: 0px; /* Rounded corners for input and textarea */
}

.contact .button-container {
    display: flex;
    justify-content: center; /* Center the button */
    width: 100%;
}

.contact .help-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 14px;
    color: #C3CA09;
}

/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 80px;
}

.modal-content {
    background-color: #C3CA09;
    margin: auto;
    padding: 20px;
    border: 1px solid #372A28;
    width: 60%;
    max-width: 300px; /* Smaller and centered */
    margin-top: 100px; /* Additional margin-top to move it even lower */
}

.close {
    color: #372A28;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.close {
    color: #372A28;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



@media (max-width: 767.98px) {
    .contact {
        display: block;
        padding: 40px 0 0 0;
        min-height: auto; /* Adjust min-height for mobile */
        background: url(../img/2header.png); /* Different background for mobile */
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 100vh;
    }

    .contact .contact-form {
        padding: 30px 15px;
        margin: 15px auto;
        margin-top: 30px; /* Adjust margin-top for mobile */
        max-width: 100%; /* Ensure forms take full width on mobile */
        box-shadow: none; /* Remove box-shadow on mobile */
        border-radius: 15px; /* Rounded corners */
    }
    
    .contact .contact-form-1 {
        order: 1; /* Ensure login form appears first on mobile */
    }

    .contact .contact-form-2 {
        order: 2; /* Ensure registration form appears second on mobile */
    }

    .contact .contact-form h2 {
        font-size: 24px; /* Adjust heading size for mobile */
    }

    .contact .contact-form input,
    .contact .contact-form textarea {
        font-size: 14px; /* Adjust input and textarea size for mobile */
        border-radius: 0px; /* Rounded corners for input and textarea */
    }

    .contact .contact-form .btn {
        font-size: 16px; /* Adjust button size for mobile */
        padding: 10px 20px; /* Adjust button padding for mobile */
        border-radius: 15px; /* Rounded corners */
    }
    
}




/*******************************/
/*********** Blog CSS **********/
/*******************************/
.blog {
    position: relative;
    width: 100%;
    padding: 45px 0 15px 0;
}

.blog .blog-item {
    position: relative;
    margin-bottom: 30px;
}

.blog .blog-img {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog .blog-img img {
    width: 100%;
    transition: .5s;
}

.blog .blog-item:hover img {
    transform: scale(1.1);
}

.blog .blog-text {
    position: relative;
    padding: 30px;
    border-right: 1px solid rgba(0, 0, 0, .07);
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    border-left: 1px solid rgba(0, 0, 0, .07);
}

.blog .blog-text h2 {
    font-size: 25px;
    font-weight: 600;
}

.blog .blog-text p {
    margin-bottom: 10px;
}

.blog .blog-item a.btn {
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 15px; /* Rounded corners */
}

.blog .blog-item a.btn i {
    margin-left: 5px;
}

.blog .blog-meta {
    position: relative;
    display: flex;
    margin-bottom: 15px;
}

.blog .blog-meta p {
    margin: 0 10px 0 0;
    font-size: 13px;
}

.blog .blog-meta i {
    color: #414141;
    margin-right: 5px;
}

.blog .blog-meta p:last-child {
    margin: 0;
}


/*******************************/
/********* Footer CSS **********/
/*******************************/
.footer {
    position: relative;
    margin-top: 0; /* oppure 10px se serve un minimo margine */
    padding: 0px 0 20px 0; /* spazio interno sopra e sotto */
    background: #581D0C;
    font-size: 14px;
    color: #ffffff;
}

.footer-logo {
    height: 100px;
    object-fit: contain;
    vertical-align: middle;
}


.footer a:hover {
    text-decoration: underline;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}



@media (max-width: 575.98px) {
    .footer .footer-info h2 {
        margin-bottom: 10px;
        font-size: 20px;
        font-weight: 600;
    }

    .footer .footer-info h3 {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .footer .footer-menu p {
        font-size: 16px;
        line-height: 16px;
        padding: 0 5px;
    }
}