/* ====== Stile Generale ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

/* ====== HEADER ====== */
header {
    /* background: #0A1F44; */
    background: #000847;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* ====== HERO SECTION ====== */
.hero {
    position: relative;
    height: 450px; /* Imposta un'altezza fissa per evitare allungamenti inattesi */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Nasconde eventuali glitch di transizione */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    opacity: 1;
    z-index: -1; /* Assicura che il background rimanga dietro */
}

/* Forza il background a coprire sempre l'area senza distorsioni */
.hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Corregge eventuali problemi con il contenuto interno */
.hero > div {
    position: relative;
    z-index: 1; /* Mantiene il testo sopra */
    text-align: center;
}

.fade-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
}

.hero .fade-banner {
    opacity: 1;
    z-index: 0;
}


/*----*/
.hero a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    background-color: #0A1F44;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.hero a:hover {
    background-color: #00AEEF;
}

.hero h1 {
    font-size: 40px;
    font-weight: bold;
}

.hero-content h1 {
    background: rgba(50, 130, 150, 0.5);
    padding: 10px 20px;
    border-radius: 18px;
    display: inline-block;
}

.hero p {
    font-size: 20px;
    margin-top: 10px;
}
/*---demo button ---*/
.demo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0A3D62, #005a9e); /* Blu scuro con gradiente */
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Ombra scura per rilievo */
    border: 2px solid #f0f0f0; /* Bordo più scuro invece del bianco */
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.demo-btn:hover {
    background: linear-gradient(135deg, #005a9e, #003f73); /* Effetto più profondo */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
    border-color: #0078D7; /* Azzurro più acceso solo all’hover */
}

.demo-btn:active {
    transform: scale(0.97);
}

/*---*/

section {
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.faq-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle; /* Allinea meglio il testo */
    margin-right: 6px; /* Spazio tra icona e testo */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Transizione più naturale */
}

/* Effetto rimbalzo */
h3:hover .faq-icon {
    transform: scale(1.5);
    opacity: 0.8;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Effetto elastico */
}

.features, .why-choose, .faq {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.features h2, .why-choose h2, .faq h2 {
    color: #0A1F44;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.features {
    text-align: center;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Uniforma dimensione e comportamento dei link-box */
.feature-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 260px;               /* <<< larghezza fissa */
    min-height: 180px;          /* <<< altezza coerente */
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;      /* nessuna sottolineatura */
    color: #0A1F44;             /* testo coerente */
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.feature-box h3 {
    color: #0A1F44;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    border-bottom: 4px solid #f4f7ff;
    padding-bottom: 6px;
}

.feature-desc {
    background: #eaf3ff;
    color: #0A1F44;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 6px;
    padding: 12px;
}

/* Link opzionale sotto ogni box */
.feature-link {
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    color: #005a9e;
    text-decoration: none;
    margin-top: 6px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.feature-link:hover {
    color: #00AEEF;
    transform: translateY(-2px);
    text-decoration: underline;
}

/* Effetto fade-in all'entrata nella pagina */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefits {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.benefit {
    flex: 1;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    margin: 10px;
    text-align: center;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: scale(1.05);
}

.faq-item {
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item h3 {
    font-size: 1.2em;
    color: #0A1F44;
}

.faq-item .faq-content {
    display: none;
}

.faq-item.expanded .faq-content {
    display: block;
}

/* ====== chi siamo =======*/
.about-us {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.about-us h1, .about-us h2 {
    color: #0A1F44;
    text-align: center;
}
.about-us p, .about-us ul {
    font-size: 16px;
    line-height: 1.6;
}
.about-us ul {
    padding-left: 20px;
}
.about-us a {
    color: #0A1F44;
    text-decoration: none;
}
.about-us a:hover {
    text-decoration: underline;
}

/* ======= contatti ===== */

.contact {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.contact h1, .contact h2 {
    color: #0A1F44;
    text-align: center;
}
.contact p {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
}
.contact label {
    font-weight: bold;
}
.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact button {
    background-color: #0A1F44;
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.contact button:hover {
    background-color: #003F73;
}
/* ====== prezzi ====== */
.pricing {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.pricing h1 {
    color: #0A1F44;
    margin-bottom: 20px;
}
.pricing p {
    font-size: 16px;
    margin-bottom: 20px;
}
.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pricing-item {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.pricing-item h2 {
    color: #0A1F44;
    margin-bottom: 10px;
}
.pricing-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}
.pricing-item .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #0A1F44;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.pricing-item .btn:hover {
    background-color: #003F73;
}

.order {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.order h1 {
    color: #0A1F44;
    text-align: center;
}

.order p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

/* Stile del modulo */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.form-group label {
    width: 40%;
    font-weight: bold;
    text-align: right;
}

.form-group input,
.form-group textarea {
    width: 60%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.order button {
    background-color: #0A1F44;
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.order button:hover {
    background-color: #003F73;
}

.total-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    border: 2px solid #ccc;
}

/* ====== ordine ========= */

/* ====== COOKIE POLICY PAGE ====== */
.cookie-policy {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.cookie-policy h1, .cookie-policy h2 {
    color: #0A1F44;
    text-align: center;
    margin-bottom: 20px;
}

.cookie-policy p, .cookie-policy ul {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-policy ul {
    padding-left: 20px;
}

.cookie-policy a {
    color: #0A1F44;
    text-decoration: none;
    font-weight: bold;
}

.cookie-policy a:hover {
    text-decoration: underline;
}

/* Pulsante per gestire i cookie */
#manage-cookies {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #0A1F44;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#manage-cookies:hover {
    background-color: #003F73;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.btn {
    display: block;
    width: max-content;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #0A1F44;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: #003F73;
}


/* ====== COOKIE BANNER ====== */
.hidden {
    display: none !important;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: block;
}

.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.cookie-banner, .cookie-overlay {
    display: none;
}

.cookie-banner.show, .cookie-overlay.show {
    display: block;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cookie-buttons button {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

.cookie-banner .cookie-info {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    line-height: 1.6;
}

.cookie-banner .cookie-info strong {
    color: #333;
    font-weight: bold;
}

.cookie-banner .cookie-info em {
    color: #0078D7;
    font-style: normal;
    font-weight: bold;
}

#accept-all {
    background-color: #1ec41e;
    color: white;
    font-size: 22px;
    padding: 15px;
    font-weight: bold;
}

#accept-all:hover {
    background-color: #179a17;
}

#accept-tech-only,
#save-cookie-settings {
    background-color: #ddd;
    color: #333;
    font-size: 16px;
    padding: 12px;
}

#accept-tech-only:hover,
#save-cookie-settings:hover {
    background-color: #bbb;
}

#save-cookie-settings {
    background-color: #007bff;
    color: white;
}

#save-cookie-settings:hover {
    background-color: #00AEEF;
}

/* ===== footer ===== */

footer {
    background: #0A1F44 !important;
    color: white !important;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 14px;
    width: 100%;
}

/* Stile per i link della cookie policy e privacy policy nel footer */
footer a {
    color: #00AEEF; /* Azzurro chiaro per massimo contrasto */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFFFFF; /* Cambia in bianco al passaggio del mouse */
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
}

footer p a {
    color: white;
    text-decoration: underline;
    font-weight: normal;
}

.instructions {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

/* Stile per i box */
.box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

/* Box del Download */
.download-box {
    border-left: 5px solid #0A1F44;
}

/* Box dei Passaggi di Installazione */
.install-box {
    border-left: 5px solid #28a745;
}

/* Testi e link */
.manual-download {
    font-weight: bold;
    margin-top: 10px;
}

.manual-download a {
    color: #0A1F44;
    text-decoration: none;
}

.manual-download a:hover {
    text-decoration: underline;
}

/* Lista delle istruzioni */
.instruction-list {
    text-align: left;
    padding-left: 20px;
}

.instruction-list li {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Messaggio finale */
.final-message {
    font-size: 18px;
    font-weight: bold;
    color: #d9534f; /* Rosso tenue per evidenziarlo */
    margin-top: 20px;
}

.privacy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-top: 15px;
}

.privacy-container a {
    color: #0A1F44;
    text-decoration: none;
    font-weight: bold;
}

.privacy-container a:hover {
    text-decoration: underline;
}

#privacy-error {
    color: red;
    font-weight: bold;
    margin-top: 5px;
}

.hidden {
    display: none;
}

/*----------------------------*/
/* Stile migliorato per il riquadro della frase */
.highlight-box {
    background: rgba(10, 31, 68, 0.99);
    border: none;
    color: white;
    padding: 15px 25px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px auto;
    transition: background 0.3s ease-in-out;
}

/* Effetto hover per coerenza con i pulsanti */
.highlight-box:hover {
    background: rgba(100, 110, 255, 0.95); /* Leggero cambio colore al passaggio */
    transform: scale(1.05); /* Effetto di leggero ingrandimento */
}

/* Effetto fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}
/* dowonload */
/* Sezione informativa con riquadri */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* Box informativi */
.info-box {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.info-box h2 {
    color: #0A1F44;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 16px;
    line-height: 1.6;
}

/* Link privacy */
.privacy-link {
    margin-top: 20px;
    font-size: 14px;
}

.privacy-link a {
    color: #0A1F44;
    font-weight: bold;
    text-decoration: none;
}

.privacy-link a:hover {
    text-decoration: underline;
}

/* Stile dedicato alla pagina di info */
.swinfo-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: left;
}

.swinfo-box {
    background: #f9f9f9;
    padding: 20px; /* Aggiunge spazio interno ai box */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}


.swinfo-box h2 {
    color: #0A3D62;
    font-size: 22px;
    margin-bottom: 10px;
}

.swinfo-box ul {
    padding-left: 20px; /* Aggiunge spazio a sinistra per evitare che i punti tocchino il bordo */
}

.swinfo-box li {
    margin-bottom: 8px; /* Distanza tra gli elementi della lista */
}

.swinfo-btn:hover, .demo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}


/* Evidenzia i testi importanti */
.highlight {
    font-weight: bold;
    color: #0A3D62;
}

/* Sostituzione dei rombi blu con icone più discrete */
ul li::before {
    content: "";
    color: #0A3D62;
    font-weight: bold;
}

/* Spaziatura migliorata senza <br> */
.swinfo-box p,
.swinfo-box ul {
    margin-bottom: 15px;
}

/* Pulsante personalizzato per questa pagina */
.swinfo-btn {
    display: block;
    width: fit-content;
    margin: 30px auto;
    background: linear-gradient(135deg, #0A3D62, #005a9e);
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.swinfo-btn:hover {
    background: linear-gradient(135deg, #005a9e, #003f73);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.swinfo-box.evidenziata {
    background: #e8f4ff;
    border-left: 5px solid #0078D7;
    text-align: center;
}

.swinfo-box.evidenziata h2 {
    color: #0078D7;
}

.swinfo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0078D7, #005a9e);
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
}

.curiosity-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.curiosity-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.06);
}

.curiosity-box h2 {
    color: #0A3D62;
    font-size: 22px;
    margin-bottom: 15px;
}

.curiosity-box ul {
    list-style: none;
    padding: 0;
}

.curiosity-box li {
    font-size: 18px;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.curiosity-box li:last-child {
    border-bottom: none;
}
