/* ============================================================================
   Global Styles
   ============================================================================ */

/* Force light mode - override any dark mode preferences */
html {
    color-scheme: light only !important;
    background-color: #fdfbf7 !important;
}

:root {
    /* Warm olive green palette - grounded in Mediterranean */
    --primary-color: #6b8c6b;
    --primary-dark: #5a7a5a;
    --primary-light: #8fa98f;
    --primary-lighter: #c5d5c5;

    /* Warm palette - Italian family warmth */
    --cream: #fdfbf7;
    --warm-cream: #f9f6f0;
    --beige: #f5f1e8;
    --warm-gold: #d4a574;
    --soft-terracotta: #c9a88e;
    --warm-brown: #8b7355;

    /* Backgrounds - warm & welcoming */
    --bg-main: #fdfbf7;
    --bg-secondary: #f9f6f0;
    --bg-accent: #f5f1e8;
    --bg-tertiary: #efe9df;

    /* Text colors - warm & readable */
    --text-primary: #2d2a26;
    --text-secondary: #5c5650;
    --text-light: #8a8279;
    --text-muted: #b5ada3;

    /* Borders and accents - warm subtle */
    --border-color: #e8e2d8;
    --footer-bg: #f5f1e8;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Breakpoints */
    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2d2a26 !important;
    background-color: #fdfbf7 !important;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.35;
    font-weight: 400;
    margin-top: 0;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
}

p {
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Touch Target Optimization (44px minimum for mobile) */
button, a[role="button"], .btn, input[type="button"], input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

input, textarea, select {
    min-height: 44px;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================================
   Header & Navigation
   ============================================================================ */

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    color: #1a1a1a;
    gap: 0.5rem;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: #5a7a5f;
    flex-shrink: 0;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: none;
    flex: 1;
    margin: 0;
    padding: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.nav-item {
    border-bottom: 1px solid #e0e0e0;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666666;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 400;
    padding: 1rem 2rem;
    min-height: 44px;
}

.nav-link:hover,
.nav-link.active {
    color: #5a7a5f;
    background-color: #fafaf8;
}

.nav-link:focus-visible {
    outline: 2px solid #5a7a5f;
    outline-offset: 4px;
}

.nav-link.active::after {
    display: none;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    flex-shrink: 0;
}

.header-actions .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    padding: 1rem 0;
}

/* Desktop view (768px+) */
@media (min-width: 769px) {
    .header-container {
        padding: 1rem 2rem;
        gap: 0;
    }

    .logo-text {
        display: inline;
    }

    .nav-menu {
        display: flex;
        flex: 1;
        margin-left: 1rem;
        position: static;
        background-color: transparent;
        border: none;
        padding: 0;
    }

    .nav-list {
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
    }

    .nav-item {
        border-bottom: none;
        flex-shrink: 1;
    }

    .nav-link {
        display: inline;
        padding: 0;
        font-size: 0.95rem;
        min-height: auto;
        align-items: baseline;
        white-space: nowrap;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: transparent;
    }

    .nav-link.active::after {
        display: block;
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: #5a7a5f;
    }

    .header-actions {
        gap: 1rem;
    }

    .header-actions .btn-primary {
        padding: 0.6rem 1.6rem;
        font-size: 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu.active {
        position: static;
        display: flex;
    }
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.7px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(90, 110, 79, 0.12);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(90, 110, 79, 0.18);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 0.8px;
}

/* WhatsApp Button - Official brand color */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: #ffffff;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-whatsapp:focus-visible {
    outline: 2px solid #128C7E;
    outline-offset: 2px;
}

.whatsapp-icon {
    flex-shrink: 0;
}

/* Contact actions container */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* WhatsApp link in contact details */
.whatsapp-link {
    color: #25D366 !important;
    font-weight: 500;
}

.whatsapp-link:hover {
    color: #128C7E !important;
}

@media (max-width: 768px) {
    .contact-actions {
        width: 100%;
    }

    .contact-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================================================
   Main Layout
   ============================================================================ */

main {
    min-height: calc(100vh - 200px);
}

/* ============================================================================
   Responsive Grid Container
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ============================================================================
   Forms & Contact
   ============================================================================ */

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(85, 107, 77, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ============================================================================
   Decorative Elements & Botanical Accents
   ============================================================================ */

.divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    margin: 1.5rem 0;
    opacity: 0.6;
}

.botanical-line {
    display: inline-block;
    width: 1px;
    height: 30px;
    background-color: var(--primary-light);
    opacity: 0.4;
    margin: 0 1rem;
}

.accent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: inline-block;
    opacity: 0.6;
}

.leaf-accent {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6e4f' d='M12 2c0 0-8 8-8 14c0 4.4 3.6 8 8 8s8-3.6 8-8C20 10 12 2 12 2z' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ============================================================================
   Section Spacing
   ============================================================================ */

section {
    padding: clamp(3rem, 8vw, 4.5rem) var(--space-lg);
    background-position: 0 0;
    background-size: 100% 100%;
}

section:nth-child(even) {
    background-color: var(--bg-secondary);
}

section:nth-child(odd) {
    background-color: var(--bg-main);
}

@media (max-width: 768px) {
    section {
        padding: clamp(2rem, 6vw, 3rem) var(--space-md);
    }
}

/* ============================================================================
   Responsive Video
   ============================================================================ */

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================================
   Lists
   ============================================================================ */

ul,
ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin: 0.5rem 0;
    line-height: 1.8;
}

/* ============================================================================
   Code
   ============================================================================ */

code {
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* ============================================================================
   Tables
   ============================================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th,
td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
}

tr:hover {
    background-color: var(--bg-tertiary);
}

/* ============================================================================
   Blockquotes
   ============================================================================ */

blockquote {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================================================
   Accessibility
   ============================================================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    body {
        background: white;
    }

    header,
    footer,
    .no-print {
        display: none;
    }

    a {
        color: var(--primary-color);
    }

    img {
        max-width: 100%;
    }

    main {
        min-height: auto;
    }
}

/* Light mode enforced at top of file via html element */

/* ============================================================================
   Loading Animation
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* ============================================================================
   Scroll to Top Button
   ============================================================================ */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================================================
   Animations
   ============================================================================ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-down {
    animation: slideDown 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* ============================================================================
   Default Responsive
   ============================================================================ */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    h3 {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    section {
        padding: var(--space-xl) var(--space-sm);
    }
}

/* ============================================================================
   Hero Section (Consolidated from hero.html)
   ============================================================================ */

.hero {
    background-color: var(--bg-main, #fdfbf7);
    padding: 5rem 2rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.05) 100%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 2rem;
}

.hero-credential {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5f1e8 0%, #efe9df 100%);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e8e2d8;
}

.credential-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
}

.credential-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
    margin: 0 0 0.2rem 0;
    color: var(--text-primary);
    font-family: 'Georgia', 'Garamond', serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
    margin: 0 0 2rem 0;
    color: var(--text-primary);
    font-family: 'Georgia', 'Garamond', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    max-width: 440px;
    letter-spacing: 0.2px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 2.5rem;
    min-height: 44px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(107, 140, 107, 0.2);
}

