/* ==========================================================================
   DESIGN SYSTEM - Traditional Trust & Reassuring Comfort
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #FAF9F6;          /* Warm Alabaster / Sand */
    --bg-secondary: #F3F1EC;        /* Soft Linen / Beige */
    --bg-dark: #1F2937;             /* Classic Deep Charcoal */
    --white: #FFFFFF;
    
    --primary-blue: #2B6CB0;        /* Trustworthy Clinical Blue */
    --primary-blue-hover: #1A528F;
    --primary-blue-light: rgba(43, 108, 176, 0.08);
    
    --accent-sage: #4FA095;         /* Calm Aqua / Sage Green (Serenity Accents) */
    --accent-sage-hover: #3E8B80;
    --accent-sage-light: rgba(79, 160, 149, 0.1);
    
    --text-primary: #2D3748;        /* Slate Dark Grey for perfect reading */
    --text-secondary: #4A5568;      /* Muted Slate Grey */
    --text-light: #718096;          /* Soft Light Grey */
    --text-white: #FFFFFF;
    
    /* Borders & Accents */
    --border-color: rgba(45, 55, 72, 0.1);
    --border-color-light: rgba(45, 55, 72, 0.05);
    --border-blue: rgba(43, 108, 176, 0.2);
    
    /* Typography */
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', system-ui, -apple-system, sans-serif;
    
    /* Structural tokens */
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 24px;
    --shadow-soft: 0 4px 20px rgba(45, 55, 72, 0.03);
    --shadow-medium: 0 10px 30px rgba(45, 55, 72, 0.06);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    line-height: 1.7;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-small);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6.5rem 0;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   TYPOGRAPHY & HEADERS
   ========================================================================== */
.section-header {
    max-width: 750px;
    margin: 0 auto 4.5rem auto;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.section-subtitle-white {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-sage);
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1.5px solid transparent;
}

.btn-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.15);
}

.btn-primary-fill {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary-fill:hover {
    background: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.25);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue-hover);
    border-color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
}

