/**
 * CSS per Valutatore Pubblico Multi-Step
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

@font-face {
    font-family: 'areac1black';
    src: url('font/areac1-webfont.woff2') format('woff2'),
        url('font/areac1-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

.valutatore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
}

h6.canone {
    width: 100% !important;
    text-align: center;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 26px;
    color: #006699;

}

.val-result .result {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    padding: 15px 40px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px !important;
}

.val-result .risultati {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    font-family: 'Poppins', sans-serif;

}

.val-result .result strong {
    color: #006699;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-family: 'Poppins', sans-serif;

}

.val-result .result.center span {
    font-size: 23px;
    color: #fff;
}

.val-result .result.center strong {
    color: #fff;
    font-size: 29px;
    font-weight: 400;
}

.val-result .result.center span b {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 15px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent linear-gradient(90deg, #0388A6 0%, #024059 100%) 0% 0% no-repeat padding-box;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: transparent linear-gradient(90deg, #0388A6 0%, #024059 100%) 0% 0% no-repeat padding-box;
    color: white;
}

.step.completed .step-number {
    background: #AEE08E !important;
    color: white;
}



.step-line {
    width: 50px;
    height: 2px;
    background: #ddd;
    margin: 0 5px;
}

.step.completed+.step-line {
    background: #28a745;
}

/* Step Content */
.step-content {
    display: none;
    background: white;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

.title-step {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.arrow-step span {
    color: #707070;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;

}

.arrow-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.form-floating {
    margin-bottom: 20px;
}

.form-floating label {
    color: #666;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #02699d;
    box-shadow: 0 0 0 0.2rem rgba(2, 105, 157, 0.25);
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Buttons */
.btn-nav {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;

}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: #02699d;
    color: white;
}

.btn-primary:hover {
    background: #015a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Map Container */
#map {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

/* Zone Result */
#zone_result {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #02699d;
}

#zone_result h4 {
    margin: 0;
    color: #02699d;
}

/* OTP Container */
.otp-container {
    text-align: center;
    padding: 40px;
}

.otp-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.otp-input {
    width: 50px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    margin: 0 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.otp-input:focus {
    border-color: #02699d;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(2, 105, 157, 0.25);
}

#otp-error {
    color: #dc3545;
    margin: 20px 0;
    font-weight: 500;
}

/* Results Container */
.results-container {
    padding: 40px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.results-container h2 {
    color: #02699d;
    margin-bottom: 30px;
    text-align: center;
}

.price-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 30px 0;
    border: 2px solid #02699d;
}

.price-display h2 {
    color: #02699d;
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.price-range {
    color: #666;
    font-size: 1.3em;
    font-weight: 500;
}

/* Loader */
#valutatore-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    border-color: white;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .valutatore-container {
        padding: 10px;
    }

    .step-content {
        padding: 20px;
    }

    .step-indicator {
        flex-direction: column;
    }

    .step {
        margin: 10px 0;
    }

    .step-line {
        width: 2px;
        height: 30px;
        margin: 5px 0;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
        margin: 0 3px;
    }

    .price-display h2 {
        font-size: 2em;
    }

    .btn-nav {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}

/* Privacy Checkbox */
.form-check {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.form-check .form-check-input {
    float: left;
    margin-left: -15px;
}

.form-check-input {
    margin-top: 0.3em;
}

.form-check-label {
    margin-left: 10px;
    color: #666;
}

/* Section Headers */
h3 {
    color: #02699d;
}

/* Step 1 Title Styling */
.step1-title {
    font-family: 'areac1black', sans-serif;
    color: #02699d;

    display: flex;
    align-items: center;
    gap: 15px;
}

.step1-arrow {
    height: 30px;
    width: auto;
    display: inline-block;
}

h4 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Select Styling */
select.form-control {
    cursor: pointer;
}

select.form-control:disabled {
    cursor: not-allowed;
}

/* Row spacing */
.row {
    margin-bottom: 0;
}

.row .col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Info Messages */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Success Messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Error Messages */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}


body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.valutatore-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    min-height: 100vh;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
    border: 1px solid #CBCBCB;
    border-radius: 35px;
    padding: 2px;
}

