/* CSS Variables */
:root {
    --color-bg: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #555555;
    --color-black: #000000;
    --color-dark: #111111;
    --color-gold: #D4AF37;
    --color-gold-hover: #b8962c;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 80px; /* Offset for sticky navbar */
}

html {
    scroll-behavior: smooth;
    font-size: 15px; /* Scalato leggermente più piccolo come richiesto */
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.2;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Noir Filters */
.noir-filter {
    filter: grayscale(100%) contrast(110%);
    transition: var(--transition);
}

.noir-filter-hover {
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

.noir-filter-hover:hover, .noir-filter-hover.colorized {
    filter: grayscale(0%);
}

/* Typography elements */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gold-line {
    height: 2px;
    width: 60px;
    background-color: var(--color-gold);
    margin-bottom: 3rem;
}

.gold-text {
    color: var(--color-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-bg);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: 1px solid var(--color-gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--color-gold);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--color-black);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end; /* Testo in basso */
    justify-content: center;
    text-align: center;
    padding: 0 2rem 10vh 2rem;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
    transition: filter 1s ease;
}

.hero:hover .hero-img {
    filter: grayscale(0%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    max-width: 800px;
    color: var(--color-bg);
}

.hero-title {
    color: var(--color-bg);
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero .btn-primary {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.hero .btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* Styling Utilities */
.bg-light { background-color: #f9f9f9; }
.mx-auto { margin-left: auto; margin-right: auto; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Storia Section */
.storia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.storia-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* Chi Siamo Section / Fondatori */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.profile-card {
    background: var(--color-bg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    padding: 2rem;
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.profile-img {
    height: 350px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Artisti Section */
.artisti {
    background-color: #f9f9f9;
}

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

.artist-card {
    background: var(--color-bg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Book Carousel */
.carousel-wrapper {
    position: relative;
}
.book-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 1.5rem 2.5rem;
    background: #f9f9f9;
    scrollbar-width: none; /* Firefox */
}
.book-carousel::-webkit-scrollbar {
    display: none; /* Chrome */
}
.carousel-img {
    flex: 0 0 calc(33.333% - 5px);
    scroll-snap-align: start;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.carousel-img:hover {
    transform: scale(1.05);
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s ease;
}
.carousel-nav.left { left: 5px; }
.carousel-nav.right { right: 5px; }
.carousel-nav:hover { background: var(--color-gold); }

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    background: #ffffff;
}
.carousel-controls button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}
.carousel-controls button:hover {
    color: var(--color-gold);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
}
@keyframes zoom {
    from {transform:scale(0.8)} 
    to {transform:scale(1)}
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Ticker Quadri */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2.5rem 0;
    position: relative;
    background: #fdfdfd;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 60s linear infinite;
    align-items: center;
}
.ticker-track:hover {
    animation-play-state: paused;
}
.ticker-item {
    flex: 0 0 auto;
    height: 380px;
    margin: 0 15px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.8s ease;
    filter: grayscale(100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ticker-item:hover, .ticker-item.colorized {
    transform: scale(1.05);
    filter: grayscale(0%);
    z-index: 2;
}
.ticker-item img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    /* Scorrerà esattamente per metà della sua larghezza (essendo duplicato) */
    100% { transform: translateX(-50%); } 
}

/* Contatti Section */
.contatti {
    background-color: var(--color-dark);
    color: var(--color-bg);
}

.contatti .section-title,
.contatti h3 {
    color: var(--color-bg);
}

.contatti .gold-text {
    color: var(--color-gold);
}

/* Form Wrapper for New Centered Layout */
.contact-form-wrapper {
    max-width: 550px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* New Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mirror-grid > div:first-child { order: 2; }
.mirror-grid > div:last-child { order: 1; }

.phones-card, .address-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phones-card h3, .address-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

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

.phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.phone-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.phone-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-black);
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
}

.action-icons {
    display: flex;
    gap: 12px;
}

.action-icons a {
    color: #aeaeae;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f9f9f9;
}

.action-icons a:hover {
    color: var(--color-bg);
    background-color: var(--color-gold);
}

.action-icons a.wa-icon:hover {
    background-color: #25D366; /* WhatsApp brand color */
}

.ig-body .btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.address-large {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
}

/* Instagram Card */
.ig-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.ig-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    background: #fafafa;
}

.ig-profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #ddd;
}

.ig-user-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.ig-user-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.ig-logo-icon {
    margin-left: auto;
    color: #e1306c;
}

.ig-body {
    padding: 1.5rem;
}



.contact-info p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--color-gold);
}

.contact-link:hover {
    color: var(--color-bg);
    text-decoration: underline;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: transparent;
    border: 1px solid #444;
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(255,255,255,0.02);
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: #888;
    padding: 2rem 0;
    border-top: 1px solid #222;
}

.small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .storia-grid, .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    .mirror-grid > div:first-child { order: 1; }
    .mirror-grid > div:last-child { order: 2; }
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .storia-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .artists-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        gap: 0;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .nav-links.active {
        max-height: 300px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .nav-links a {
        padding: 1rem;
        display: block;
        color: var(--color-black);
    }
    
    .nav-links a::after {
        display: none;
    }
}
