/* Custom Variables */
:root {
    --wine-red: #8b1014;
    --deep-black: #1a1a1a;
    --cream: #f4f4f4;
    --logo-bg: #ffffff;
}

/* Base Styles */
body {
    background-color: var(--deep-black);
    color: var(--cream);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Gradient */
.wine-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #4a0505 0%, #1a1a1a 100%);
    z-index: -1;
}

/* Header & Logo */
header {
    padding-top: 60px;
    animation: fadeIn 2s ease-in;
    text-align: center;
}

.logo-frame {
    background-color: var(--logo-bg);
    /* Rimuoviamo il cerchio perfetto se l'immagine è quadrata/rettangolare */
    border-radius: 15px; 
    padding: 10px; /* Ridotto per non mostrare troppo distacco */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--wine-red);
    transition: all 0.5s ease;
    margin: 0 auto 20px auto;
    width: fit-content;
    overflow: hidden; /* Taglia eventuali angoli dell'immagine che escono */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-frame:hover {
    transform: scale(1.03); /* Un ingrandimento più discreto */
    box-shadow: 0 20px 40px rgba(139, 16, 20, 0.3);
    border-color: #ff4d4d; /* Il bordo si illumina al passaggio */
}

.logo-frame img {
    max-width: 220px; /* Leggermente più grande dato che non c'è il padding vuoto */
    height: auto;
    display: block;
    border-radius: 8px; /* Arrotonda leggermente gli angoli dell'immagine stessa */
}

h1 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

.tagline {
    font-style: italic;
    font-size: 1.4rem;
    color: #dbc5c5;
}

/* Audio Cards */
.audio-card {
    background: rgba(255, 255, 255, 0.07);
    padding: 25px;
    border-radius: 30px;
    border: 1px solid rgba(139, 16, 20, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.audio-card:hover {
    border-color: var(--wine-red);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.audio-card h3 {
    font-family: 'Playfair Display', serif;
    color: #dbc5c5;
    margin-bottom: 5px;
}

audio {
    width: 100%;
    filter: invert(100%) brightness(1.2);
    margin-top: 10px;
}

/* Manifesto Section */
.manifesto-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    border-left: 5px solid var(--wine-red);
    margin-bottom: 50px;
}

.manifesto-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
}

.highlight {
    color: var(--wine-red);
    font-weight: 600;
}

.border-wine {
    border-color: var(--wine-red) !important;
}

.signature {
    margin-top: 30px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-align: right;
    font-size: 1.3rem;
    color: var(--cream);
}

/* Footer */
footer {
    padding: 40px 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bubble {
    position: absolute;
    background: rgba(139, 16, 20, 0.2);
    border-radius: 50%;
    bottom: -50px;
    animation: rise 10s infinite ease-in;
    z-index: -1;
}

@keyframes rise {
    from { transform: translateY(0); opacity: 0.4; }
    to { transform: translateY(-120vh); opacity: 0; }
}

/* Language Switcher */
.language-switcher {
    position: fixed; /* Meglio fixed così resta visibile allo scroll */
    top: 20px;
    right: 30px;
    z-index: 2000;
    display: flex;
    gap: 15px;
}
.language-switcher img {
    width: 32px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}
.language-switcher img:hover {
    transform: scale(1.2);
    border-color: var(--wine-red);
}

/* Footer & Contatti */
.contact-info a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
}
.contact-info a:hover {
    color: var(--wine-red);
}

/* Bordi e Respiro */
.border-start-md {
    border-left: 3px solid var(--wine-red);
    padding-left: 20px;
}

@media (max-width: 768px) {
    .border-start-md { border-left: none; padding-left: 0; text-align: center; }
    .contact-info a { display: block; margin: 10px 0; }
}