/*
Theme Name: Criesia Vecchia Theme
Theme URI: https://criesiavecchia.com
Description: Tema principale standalone, elegante e ottimizzato per Criesia Vecchia.
Author: Gemini
Version: 1.0.1
Text Domain: criesia-vecchia-theme
*/

/* ==========================================================================
   1. RESET, FONT E VARIABILI GLOBALI
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --cv-gold: #d4af37;
    --cv-dark: #121212;
    --cv-glass: rgba(255, 255, 255, 0.05);
    --cv-white: #ffffff;
    --cv-bg-light: #f9f6f0;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--cv-dark);
    color: var(--cv-white);
    overflow-x: hidden;
}

/* ==========================================================================
   2. HOME PAGE - DESIGN BOUTIQUE
   ========================================================================== */
.cv-site-container {
    background-color: var(--cv-dark);
    color: var(--cv-white);
    overflow: hidden;
}

.cv-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--cv-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cv-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 7rem);
    color: var(--cv-gold);
    margin: 0;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.cv-wine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 5vw;
}

.cv-wine-card {
    background: var(--cv-glass);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px;
    text-align: center;
    transition: 0.5s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border-radius: 5px;
}

.cv-wine-card:hover {
    transform: translateY(-15px);
    border-color: var(--cv-gold);
    background: rgba(212, 175, 55, 0.05);
}

.cv-wine-card img {
    height: 350px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.cv-wine-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--cv-gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   3. PAGINA CHI SIAMO - STORYTELLING
   ========================================================================== */
.cv-story-section {
    color: #1a1a1a;
    line-height: 1.8;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.hero-immersive {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-immersive h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.story-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 5vw;
}

.story-highlight {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: #b08d21;
    border-left: 3px solid #d4af37;
    padding-left: 30px;
    margin: 50px 0;
    line-height: 1.5;
}

.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 60px 0 30px;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tradition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    background: var(--cv-bg-light);
    padding: 50px;
    margin: 60px 0;
    border-radius: 4px;
}

.tradition-item b {
    display: block;
    color: var(--cv-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ==========================================================================
   4. VETRINA BOTTIGLIE
   ========================================================================== */
.cv-wines-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 60px 5vw;
    background-color: var(--cv-dark);
}

.bottle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    background-image: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
}

.bottle-card:hover {
    transform: translateY(-10px);
    border-color: var(--cv-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.bottle-image {
    height: 320px;
    width: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.6));
    transition: transform 0.5s ease;
}

.bottle-card:hover .bottle-image {
    transform: scale(1.05);
}

.bottle-title {
    font-family: 'Playfair Display', serif;
    color: var(--cv-gold);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.bottle-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   5. FOOTER FULL-WIDTH
   ========================================================================== */
.cv-footer-wrapper {
    background-color: #121212 !important;
    color: #888;
    padding: 60px 0 20px;
    border-top: 2px solid var(--cv-gold);
    
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.cv-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 7vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a img {
    width: 28px;
    height: auto;
    filter: invert(1);
    opacity: 0.6;
    transition: 0.3s;
}

.social-icons a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.legal-bar {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 25px 7vw 0;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.6;
}

.legal-bar a {
    color: var(--cv-gold);
    text-decoration: none;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .cv-hero { height: 80vh; background-attachment: scroll; }
    .cv-wine-grid { grid-template-columns: 1fr; padding: 20px; }
    .cv-wine-card img { height: 280px; }
    
    .hero-immersive { height: 50vh; background-attachment: scroll; }
    .story-highlight { font-size: 1.3rem; padding-left: 20px; }
    .tradition-grid { padding: 30px; }
    
    .cv-footer-wrapper { padding: 40px 0 20px; overflow: hidden; }
    .cv-footer-inner { flex-direction: column; text-align: center; gap: 30px; }
    .footer-col { min-width: 100%; }
    .social-icons { justify-content: center; }
    .legal-bar { padding: 20px 5vw 0; }
}
