:root {
    --primary-color: #2e575d;
    --primary-dark: #1e454b;
    --primary-light: #3e6a70;
    --secondary-color: #f8f9fa;
    --accent-color: #c8a97e;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #2e575d 0%, #3e6a70 100%);
    --gradient-light: linear-gradient(135deg, rgba(46, 87, 93, 0.1) 0%, rgba(46, 87, 93, 0.05) 100%);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.bg-primary-gradient {
    background: var(--gradient-primary) !important;
}

.bg-primary-light {
    background: var(--gradient-light) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 16px 40px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(46, 87, 93, 0.3);
    color: white;
}

.btn-secondary-custom {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.section-title {
    margin-bottom: 24px;
    font-weight: 700;
    text-align: center;
}

/* Header */
.modern-header {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Rimuovi sticky su mobile */
@media (max-width: 768px) {
    .modern-header {
        position: relative;
    }
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 1.5px;
    font-weight: 400;
    margin: 8px 0 0 0;
    text-transform: uppercase;
}

.header-button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

/* Hero Section */
.hero-section {
    padding: 150px 0 0 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.hero-highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Doctor Section */
.doctor-section {
    padding: 100px 0;
    position: relative;
}

.doctor-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    height: 600px;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.doctor-info-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: -50px;
    position: relative;
    z-index: 2;
}

/* Visit Section */
.visit-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(10px);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-align: center;
    line-height: 50px;
    font-weight: 700;
    font-size: 20px;
    margin-right: 20px;
    float: left;
}

/* Before/After Section */
.before-after-section {
    padding: 100px 0;
}

.slider-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.slider-img {
    height: 600px;
    object-fit: cover;
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(46, 87, 93, 0.1) 0%, rgba(46, 87, 93, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
}

.stars {
    color: #FFC107;
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 16px !important;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: white;
    color: var(--text-dark);
    font-weight: 600;
    padding: 25px;
    border-radius: 16px;
    box-shadow: none !important;
    font-size: 18px;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(46, 87, 93, 0.05);
    color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 25px;
    background-color: rgba(46, 87, 93, 0.02);
}

/* Form Section */
.form-section {
    padding: 100px 0;
    background-color: #f7f7f7;
}

/* Container wrapper */
.form-container-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Wrapper per le colonne del form */
.form-row-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

/* Colonna form */
.form-column {
    flex: 1 1 100%;
}

@media (min-width: 992px) {
    .form-column {
        flex: 0 1 calc(50% - 25px);
        min-width: 0;
    }
}

/* Wrapper del form con bordo */
.form-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    background: white;
    box-shadow: 0 10px 40px rgba(46, 87, 93, 0.15);
    height: 100%;
}

@media (max-width: 992px) {
    .form-wrapper {
        padding: 25px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px;
        border-width: 2px;
    }
}

/* Colonna contatti */
.contact-column {
    flex: 1 1 100%;
}

@media (min-width: 992px) {
    .contact-column {
        flex: 0 1 calc(50% - 25px);
        min-width: 0;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-light);
    font-size: 18px;
}

.form-step {
    display: none;
}

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

/* Correzione allineamento step 2 su mobile */
.form-step .row {
    margin-left: 0;
    margin-right: 0;
}

.form-step .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .form-step .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .form-step .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Contact Card */
.contact-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    font-size: 16px;
}

.contact-card h4 {
    font-size: 22px !important;
}

.contact-card > div > div > p {
    font-size: 16px !important;
}

.contact-item {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item p {
    font-size: 15px !important;
}

.contact-item a {
    font-size: 16px !important;
}

.contact-item p[style*="font-size: 15px"] {
    font-size: 16px !important;
}

/* Footer */
.modern-footer {
    background-color: #2e575d;
    color: #fff;
    padding: 30px 0;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;

    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    font-size: 16px;
    background-color: #f8fafc;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 87, 93, 0.1);
    background-color: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Rating Section */
.rating-section {
    background: linear-gradient(135deg, rgba(46, 87, 93, 0.05) 0%, rgba(46, 87, 93, 0.1) 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

/* Utility Classes */
.text-center-left {
    text-align: left;
}

.c-header {
    background: url('../img/header.jpg') no-repeat top center / cover;
    margin-top: 0;
}

.s-bottom {
    margin-bottom: 120px;
}

/* Stili per icone e testo in Visit Section */
.icon-container {
    width: 60px;
    min-width: 60px;
    text-align: center !important;
}

.text-content {
    flex: 1;
}

.line-height-1 {
    line-height: 1.2 !important;
}

.mobile-center-block {
    width: auto;
    max-width: 300px;
    margin: 0 auto;
}

/* Copyright */
.copyright-section p {
    color: #fff;
    font-size: 12px;
    margin-bottom: 5px;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 35px;
    }
}

@media (max-width: 992px) {
    .text-center-left {
        text-align: center;
        display: block;
        margin: auto;
        width: 230px;
        padding-bottom: 5px;
        padding-top: 5px;
    }
    
    .s-bottom {
        margin-bottom: 100px;
    }
    
    .doctor-image-container {
        height: 500px;
    }
    
    .doctor-info-card {
        margin-left: 0;
        margin-top: -120px !important;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .header-button-container {
        justify-content: center;
        margin-top: 15px;
    }
    
    .slider-img {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 35px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-section {
        padding: 50px 0 0px;
    }
    
    .doctor-section {
        padding: 80px 0;
    }
    
    .doctor-image-container {
        height: 400px;
    }
    
    .doctor-info-card {
        padding: 30px 30px;
        margin-top: -90px !important;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .slider-img {
        height: 400px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    /* PADDING SU MOBILE: 25px su entrambi i lati */
    .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    /* Footer Mobile */
    .modern-footer {
        padding: 20px 0 !important;
    }
    
    /* Spazio dopo il pulsante "Procedi" su mobile */
    .next-step {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 30px;
    }
    
    .btn-primary-custom, .btn-secondary-custom {
        padding: 14px 25px;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .slider-img {
        height: 250px;
    }
    
    .c-header {
        background: url('../img/header-mobile.jpg') no-repeat top center / cover;
        margin-top: 0;
    }
    
    .s-bottom {
        margin-bottom: 20px;
    }
    
    .doctor-image-container {
        height: 350px;
    }
    
    .doctor-info-card {
        padding: 25px 25px;
        margin-top: -90px !important;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .mobile-center-block {
        max-width: 280px;
    }
    
    .icon-container {
        width: 45px;
        min-width: 45px;
        margin-right: 12px !important;
    }
    
    .fa-2x {
        font-size: 24px !important;
    }
}

/* Cookie Consent Banner Discreto */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-content p {
    margin: 0;
    color: var(--text-dark);
}

.cookie-consent-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.cookie-consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 87, 93, 0.3);
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
        font-size: 13px;
    }
    
    .cookie-consent-btn {
        width: 100%;
        align-self: stretch;
    }
}