/* ========================================
   SASSI D'ARTE - Elegant Website Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Natural Stone Palette */
    --color-stone-100: #f5f2ef;
    --color-stone-200: #e8e2db;
    --color-stone-300: #d4c8bb;
    --color-stone-400: #b8a898;
    --color-stone-500: #9a8775;
    --color-stone-600: #7d6c5c;
    --color-stone-700: #5f5245;
    --color-stone-800: #423a32;
    --color-stone-900: #2a2520;

    /* Accent Colors */
    --color-accent: #8b7355;
    --color-accent-light: #a69078;
    --color-accent-dark: #6d5a44;

    /* Neutral */
    --color-white: #ffffff;
    --color-black: #1a1714;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    --transition-smooth: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-stone-800);
    background-color: var(--color-stone-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-stone-900);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--color-stone-700);
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

@media (min-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
}

/* ========================================
   Preloader
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-stone-100);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-stone-700);
    letter-spacing: 0.3em;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: var(--transition-medium);
}

#navbar.scrolled {
    background: rgba(245, 242, 239, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    z-index: 1001;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-stone-800);
    letter-spacing: 0.05em;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

#navbar.scrolled .logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-stone-700);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-stone-800);
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-stone-100);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-md);
        transition: var(--transition-medium);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-stone-300) 0%, var(--color-stone-400) 50%, var(--color-stone-500) 100%);
    background-image: url('../images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(245, 242, 239, 0.7) 0%, rgba(245, 242, 239, 0.5) 50%, rgba(245, 242, 239, 0.8) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: var(--space-md);
    max-width: 900px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-stone-700);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-title {
    margin-bottom: var(--space-md);
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.7s; }
.hero-title .line:nth-child(2) { animation-delay: 0.9s; }
.hero-title .line:nth-child(3) { animation-delay: 1.1s; }

.hero-title .accent {
    font-style: italic;
    color: var(--color-accent-dark);
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-stone-700);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.3s;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.5s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 0.8s ease forwards 1.8s;
    opacity: 0;
}

.scroll-indicator span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-stone-600);
    margin-bottom: 0.5rem;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-stone-600);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-stone-600);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.5; top: 16px; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition-medium);
}

.btn-primary {
    background: var(--color-stone-800);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-stone-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--color-stone-800);
    border: 1px solid var(--color-stone-800);
}

.btn-outline:hover {
    background: var(--color-stone-800);
    color: var(--color-white);
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-stone-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .section-grid.reverse {
        direction: rtl;
    }

    .section-grid.reverse > * {
        direction: ltr;
    }
}

/* Section Image */
.section-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

.image-placeholder {
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.section-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.image-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
    bottom: -20px;
    left: -20px;
}

.image-decoration.right {
    left: auto;
    right: -20px;
}

/* Section Content */
.section-content {
    padding: var(--space-md) 0;
}

.section-text {
    margin-bottom: var(--space-md);
}

.section-text blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-accent-dark);
    padding-left: var(--space-md);
    border-left: 3px solid var(--color-accent);
    margin: var(--space-md) 0;
}

.signature {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--color-stone-700);
}

/* ========================================
   Arte Section
   ======================================== */
.section-arte {
    background: var(--color-white);
}

.arte-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.feature {
    text-align: center;
    padding: var(--space-md);
    background: var(--color-stone-100);
    border-radius: var(--radius-lg);
    transition: var(--transition-medium);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-sm);
    color: var(--color-accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--color-stone-600);
    margin: 0;
}

.arte-quote {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-stone-200) 0%, var(--color-stone-300) 100%);
    border-radius: var(--radius-xl);
}

.arte-quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-style: italic;
    color: var(--color-stone-800);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Opere Section / Gallery
   ======================================== */
.section-opere {
    background: var(--color-stone-200);
}

.opere-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-600);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--color-stone-800);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .gallery-item.large {
        grid-column: span 2;
    }
}

.gallery-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-item.large .gallery-image {
    aspect-ratio: 2/1;
}

.gallery-image .image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    transition: var(--transition-slow);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover .gallery-image .image-placeholder,
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--color-white);
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ========================================
   Bomboniere Section
   ======================================== */
.section-bomboniere {
    background: var(--color-white);
}

