/* ═══════════════════════════════════════════════════════════════
   COELIA SLIT THORNE - SITO WEB
   CSS Mobile-First Ottimizzato
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   COLORI PRINCIPALI
   Puoi modificare questi colori per cambiare il tema del sito
   ═══════════════════════════════════════════════════════════════ */
:root {
    --viola-ametista: #4A1A4F;
    --rosa-antico: #D4A5A5;
    --rame-bruciato: #B87333;
    --oro-pallido: #E8D5B7;
    --grigio-antracite: #2D2D2D;
    --bianco-sporco: #F5F1E8;
    --bordeaux-scuro: #722F37;
    --argento-opaco: #A8A8A8;
}

/* ═══════════════════════════════════════════════════════════════
   RESET E BASE
   ═══════════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bianco-sporco);
    color: var(--grigio-antracite);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1.2rem;
}

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

a:hover {
    color: var(--bordeaux-scuro);
}

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

/* ═══════════════════════════════════════════════════════════════
   HEADER - Mobile First
   ═══════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--viola-ametista), #5D2265);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.logo .accent {
    color: var(--rosa-antico);
    font-style: italic;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Menu Mobile */
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: rgba(74, 26, 79, 0.98);
    backdrop-filter: blur(10px);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s ease;
    z-index: 999;
    overflow-y: auto;
}

.menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu nav ul {
    list-style: none;
}

.menu nav ul li {
    margin: 1.5rem 0;
}

.menu nav ul li a {
    color: white;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.menu nav ul li a:hover {
    color: var(--rosa-antico);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT GENERALE
   ═══════════════════════════════════════════════════════════════ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--viola-ametista);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '~∿~∿~∿~';
    display: block;
    text-align: center;
    color: var(--oro-pallido);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero {
    margin-top: 60px;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--viola-ametista), var(--rosa-antico));
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--oro-pallido), var(--rosa-antico));
    border-radius: 50% 40% 50% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

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

.hero-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin: 2rem 0;
    line-height: 1.8;
}

/* Bottoni CTA */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--rame-bruciato), var(--bordeaux-scuro));
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.4);
    transition: all 0.3s ease;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.6);
    color: white;
}

/* Card Generiche */
.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(74, 26, 79, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 26, 79, 0.2);
    border-color: var(--rosa-antico);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    color: var(--viola-ametista);
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--rame-bruciato);
    text-align: center;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.card-link {
    display: inline-block;
    color: var(--bordeaux-scuro);
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--viola-ametista);
}

/* Grid Responsive */
.grid {
    display: grid;
    gap: 1.5rem;
}

/* Citazione Centrale */
.quote-section {
    background: var(--grigio-antracite);
    color: var(--oro-pallido);
    padding: 4rem 1.5rem;
    text-align: center;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.quote-author {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--rosa-antico);
}

/* Content Box */
.content-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.content-box.highlight {
    background: var(--bianco-sporco);
    border-left: 4px solid var(--rame-bruciato);
}

/* Footer */
.footer {
    background: var(--viola-ametista);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    color: var(--oro-pallido);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--rosa-antico);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - TABLET (768px+)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

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

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-image {
        width: 220px;
        height: 220px;
    }

    .hero-quote {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .quote-text {
        font-size: 1.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }

    .hamburger {
        display: none;
    }

    .menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
    }

    .menu nav ul {
        display: flex;
        gap: 2rem;
    }

    .menu nav ul li {
        margin: 0;
    }

    .menu nav ul li a {
        font-size: 1rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid.four-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   PERFORMANCE - Caricamento Immagini
   ═══════════════════════════════════════════════════════════════ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