.btn-large:hover,
.btn-large:focus-visible {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 140, 107, 0.3);
}

.btn-large:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    min-height: 44px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-transform: uppercase;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(45, 42, 38, 0.12);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(107, 140, 107, 0.1) 100%);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero-title {
        font-size: clamp(1.3rem, 5vw, 1.75rem);
        margin: 0 0 0.1rem 0;
    }

    .hero-subtitle {
        font-size: clamp(1.3rem, 5vw, 1.75rem);
        max-width: 200px;
        margin: 0 0 1rem 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large, .btn-outline {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-credential {
        font-size: 0.75rem;
    }
}

/* ============================================================================
   Accordion Styles (for Prenota Appuntamento page)
   ============================================================================ */

.accordion {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 1.5rem 0;
    background-color: #fff;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background-color: #fff;
    user-select: none;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: #fafaf8;
}

.accordion-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.accordion-icon {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
    display: inline-block;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-content.open {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-content ol,
.accordion-content ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.accordion-content li {
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* CTA Box Styles */
.prenota-cta {
    background-color: #f5f1e8;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d2a26;
}

.prenota-cta p {
    margin: 0.75rem 0 0 0;
}

.prenota-cta p:last-child {
    margin-bottom: 0;
}

/* Desktop: 2-Column Layout for Prenota Page */
@media (min-width: 1025px) {
    .single-content {
        display: grid;
        grid-template-columns: 1fr 1.6fr;
        gap: 2rem;
        align-items: flex-start;
    }

    .accordion {
        grid-column: 1;
        margin: 0.75rem 0;
    }

    .accordion:first-of-type {
        margin-top: 0;
    }

    .prenota-cta {
        grid-column: 1;
        margin: 0.75rem 0;
    }

    .calendly-container {
        grid-column: 2;
        grid-row: 1 / span 10;
        position: sticky;
        top: 80px;
    }

    .calendly-inline-widget {
        height: 580px !important;
    }

    /* Domande section spans full width below */
    .single-content > h2:last-of-type {
        grid-column: 1 / -1;
        margin-top: 2rem;
    }

    .single-content > p:last-of-type {
        grid-column: 1 / -1;
    }
}

/* Tablet: Compact Stacked Layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-content {
        display: block;
    }

    .accordion {
        margin: 1.5rem 0;
    }

    .prenota-cta {
        margin: 1.5rem 0;
    }

    .calendly-container {
        margin: 2rem 0;
    }

    .calendly-inline-widget {
        height: 500px !important;
    }
}

/* Mobile: Full Stack Layout */
@media (max-width: 768px) {
    .single-content {
        display: block;
    }

    .accordion {
        margin: 1rem 0;
        border-radius: 4px;
    }

    .accordion-header {
        padding: 0.75rem 1rem;
    }

    .accordion-content {
        padding: 0 1rem !important;
    }

    .accordion-content.open {
        padding: 0 1rem 1rem 1rem !important;
    }

    .prenota-cta {
        margin: 1.5rem 0;
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .prenota-cta h3 {
        font-size: 1.1rem;
    }

    .calendly-container {
        margin: 2rem 0;
    }

    .calendly-inline-widget {
        height: 650px !important;
    }
}