.bomboniere-events {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.event-tag {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-stone-200);
    color: var(--color-stone-700);
    border-radius: var(--radius-xl);
}

.features-list {
    margin-bottom: var(--space-md);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--color-stone-700);
}

.features-list li svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ========================================
   Testimonials Section
   ======================================== */
.section-testimonials {
    background: linear-gradient(135deg, var(--color-stone-300) 0%, var(--color-stone-400) 100%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.testimonial {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.testimonial-content p {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-stone-700);
    line-height: 1.8;
}

.testimonial-author {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-stone-200);
}

.testimonial-author .name {
    display: block;
    font-weight: 600;
    color: var(--color-stone-800);
}

.testimonial-author .event {
    font-size: 0.875rem;
    color: var(--color-accent);
}

.testimonials-social {
    text-align: center;
    margin-top: var(--space-lg);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-stone-800);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--color-accent-dark);
}

/* ========================================
   Contact Section
   ======================================== */
.section-contatti {
    background: var(--color-stone-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-card {
    padding: var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
    font-size: 0.95rem;
    color: var(--color-stone-600);
}

.contact-card a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-stone-200);
    border-radius: 50%;
    color: var(--color-stone-700);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-stone-800);
    color: var(--color-white);
}

.social-links a svg {
    width: 22px;
    height: 22px;
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1rem 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-stone-800);
    background: var(--color-stone-100);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: var(--color-white);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--color-stone-500);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group textarea ~ label {
    top: 1.25rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: 0.5rem;
    font-size: 0.7rem;
    color: var(--color-accent);
    transform: none;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239a8775' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
}

.btn-submit {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 1.25rem 2.5rem;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }

    .form-group {
        grid-column: 1;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-stone-900);
    color: var(--color-stone-300);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-stone-700);
}

.footer-brand .logo-text {
    color: var(--color-white);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: var(--space-sm);
    filter: brightness(1.2);
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-stone-800);
    border-radius: 50%;
    color: var(--color-stone-400);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* ========================================
   Back to Top Button
   ======================================== */
#backToTop {
    position: fixed;
    bottom: var(--space-md);
    right: 90px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-stone-800);
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-medium);
    z-index: 100;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

#backToTop svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Animations
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }

/* ========================================
   WhatsApp Floating Button - Premium WOW Effect
   ======================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 100px;
    right: var(--space-md);
    z-index: 999;
    animation: whatsappEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2s both;
}

@keyframes whatsappEntrance {
    0% {
        opacity: 0;
        transform: scale(0) translateY(50px) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.whatsapp-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5C 50%, #128C7E 100%);
    border-radius: 50%;
    box-shadow:
        0 6px 30px rgba(37, 211, 102, 0.45),
        0 0 0 0 rgba(37, 211, 102, 0.4),
        inset 0 -3px 10px rgba(0, 0, 0, 0.1),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: visible;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-btn:hover::before {
    opacity: 1;
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow:
        0 10px 40px rgba(37, 211, 102, 0.55),
        0 0 60px rgba(37, 211, 102, 0.3),
        inset 0 -3px 10px rgba(0, 0, 0, 0.1),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
}

.whatsapp-btn:active {
    transform: scale(1.05);
}

/* WhatsApp Icon */
.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-icon {
    animation: whatsappBounce 0.6s ease;
}

@keyframes whatsappBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Pulse Animation Rings - Triple Effect */
.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 2px solid rgba(37, 211, 102, 0.6);
    background: transparent;
    border-radius: 50%;
    animation: whatsappPulse 2.5s ease-out infinite;
}

.whatsapp-pulse.pulse-2 {
    animation-delay: 0.8s;
}

.whatsapp-pulse.pulse-3 {
    animation-delay: 1.6s;
}