.btn-secondary:hover {
    background: rgba(45, 55, 72, 0.05);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 0.2rem 0;
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.04);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    transition: var(--transition-smooth);
}

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

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.main-nav a:hover {
    color: var(--primary-blue);
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu nav ul {
    list-style: none;
    text-align: center;
}

.mobile-menu nav li {
    margin: 1.8rem 0;
}

.mobile-menu nav a {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
}

.mobile-menu nav a:hover {
    color: var(--primary-blue);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('assets/Studio Sala Attesa 02.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay caldo e luminoso per trasmettere accoglienza e pulizia */
    background: linear-gradient(90deg, rgba(250, 249, 246, 0.96) 35%, rgba(250, 249, 246, 0.85) 60%, rgba(250, 249, 246, 0.4) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text-area {
    width: 100%;
    max-width: 1000px; /* Allarga il contenitore per dare spazio al titolo su una riga, centrandolo perfettamente */
    margin: 3rem auto 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
    background: var(--primary-blue-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-small);
    margin-bottom: 1.8rem;
}

.hero-section h1 {
    font-size: clamp(1.3rem, 3.5vw, 3rem); /* Dimensione fluida identica per entrambe le righe del titolo */
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.single-line-title {
    display: block;
    white-space: nowrap;
    color: #1E40AF; /* Blu acceso rassicurante e vibrante */
    font-size: inherit; /* Eredita la stessa identica dimensione della riga sottostante */
    margin-bottom: 0.4rem;
}

.hero-section h1 .highlight {
    color: var(--accent-sage);
    font-style: italic;
    font-weight: 400;
}

.hero-lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 650px; /* Restringe la descrizione per una lettura ottimale */
    margin: 0 auto 2.5rem auto; /* Centra la descrizione all'interno del contenitore allargato */
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.hero-actions .btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.hero-actions .btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ==========================================================================
   VALUES BAR
   ========================================================================== */
.values-bar {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
    box-shadow: var(--shadow-soft);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.value-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-sage);
}

.value-text {
    display: flex;
    flex-direction: column;
}

.value-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.value-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   PHILOSOPHY SECTION
   ========================================================================== */
.philosophy-section {
    background-color: var(--bg-primary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text {
    text-align: center;
}

.philosophy-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.philosophy-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.philosophy-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    align-items: center;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bullet-check {
    color: var(--accent-sage);
    font-weight: 700;
    font-size: 1.1rem;
}

.bullet-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.philosophy-image img {
    width: 100%;
    box-shadow: var(--shadow-medium);
    border-radius: var(--radius-medium);
}

/* ==========================================================================
   SEDATION SECTION (Cura Senza Paura)
   ========================================================================== */
.sedation-section {
    background-color: var(--primary-blue);
    color: var(--white);
}

.sedation-section h2, 
.sedation-section h4 {
    color: var(--white);
}

.sedation-section p {
    color: rgba(255, 255, 255, 0.85);
}

.sedation-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
    align-items: center;
}

.sedation-img {
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-medium);
}

.sedation-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.sedation-explanation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sedation-text-area {
    text-align: center;
}

.sedation-explanation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.sedation-step {
    border-top: 3px solid var(--accent-sage);
    padding-top: 1.2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.sedation-step h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.sedation-step p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-medium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
}

.service-icon-wrapper {
    width: 54px;
    height: 54px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* ==========================================================================
   STUDIO & STAFF
   ========================================================================== */
.studio-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color-light);
}

.doctor-bio-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    padding: 3.5rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    margin-bottom: 5rem;
}

.bio-img-main {
    width: 100%;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

.doctor-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-sage);
    display: block;
    margin-bottom: 0.5rem;
}

.doctor-text {
    text-align: center;
}

.doctor-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bio-lead {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.doctor-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Staff Presentation */
.staff-section-wrapper {
    margin-bottom: 5rem;
}

.staff-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    justify-content: center;
    gap: 3rem;
}

.staff-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.staff-img-box {
    width: 100%;
    aspect-ratio: 4 / 5; /* Rapporto verticale ottimale per i ritratti, evita il taglio di testa e fronte */
    flex-shrink: 0;
    background-color: var(--bg-secondary);
}

.staff-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.staff-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.staff-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.staff-role {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-sage);
    margin-bottom: 1rem;
    display: inline-block;
}

.staff-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Gallery Ambienti */
.gallery-wrapper {
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    margin-bottom: 0.8rem;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT SECTION & FORM (PRENOTAZIONE)
   ========================================================================== */
.contact-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.badge-accent {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-sage);
    background-color: var(--accent-sage-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-small);
    margin-bottom: 1.5rem;
}

.contact-info {
    text-align: center;
}