.step span {
    color: #707070;
    text-transform: uppercase;
    font-weight: 500;
    margin-right: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E2E2E2;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    font-family: 'areac1black', sans-serif;
}

.step.active .step-number {
    background: transparent linear-gradient(90deg, #0388A6 0%, #024059 100%) 0% 0% no-repeat padding-box;
    color: white;
    font-family: 'areac1black', sans-serif;
}

.step.completed .step-number {
    background: transparent linear-gradient(90deg, #0388A6 0%, #024059 100%) 0% 0% no-repeat padding-box;
    color: white;
}

.step-content {
    display: none !important;
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.step-content.active {
    display: block !important;
}


.title-blocco-omi {
    text-transform: uppercase;
    color: #707070;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}
.title-blocco-ac1 {
    text-transform: uppercase;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}

/* Blocchi risultati Area C1 */
.valutazione-c1-card {
    background: linear-gradient(135deg, #024059 0%, #0388A6 100%);
    border-radius: 12px;
    border: 1px solid #0388A6;
    padding: 40px 30px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.valutazione-header {
    font-family: 'areac1black', sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.valutazione-logo-block {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.valutazione-logo {
    max-width: 200px;
    height: auto;
}

.valutazione-subtitle {
    color: white;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}
.valutazione-range-text-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    
}
.valutazione-range-wrapper {
   
    text-align: center;
    margin-top: auto;
}

.valutazione-range-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;
    background: #ffffff;
    color: #024059;
    border-radius: 14px;
    padding: 9px 28px;
    width: 49%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #ffffff;
}

.valutazione-range-text strong {
    font-size: 28px;
    font-weight: 700;
    color: #02699d;
}

@media (max-width: 768px) {
    .valutazione-c1-card {
        padding: 30px 20px;
    }

    .valutazione-range-wrapper {
        padding: 18px 20px;
    }

    .valutazione-range-text strong {
        font-size: 22px;
    }
}

/* Stili aggiuntivi dal template PHP */
/* Stili per iframe */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.valutatore-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

.btn-nav {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-primary {
    background: transparent linear-gradient(90deg, #0388A6 0%, #024059 100%) 0% 0% no-repeat padding-box;
    border-radius: 25px;
    border: none;
    padding: 12px 30px;
    color: white;
    cursor: pointer;
}

.btn-primary:hover {
    background: #015a87;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

.otp-container {
    text-align: center;
    padding: 40px;
}

.otp-input {
    width: 50px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    margin: 0 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.results-container {
    padding: 30px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
}

.price-display {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.price-display h2 {
    color: #02699d;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.price-range {
    color: #666;
    font-size: 1.2em;
}

/* Popup Informativi */
.popup {
    position: absolute;
    top: 38px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.popup:hover {
    background: rgba(2, 105, 157, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.popup i {
    font-size: 16px;
    color: #02699d;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.popup:hover i {
    opacity: 1;
}

.popup img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.popup:hover img {
    opacity: 1;
}

/* Assicura che l'input/select non copra l'icona */
.form-floating .form-control {
    padding-right: 40px;
}

.form-floating select.form-control {
    padding-right: 40px;
    background-position: right 35px center;
}

/* Per textarea, posiziona l'icona in alto a destra */
.form-floating textarea+.popup {
    top: 8px;
    right: 10px;
}

.popup_box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
}

.popup_box.boom-in {
    display: block;
    animation: boomIn 0.3s ease forwards;
}

.popup_box.boom-out {
    animation: boomOut 0.3s ease forwards;
}

@keyframes boomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes boomOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.popup_box h2 {
    margin-top: 0;
    color: #02699d;
    font-size: 1.5em;
    padding-right: 40px;
}

.popup_box p {
    margin: 15px 0;
    line-height: 1.6;
}

.popup_box h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.popup_box .close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup_box .close:hover {
    background: #f0f0f0;
    color: #333;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

/* Stili per il riepilogo dati */
.riepilogo-dati {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.riepilogo-dati h3 {
    color: #02699d;
    font-weight: bold;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #02699d;
    padding-bottom: 10px;
}

.riepilogo-dati .row {
    margin-bottom: 20px;
    clear: both;
}

.riepilogo-dati .row:after {
    content: "";
    display: table;
    clear: both;
}

.report-ico {
    width: 45px;
    float: left;
    margin-bottom: 3px;
    margin-right: 10px;
}

.report-ico img {
    max-width: 100%;
    height: auto;
}

.text-to-ico {
    margin-top: 1px;
    margin-left: 10px;
    float: left;
    margin-bottom: 3px;
}

.text-to-ico b {
    font-weight: bold;
    color: #333;
}

.riepilogo-dati .col {
    margin-bottom: 16px;
}

.riepilogo-dati .param {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #02699d;
    border-radius: 4px;
    font-size: 16px;
}

.riepilogo-dati .param b {
    color: #02699d;
    font-weight: bold;
}

.riepilogo-dati .param i {
    font-style: italic;
}

/* Stili per la mappa nel riepilogo */
.riepilogo-dati .dettaglio-valutatore {
    width: 100%;
    padding: 20px 10px !important;
    margin: 20px 0;
    clear: both;
}

.riepilogo-dati .map-detail {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.riepilogo-dati .dettaglio-valutatore p {
    font-size: 11px;
    font-style: italic;
    margin-top: 10px;
    color: #666;
}

/* Stili per i prezzi OMI */
.omiprice {
    margin-top: 20px;
    width: 100%;
}

.omiprice h5 {
    margin-bottom: 10px !important;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    background: #f0f2f5;
    padding: 15px 40px;
}

.omiprice h5 strong {
    font-weight: 600;
}

.elenco-omi {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.single-omi.scadente {
    background-image: url("../img/scadente.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-right: 5px solid #fff;
    min-width: 360px;
    height: 160px;
}

.single-omi.normale {
    background-image: url("../img/normale.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-right: 5px solid #fff;
    min-width: 360px;
    height: 160px;
}

.single-omi.ottimo {
    background-image: url("../img/ottimo.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-right: 5px solid #fff;
    min-width: 360px;
    height: 160px;
}

.single-omi .valori {
    margin-top: 89px;
    margin-left: 180px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.single-omi .valori b {
    font-weight: bold;
}

@media (max-width: 768px) {
    .elenco-omi {
        flex-wrap: wrap;
    }

    .single-omi {
        margin-bottom: 10px;
    }
}

/* Stili per il popup disclaimer */
.overlay-course {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.overlay-course:target {
    visibility: visible;
    opacity: 1;
}

.overlay-course.showpop {
    visibility: visible !important;
    opacity: 1 !important;
}

.popup-course {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    top: 40%;
    position: relative;
    transition: all 5s ease-in-out;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup-course h2 {
    margin: 0 0 40px;
    line-height: 30px;
    font-size: 30px;
    color: #3c404b;
    text-align: center;
}

.popup-course p {
    margin: 20px 0px;
    color: #3c404b;
    text-align: center;
    line-height: 1.6;
}

.popup-course .close,
.popup-course .close2 {
    position: absolute;
    top: 4px;
    right: 8px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-course .close:hover,
.popup-course .close2:hover {
    color: #3c404b;
    background: #f0f0f0;
}

.popup-course .bt {
    width: 100%;
    margin: 20px 0px;
    text-align: center;
    padding-top: 30px;
}

.popup-course .content {
    max-height: 30%;
    overflow: auto;
}

.demo-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    text-align: center;
    font-size: 18px;
}

.demo-alert-success a {
    color: #155724;
}

.demo-alert-success a:hover {
    color: #02699d !important;
}

.demo-alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
    text-align: center;
    font-size: 16px;
    margin: -15px 0px 20px 0px;
}

.demo-alert-primary a {
    color: #004085;
    text-decoration: none;
}

.demo-alert-primary a:hover {
    color: #02699d !important;
}

.demo-alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.official-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #02699d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.official-btn:hover {
    background: #015a87;
    color: white;
}

/* Media query per risoluzioni medie (1280px e inferiori) */
@media (max-width: 1280px) {
    .popup-raccomandazioni {
        width: 75% !important;
        max-height: 90vh;
        padding: 15px;
    }

    .popup-raccomandazioni h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .popup-raccomandazioni p {
        font-size: 15px;
        margin: 15px 0px;
    }
}

@media (max-width: 768px) {
    .popup-course {
        width: 90% !important;
        margin: 20px auto;
    }

    .popup-course h2 {
        font-size: 24px;
    }

    .popup-course p {
        font-size: 14px;
    }

    .popup-raccomandazioni {
        width: 95% !important;
        max-height: 95vh;
        padding: 15px;
    }

    .popup-raccomandazioni h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .popup-raccomandazioni p {
        font-size: 14px;
        margin: 12px 0px;
    }
}

.btn-nav {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-primary {
    background: transparent linear-gradient(90deg, #0388A6 0%, #024059 100%) 0% 0% no-repeat padding-box;
    border-radius: 25px;
    border: none;
    padding: 2px;
    min-height: 48px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary:hover {
    background: #015a87;
}

.btn-primary span {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0 10px;
}

.btn-primary i {
    background: #fff;
    border-radius: 50%;
    color: #0388A6;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: #969696;
    border-radius: 25px;
    border: none;
    padding: 2px;
    min-height: 48px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-secondary span {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0 10px;
}

.btn-secondary i {
    background: #fff;
    border-radius: 50%;
    color: #969696;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-floating {
    margin-bottom: 20px;
}

.otp-container {
    text-align: center;
    padding: 40px;
}

.otp-input {
    width: 50px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    margin: 0 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.results-container {
    padding: 30px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
}

.price-display {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.price-display h2 {
    color: #02699d;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.price-range {
    color: #666;
    font-size: 1.2em;
}

/* Popup Informativi */
.form-floating {
    position: relative;
}

.popup {
    position: absolute;
    top: 38px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.popup:hover {
    background: rgba(2, 105, 157, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.popup i {
    font-size: 16px;
    color: #02699d;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.popup:hover i {
    opacity: 1;
}

.popup img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.popup:hover img {
    opacity: 1;
}

/* Assicura che l'input/select non copra l'icona */
.form-floating .form-control {
    padding-right: 40px;
}

.form-floating select.form-control {
    padding-right: 40px;
    background-position: right 35px center;
}

/* Per textarea, posiziona l'icona in alto a destra */
.form-floating textarea+.popup {
    top: 8px;
    right: 10px;
}

.popup_box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
}

.popup_box.boom-in {
    display: block;
    animation: boomIn 0.3s ease forwards;
}

.popup_box.boom-out {
    animation: boomOut 0.3s ease forwards;
}

@keyframes boomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes boomOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.popup_box h2 {
    margin-top: 0;
    color: #02699d;
    font-size: 1.5em;
    padding-right: 40px;
}

.popup_box p {
    margin: 15px 0;
    line-height: 1.6;
}

.popup_box h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.popup_box .close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup_box .close:hover {
    background: #f0f0f0;
    color: #333;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.form-floating {
    position: relative;
}

/* Stili per il riepilogo dati */
.riepilogo-dati {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.riepilogo-dati h3 {
    color: #02699d;
    font-weight: bold;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #02699d;
    padding-bottom: 10px;

}

.riepilogo-dati .row {
    margin-bottom: 20px;
    clear: both;
}

.riepilogo-dati .row:after {
    content: "";
    display: table;
    clear: both;
}

.report-ico {
    width: 45px;
    float: left;
    margin-bottom: 3px;
    margin-right: 10px;
}

.report-ico img {
    max-width: 100%;
    height: auto;
}

.text-to-ico {
    margin-top: 1px;
    margin-left: 10px;
    float: left;
    margin-bottom: 3px;
}

.text-to-ico b {
    font-weight: bold;
    color: #333;
}

.riepilogo-dati .col {
    margin-bottom: 16px;
}

.riepilogo-dati .param {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #02699d;
    border-radius: 4px;
    font-size: 16px;
}

.riepilogo-dati .param b {
    color: #02699d;
    font-weight: bold;
}

.riepilogo-dati .param i {
    font-style: italic;
}

/* Stili per la mappa nel riepilogo */
.riepilogo-dati .dettaglio-valutatore {
    width: 100%;
    padding: 20px 10px !important;
    margin: 20px 0;
    clear: both;
}

.riepilogo-dati .map-detail {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.riepilogo-dati .dettaglio-valutatore p {
    font-size: 11px;
    font-style: italic;
    margin-top: 10px;
    color: #666;
}

/* Stili per i prezzi OMI */
.omiprice {
    margin-top: 20px;
    width: 100%;
}

.omiprice h5 {
    margin-bottom: 10px !important;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    background: #f0f2f5;
    padding: 15px 40px;
}

.omiprice h5 strong {
    font-weight: 600;
}

.elenco-omi {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.single-omi.scadente {
    background-image: url("../img/scadente.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-right: 5px solid #fff;
    min-width: 360px;
    height: 160px;
}

.single-omi.normale {
    background-image: url("../img/normale.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-right: 5px solid #fff;
    min-width: 360px;
    height: 160px;
}

.single-omi.ottimo {
    background-image: url("../img/ottimo.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-right: 5px solid #fff;
    min-width: 360px;
    height: 160px;
}

.single-omi .valori {
    margin-top: 89px;
    margin-left: 180px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.single-omi .valori b {
    font-weight: bold;
}

@media (max-width: 768px) {
    .elenco-omi {
        flex-wrap: wrap;
    }

    .single-omi {
        margin-bottom: 10px;
    }
}

/* Stili per il popup disclaimer */
.overlay-course {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.overlay-course:target {
    visibility: visible;
    opacity: 1;
}

.overlay-course.showpop {
    visibility: visible !important;
    opacity: 1 !important;
}

.popup-course {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    top: 40%;
    position: relative;
    transition: all 5s ease-in-out;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup-course h2 {
    margin: 0 0 40px;
    line-height: 30px;
    font-size: 30px;
    color: #3c404b;
    text-align: center;
}

.popup-course p {
    margin: 20px 0px;
    color: #3c404b;
    text-align: center;
    line-height: 1.6;
}

.popup-course .close,
.popup-course .close2 {
    position: absolute;
    top: 4px;
    right: 8px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-course .close:hover,
.popup-course .close2:hover {
    color: #3c404b;
    background: #f0f0f0;
}

.popup-course .bt {
    width: 100%;
    margin: 20px 0px;
    text-align: center;
    padding-top: 30px;
}

.popup-course .content {
    max-height: 30%;
    overflow: auto;
}

.demo-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    text-align: center;
    font-size: 18px;
}

.demo-alert-success a {
    color: #155724;
}

.demo-alert-success a:hover {
    color: #02699d !important;
}

.demo-alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
    text-align: center;
    font-size: 16px;
    margin: -15px 0px 20px 0px;
}

.demo-alert-primary a {
    color: #004085;
    text-decoration: none;
}

.demo-alert-primary a:hover {
    color: #02699d !important;
}

.demo-alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.official-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #02699d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.official-btn:hover {
    background: #015a87;
    color: white;
}

@media (max-width: 768px) {
    .popup-course {
        width: 90% !important;
        margin: 20px auto;
    }

    .popup-course h2 {
        font-size: 24px;
    }

    .popup-course p {
        font-size: 14px;
    }
}