@keyframes whatsappPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        border-color: rgba(37, 211, 102, 0.6);
    }
    50% {
        border-color: rgba(37, 211, 102, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(2.8);
        opacity: 0;
        border-color: rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Text Label (on hover) */
.whatsapp-text {
    position: absolute;
    right: 75px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 20px 20px 8px 20px;
    opacity: 0;
    transform: translateX(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow:
        0 6px 25px rgba(37, 211, 102, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
    white-space: nowrap;
}

.whatsapp-text .text-main {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.whatsapp-text .text-sub {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 2px;
}

.whatsapp-btn:hover + .whatsapp-tooltip,
.whatsapp-btn:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* WhatsApp Chat-Style Tooltip */
.whatsapp-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    min-width: 260px;
    overflow: hidden;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 22px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.05);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tooltip-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    gap: 12px;
}

.tooltip-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #25D366, #20BA5C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.tooltip-info {
    display: flex;
    flex-direction: column;
}

.tooltip-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.tooltip-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.8);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.tooltip-message {
    padding: 16px;
    background: #E8F5E9;
    color: var(--color-stone-800);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    margin: 8px;
    border-radius: 12px 12px 12px 4px;
    animation: messageAppear 0.3s ease 0.2s both;
}

.tooltip-message::before {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    background: #E8F5E9;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

@keyframes messageAppear {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Floating Bounce Animation */
.floating-whatsapp {
    animation:
        whatsappEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2s both,
        whatsappFloat 3s ease-in-out 3s infinite;
}

@keyframes whatsappFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Attention Grabber - Periodic Shake */
.floating-whatsapp::after {
    content: '1';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #FF5252;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 82, 82, 0.4);
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s both;
    z-index: 10;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 90px;
        right: var(--space-sm);
    }

    .whatsapp-btn {
        width: 58px;
        height: 58px;
    }

    .whatsapp-pulse {
        width: 58px;
        height: 58px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-tooltip {
        right: -10px;
        min-width: 220px;
    }

    .tooltip-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .tooltip-message {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .whatsapp-tooltip {
        min-width: 200px;
        right: -5px;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-stone-900);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
}

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

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-stone-200);
}

::-webkit-scrollbar-thumb {
    background: var(--color-stone-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-stone-600);
}

/* ========================================
   Footer Legal Links
   ======================================== */
.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-lg);
}

.footer-legal a {
    color: var(--color-stone-400);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-banner.hiding {
    opacity: 0;
    transform: translateY(100%);
}

.cookie-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 500px;
    width: 100%;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: cookieSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.cookie-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-stone-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.cookie-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-stone-800);
    margin: 0;
}

.cookie-content > p {
    color: var(--color-stone-600);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.cookie-content > p a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.cookie-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-primary {
    background: var(--color-stone-800);
    color: var(--color-white);
}

.cookie-btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-btn-secondary {
    background: var(--color-stone-100);
    color: var(--color-stone-700);
}

.cookie-btn-secondary:hover {
    background: var(--color-stone-200);
}

.cookie-customize {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: var(--color-stone-500);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-customize:hover {
    color: var(--color-stone-800);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--color-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-settings-panel.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-stone-200);
    position: sticky;
    top: 0;
    background: var(--color-white);
    z-index: 1;
}

.cookie-settings-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-stone-800);
    margin: 0;
}

.cookie-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-stone-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-close:hover {
    background: var(--color-stone-200);
    transform: rotate(90deg);
}

.cookie-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-stone-600);
}

.cookie-settings-content {
    padding: var(--space-md) var(--space-lg);
}

.cookie-category {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-stone-100);
}

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

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
}

.cookie-category-info h4 {
    font-size: 1rem;
    color: var(--color-stone-800);
    margin: 0 0 var(--space-xs) 0;
}

.cookie-category-info p {
    font-size: 0.85rem;
    color: var(--color-stone-500);
    margin: 0;
    line-height: 1.5;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle label {
    display: block;
    width: 50px;
    height: 28px;
    background: var(--color-stone-300);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + label {
    background: var(--color-accent);
}

.cookie-toggle input[type="checkbox"]:checked + label::after {
    transform: translateX(22px);
}

.cookie-toggle.disabled label {
    background: var(--color-accent);
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-toggle.disabled label::after {
    transform: translateX(22px);
}

.cookie-settings-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-stone-200);
    position: sticky;
    bottom: 0;
    background: var(--color-white);
}

.cookie-settings-footer .cookie-btn {
    width: 100%;
}

/* Mobile adjustments for cookie banner */
@media (max-width: 576px) {
    .cookie-banner {
        padding: 0;
    }

    .cookie-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: var(--space-md);
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        padding: 12px 16px;
    }

    .cookie-settings-panel {
        max-height: 90vh;
    }
}