.contact-info h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.anxiety-notice {
    background: var(--accent-sage-light);
    border-top: 4px solid var(--accent-sage);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.anxiety-notice strong {
    color: var(--accent-sage-hover);
}

.contact-details-block {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    justify-content: center;
}

.contact-detail-item svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Form Styling */
.contact-form-container {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

.reassuring-form {
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Form elements */
.input-group {
    margin-bottom: 1.8rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    background: var(--white);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 12px rgba(43, 108, 176, 0.08);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Anxiety Level Card Choice */
.anxiety-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.anxiety-option-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.anxiety-option-card:hover {
    border-color: var(--primary-blue);
}

.anxiety-option-card input[type="radio"] {
    margin-right: 1rem;
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.option-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Privacy */
.privacy-agreement {
    margin: 1.8rem 0;
}

.checkbox-simple {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-simple input {
    margin-top: 0.2rem;
    margin-right: 0.8rem;
    accent-color: var(--primary-blue);
}

.checkbox-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-submit {
    width: 100%;
    padding: 1.1rem;
    font-size: 0.95rem;
}

/* Form Success Box */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.4s ease forwards;
    padding: 2rem;
    z-index: 10;
}

.success-message.active {
    display: flex;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-sage-light);
    color: var(--accent-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.success-message p {
    font-size: 0.9rem;
    max-width: 380px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer h4 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.footer-brand .footer-logo-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-sage);
    display: block;
    margin-top: 0.1rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contacts ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contacts li {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-link {
    color: var(--accent-sage);
    font-weight: 600;
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--white);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-col a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links-col a:hover {
    color: var(--accent-sage);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    max-width: 750px;
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.8rem;
}

.footer-bottom a:hover {
    color: var(--accent-sage);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
    .section-padding {
        padding: 5rem 0;
    }
    .hero-section h1 {
        font-size: 2.6rem;
    }
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .philosophy-image {
        order: -1;
        max-width: 550px;
        margin: 0 auto;
    }
    .sedation-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .sedation-image-area {
        max-width: 550px;
        margin: 0 auto;
    }
    .doctor-bio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem 2rem;
    }
    .doctor-image {
        max-width: 320px;
        margin: 0 auto;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section-padding {
        padding: 3.8rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .main-nav, .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero Section su Smartphone */
    .hero-section {
        height: auto;
        min-height: 100svh;
        padding: 7rem 0 3.5rem 0;
        background-position: center right;
    }

    .hero-text-area {
        margin-top: 0.5rem;
        padding: 0;
    }

    .hero-badge {
        font-size: 0.7rem;
        margin-bottom: 1.2rem;
        padding: 0.35rem 0.8rem;
    }

    .hero-section h1 {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 1.2rem;
    }

    /* Permette al titolo di andare a capo armoniosamente su smartphone senza rompere il layout */
    .single-line-title {
        white-space: normal;
        word-break: normal;
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }

    .hero-section h1 .highlight {
        font-size: 1.55rem;
        display: block;
    }

    .hero-lead {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        padding: 0.85rem 1.5rem;
    }

    /* Valori dello Studio */
    .values-bar {
        padding: 2rem 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Filosofia */
    .philosophy-grid {
        gap: 2rem;
    }

    .philosophy-text h3 {
        font-size: 1.5rem;
    }

    .philosophy-text p {
        font-size: 0.9rem;
    }

    /* Sedazione Cosciente */
    .sedation-grid {
        gap: 2.5rem;
    }

    .sedation-lead {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .sedation-step {
        max-width: 100%;
    }

    /* Servizi */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Dottoressa Bio */
    .doctor-bio-grid {
        padding: 2rem 1.25rem;
        margin-bottom: 3.5rem;
        gap: 2rem;
    }

    .doctor-text h2 {
        font-size: 1.85rem;
    }

    .bio-lead {
        font-size: 1rem;
    }

    .doctor-text p {
        font-size: 0.9rem;
    }

    .doctor-image {
        max-width: 280px;
    }

    /* Staff Presentation */
    .staff-section-wrapper {
        margin-bottom: 3.5rem;
    }

    .staff-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
    }

    .staff-card {
        width: 100%;
        max-width: 320px;
    }

    .staff-img-box {
        width: 100%;
        aspect-ratio: 4 / 5;
    }

    .staff-info {
        padding: 1.5rem 1.2rem;
    }

    /* Galleria Ambienti */
    .gallery-wrapper {
        padding-top: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Modulo Contatto */
    .contact-wrapper {
        gap: 2.5rem;
    }

    .contact-info h2 {
        font-size: 1.85rem;
    }

    .anxiety-notice {
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .contact-details-block {
        margin-top: 2rem;
        gap: 1rem;
    }

    .contact-form-container {
        padding: 1.8rem 1.25rem;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .anxiety-options .anxiety-option-card {
        padding: 0.8rem 1rem;
    }

    .option-text {
        font-size: 0.8rem;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .site-footer {
        padding: 3.5rem 0 2rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .footer-contacts ul,
    .footer-links-col ul {
        align-items: center;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom p {
        margin: 0 auto;
    }

    .footer-bottom a {
        margin: 0 0.5rem;
    }

    /* Menu Mobile */
    .mobile-menu nav a {
        font-size: 1.5rem;
    }

    .mobile-menu nav li {
        margin: 1.4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section h1,
    .single-line-title {
        font-size: 1.6rem;
    }

    .hero-section h1 .highlight {
        font-size: 1.35rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .contact-form-container {
        padding: 1.5rem 1rem;
    }
}
