/* Layout Styles - Header, navigation, footer, main content */

/* Header - Apple style */
.site-header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: var(--spacing-lg) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    margin: 0;
}

.logo-image {
    height: 48px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

/* Navigation - Apple style */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.main-nav a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.016em;
    padding: 8px 0;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Section Divider within unified pages */
.page-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 60px 0 40px;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding-top: 120px; /* Account for fixed header */
}

/* Footer - Apple style */
.site-footer {
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: -0.016em;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-nav a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .logo-image {
        height: 38px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Hero section styles - Apple inspired with background image */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(29, 29, 31, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(29, 29, 31, 0.8) 100%
    );
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease-out;
    will-change: opacity, transform;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 0;
    line-height: 1.4;
    color: var(--light-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.1s ease-out;
    will-change: opacity, transform;
}

/* Section styles - Apple inspired */
.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--light-background);
}

.section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card styles - Apple inspired */
.card {
    background: var(--card-background);
    border-radius: 16px;
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--secondary-color);
}

.card h3 {
    margin-bottom: var(--spacing-md);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Map Section - Apple style */
.map-section {
    padding: var(--spacing-xxl) 0;
    background: var(--light-background);
}

.map-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

.map-container {
    margin-bottom: var(--spacing-lg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 16px;
}

.map-info {
    text-align: center;
    color: white;
}

.map-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.map-info p {
    color: var(--light-text);
    font-size: 1rem;
}

/* Content Reveal Section */
.content-reveal-section {
    padding: var(--spacing-xxl) 0;
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.content-reveal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.content-reveal-iframe {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.content-reveal-iframe:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.content-reveal-iframe iframe,
.content-reveal-iframe .section-image {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.content-reveal-section.visible .content-reveal-iframe,
.content-reveal-section.visible .content-reveal-text {
    opacity: 1;
    transform: translateX(0);
}

.content-reveal-text {
    color: white;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s; /* Delay di 0.3s */
    will-change: opacity, transform;
}

.content-reveal-text p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    color: var(--light-text);
    font-size: 1.1rem;
}

.content-reveal-text p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-reveal-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .content-reveal-iframe iframe {
        height: 300px;
    }

    .content-reveal-text h2 {
        font-size: 2rem;
    }
}
.brand-section {
    padding: var(--spacing-xxl) 0;
    padding-top: 0; /* Spazio superiore rimosso */
    padding-bottom: var(--spacing-lg); /* Spazio ridotto */
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.brand-text {
    text-align: center;
    position: relative;
}

.brand-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.brand-word {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    transition: all 0.1s ease-out;
    will-change: transform, opacity;
}

.brand-vin {
    margin-right: var(--spacing-lg);
}

.brand-wood {
    margin-left: var(--spacing-lg);
}

.brand-connector {
    font-size: clamp(4rem, 10vw, 5rem); /* Grandezza molto aumentata per WITH e tage */
    font-weight: 400;
    color: var(--light-text);
    transition: all 0.1s ease-out;
    will-change: opacity, transform;
}

.brand-tage {
    margin-left: var(--spacing-md);
    color: rgba(255, 255, 255, 0.75); /* Meno grigio, più chiaro */
    font-size: clamp(4rem, 12vw, 8rem); /* Stessa dimensione di VIN e WOOD */
    font-weight: 400; /* Mantiene lo stesso carattere (font-weight) di adesso */
}

.brand-with {
    margin-right: calc(var(--spacing-xl) * 3); /* Spazio molto aumentato tra with e WOOD */
    font-size: clamp(4.38rem, 10.6vw, 5.38rem); /* 6px più grande del connector standard */
}

.card p {
    color: var(--light-text);
    line-height: 1.5;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-banner.visible {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-text p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-text a {
    color: #0071e3;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-primary {
    background: #0071e3;
    color: white;
}

.cookie-btn-primary:hover {
    background: #0077ed;
    transform: scale(1.05);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 10000;
    padding: 20px;
}

.cookie-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: var(--background-color);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.cookie-category p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
    background-color: #0071e3;
}

input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .cookie-toggle-slider {
    background-color: rgba(0, 113, 227, 0.5);
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-modal-content {
        max-width: none;
        margin: 0;
    }
}

/* Shop Page Styles */
.shop-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    padding: var(--spacing-xxl) 0;
}

.shop-content {
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
}

.coming-soon-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.coming-soon-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--light-text);
    font-weight: 400;
    margin-bottom: var(--spacing-xxl);
}

@media (max-width: 768px) {
    .coming-soon-title {
        font-size: 4rem;
    }

    .coming-soon-subtitle {
        font-size: 1.25rem;
    }
}

/* Content Reveal Section 2 - Inverted layout */
.content-reveal-section-2 {
    padding: var(--spacing-xxl) 0;
    background: var(--light-background);
    position: relative;
    overflow: hidden;
}

.content-reveal-container-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.content-reveal-text-2 {
    color: white;
    opacity: 0;
    transform: translateX(-100%); /* Parte da sinistra */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s; /* Delay di 0.3s */
    will-change: opacity, transform;
}

.content-reveal-text-2 h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.content-reveal-text-2 p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    color: var(--light-text);
    font-size: 1.1rem;
}

.content-reveal-text-2 p:last-child {
    margin-bottom: 0;
}

.content-reveal-iframe-2 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(100%); /* Parte da destra */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.content-reveal-iframe-2:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.content-reveal-iframe-2 iframe,
.content-reveal-iframe-2 .section-image {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.content-reveal-section-2.visible .content-reveal-iframe-2,
.content-reveal-section-2.visible .content-reveal-text-2 {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments for section 2 */
@media (max-width: 768px) {
    .content-reveal-container-2 {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .content-reveal-iframe-2 iframe {
        height: 300px;
    }

    .content-reveal-text-2 h2 {
        font-size: 2rem;
    }
}

/* Quote Transition Section */
.quote-transition-section {
    padding: 200px 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.quote-container {
    position: relative;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-phrase {
    position: absolute;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: white;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
    max-width: 900px;
    line-height: 1.3;
}

.quote-phrase-1 {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quote-phrase-1.hidden {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
}

.quote-phrase-2 {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.quote-phrase-2.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Werkstatt Intro Section */
.werkstatt-intro-section {
    padding: 120px 0;
    background: var(--light-background);
    position: relative;
}

.werkstatt-intro-text {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .quote-transition-section {
        padding: 120px 0;
    }

    .quote-phrase {
        font-size: 1.75rem;
    }

    .werkstatt-intro-section {
        padding: 80px 0;
    }

    .werkstatt-intro-text {
        font-size: 1.25rem;
    }
}

/* ===== Shared Page Styles (Über mich style) ===== */
.section.page-section {
    min-height: 100vh;
    background: var(--background-color);
    padding: var(--spacing-xxl) 0;
}

.section.page-section h2 {
    text-align: left;
    margin-bottom: 0;
    font-size: 1.6rem;
}

.page-content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-content-wrapper > h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.page-content {
    line-height: 1.7;
    color: var(--light-text);
}

/* Page Hero - title left, image right */
.page-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.page-hero .page-hero-text h2 {
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 600;
    margin-bottom: 1rem !important;
    letter-spacing: -0.01em;
    text-align: left !important;
    border: none;
    padding: 0;
}

.page-hero .page-hero-text p {
    color: var(--light-text);
    font-size: 1.15rem;
    font-style: italic;
}

.page-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* Page Text Sections - title + line + text */
.page-text-section {
    margin-bottom: 3rem;
}

.page-text-section h2 {
    color: white;
    font-size: 1.6rem !important;
    font-weight: 600;
    margin-bottom: 0.6rem !important;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left !important;
}

.page-text-section p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--light-text);
    line-height: 1.7;
}

.page-text-section p:last-child {
    margin-bottom: 0;
}

/* Page CTA */
.page-cta {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(64, 169, 255, 0.04));
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.page-cta h2 {
    color: white;
    font-size: 1.6rem !important;
    font-weight: 600;
    margin-bottom: 1rem !important;
    text-align: center !important;
    border: none;
    padding: 0;
}

.page-cta p {
    color: var(--light-text);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.page-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.page-btn.primary {
    background: #0071e3;
    color: white;
}

.page-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

.page-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Responsive - Shared Pages */
@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 1.5rem 1rem;
    }

    .page-content-wrapper > h1 {
        font-size: 2rem;
    }

    .page-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero-image img {
        height: 220px;
    }

    .page-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-btn {
        width: 200px;
        text-align: center;
    }
}

/* Gallerie Page Styles */
.gallerie-section {
    padding: var(--spacing-xxl) 0;
    min-height: 100vh;
}

.gallerie-section h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.gallerie-intro {
    text-align: center;
    color: var(--light-text);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xxl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallerie-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

/* Stili per gli elementi gallerie (immagini caricate) */
.gallerie-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallerie-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallerie-item.reverse {
    direction: rtl;
}

.gallerie-item.reverse .gallerie-image,
.gallerie-item.reverse .gallerie-text {
    direction: ltr;
}

.gallerie-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s ease;
}

.gallerie-image:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.gallerie-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.gallerie-text {
    color: white;
}

.gallerie-text h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.gallerie-text p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    color: var(--light-text);
    font-size: 1.1rem;
}

.gallerie-text p:last-child {
    margin-bottom: 0;
}

.upload-section {
    margin-top: var(--spacing-xxl);
    padding: 3rem 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.upload-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.upload-section p {
    color: var(--light-text);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gallerie-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .gallerie-item.reverse {
        direction: ltr;
    }

    .gallerie-image img {
        height: 300px;
    }
}
