/* Nasconde completamente la UI di riconnessione di Blazor */
#components-reconnect-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

    /* Nel caso in cui venga reso come <dialog> (alcuni template) */
    #components-reconnect-modal::backdrop {
        display: none !important;
    }

/* Nasconde la classica barra error UI del template */
#blazor-error-ui {
    display: none !important;
}



:root {
/*    color-scheme: dark !important;
*/    --PrimaryColor: #FA870F; /* Colore primario (Arancione) */
    --PrimaryColorHover: #D96D0C; /* Colore primario hover effect (Arancione scuro) */
    --SecondaryColor: #FAF7F2; /* Non sicuro (Bianco sporco) */
    --TextNormalColor: #1E1E1E; /* Colore del testo normale (Grigio molto scuro)*/
    --PageBgColor: #F7EADA;
}

* {
    margin: 0 0;
    padding: 0 0;
    font-family: "Lekton";
}

html, body {
    background-color: var(--PageBgColor);
}

.PageContainer{
    display: flex;
    flex-direction: column;
    row-gap: 125px;
    justify-content: flex-start;
    align-items: center;
    max-width: 100vw;
    width: 100%;
    overflow: hidden;
    
}

.HeroSection {
    padding: 175px 3vw 0px 3vw;
    min-height: calc(100vh - 175px);
    height: calc(100vh - 175px);
    width: 94vw;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("Images/HeroImage.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.HeroSeparatorContainer {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    display: flex;
    position: absolute;
    bottom: -1px;
    left: 0;
}

.HeroSeparator {
    width: 100%;
    min-width: 1000px;
    height: auto;
    object-fit: cover;
}


.HeroContent {
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 5vw;
}

.HeroTitle {
    font-size: clamp(3rem, 4vw + 1rem, 5.5rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
}

    /* Highlight con colore primario sotto al titolo */
    .HeroTitle::after {
        content: "";
        display: block;
        width: 60px;
        height: 5px;
        background-color: var(--PrimaryColor);
        margin: 15px auto 0 auto;
        border-radius: 3px;
    }

.HeroSubtitle {
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 2rem);
    font-weight: 400;
    color: #f0f0f0;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Effetto leggero di glow sul titolo */
.HeroTitle {
    text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.6);
}


.NormalSection{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding: 0px 4vw 0px 4vw;
    width: calc(100% - 8vw);
}

.Title {
    font-size: clamp(1.5rem, 2vw + 1rem, 3.2rem);
    text-align: center;
    color: var(--TextNormalColor);
}

.TitleSubtext {
    max-width: 1000px;
    text-align: center;
    color: var(--TextNormalColor);
}

p {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.55rem);
    color: var(--TextNormalColor);
}


/* Overlay scuro */
.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Contenitore popup */
.popup-container {
    background: var(--SecondaryColor); /* bianco sporco AlpineLink */
    color: var(--TextNormalColor);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    width: 92%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: popupFadeIn 0.25s ease-out;
    display: flex;
    flex-direction: column;
}

/* Header */
.popup-header {
    margin-bottom: 1.25rem;
    position: relative; /* serve per ancorare la X */
}

    .popup-header h2 {
        font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
        font-weight: 700;
        color: var(--PrimaryColor); /* Arancione AlpineLink */
        letter-spacing: 1px;
        margin-right: 2rem; /* spazio cosė il testo non tocca la X */
    }

/* Body */
.popup-body {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.3rem);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--TextNormalColor);
}

/* Footer */
.popup-footer {
    display: flex;
    justify-content: flex-end;
}

/* Bottoni */
.popup-button {
    background-color: var(--PrimaryColor);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

    .popup-button:hover {
        background-color: var(--PrimaryColorHover);
    }

/* X chiusura */
.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #8c8c8c;
    transition: color 0.2s;
    line-height: 1;
    padding: 0.25rem;
}

    .popup-close:hover {
        color: var(--TextNormalColor);
    }

/* Animazioni */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

