/* BORO - Haute Joaillerie Belgique 
   Theme: Ultra-Dark Luxury (Absolute Black)
*/

:root {
    --gold: #73580a;      /* Oro scuro ufficiale */
    --black: #000000;     /* Nero Assoluto */
    --cream: #f4f1de;     /* Crema ufficiale */
    --white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--cream);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: var(--black); /* Nero Assoluto */
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(115, 88, 10, 0.2); /* Linea oro più definita */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo img {
    height: 30px; /* Adjust as needed */
    width: auto;
    margin-top: 15px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* Responsive navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    .nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--black);
        padding: 2rem 2.5rem;
        gap: 2rem;
        width: 100%;
        max-width: 320px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
        z-index: 1001;
    }
    .nav.open ul {
        display: flex;
    }
    .nav a {
        font-size: 0.8rem;
    }

    /* Place logo on the left and menu toggle on the right on mobile */
    .header .container { align-items: center; }
    .logo { order: 1; margin-left: 0; margin-right: auto; }
    .logo img { height: 28px; margin-top: 0; }
    .menu-toggle { order: 2; margin-left: 0.5rem; margin-right: 0; }

    /* hide slider arrows on tablet & mobile (use swipe instead) */
    .slider-arrow { display: none; }
}

.nav a {
    text-decoration: none;
    color: var(--cream);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--gold);
    opacity: 1;
}

/* Language Selector */
.lang-selector {
    position: relative;
    margin-left: 2rem;
    border-left: 1px solid rgba(115, 88, 10, 0.3);
    padding-left: 2rem;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--gold);
    color: var(--black);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--black);
    border: 1px solid var(--gold);
    margin-top: 0.5rem;
    z-index: 1001;
    min-width: 150px;
}

.lang-menu.active {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--cream);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(115, 88, 10, 0.2);
    transition: all 0.3s ease;
}

.lang-menu a:last-child {
    border-bottom: none;
}

.lang-menu a:hover,
.lang-menu a.active {
    color: var(--gold);
    background: rgba(115, 88, 10, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black); /* Rimosso il gradiente per nero pieno */
}

.subtitle {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: var(--cream);
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: transparent;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid var(--gold);
    transition: var(--transition);
}

.btn:hover {
    background: var(--gold);
    color: var(--black); /* Testo nero su fondo oro al passaggio */
    transform: scale(1.05);
}

/* Projects Slider Section */
.projects {
    padding: 120px 0;
    background: var(--black);
    position: relative; /* posizionamento per le frecce tra i riquadri */
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 5rem;
    color: var(--cream);
}

.slider-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 5%;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 3rem;
    scroll-snap-type: x mandatory;
}

/* Slider arrows: rotonde, sfondo nero, bordo distintivo, frecce bianche */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--gold);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 48px;
    padding: 0;
    font-family: var(--font-sans);
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* SVG sizing for pixel-perfect arrows */
.slider-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(0,0,0,0.85);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Riduci dimensione frecce su schermi piccoli */
@media (max-width: 768px) {
    .slider-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
    .slider-arrow.prev { left: 8px; }
    .slider-arrow.next { right: 8px; }
    .slider-arrow { line-height: 40px; }
}

.slide {
    flex: 0 0 80vw;
    scroll-snap-align: center;
}

.slide img {
    width: 50%;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(115, 88, 10, 0.3);
    filter: grayscale(30%) brightness(0.9);
    transition: all 0.5s ease;
    object-position: 50% 50%;
}

.media-container {
    position: relative;
    width: 100%;
    height: 650px; /* Altezza fissa per coerenza stilistica */
    background-color: #000000;
    overflow: hidden;
    border: 1px solid rgba(115, 88, 10, 0.3);
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center; 
    padding: 20px;
    transition: transform 0.8s ease;
}

/* Effetto zoom molto lento all'hover per dare dinamismo */
.media-container:hover .main-video {
    transform: scale(1.05);
    border-color: var(--gold);
}
.slide:hover img {
    filter: grayscale(0%) brightness(1);
    border-color: var(--gold);
}

.slide-info {
    margin-top: 2rem;
    border-left: 2px solid var(--gold);
    padding-left: 20px;
}

.slide-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--cream);
}

.slide-info span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
}

/* Why Us Section */
.why-us {
    padding: 150px 0;
    background-color: #000000; /* Un nero appena accennato per dare profondità rispetto al resto */
}

.policy-section {
    padding: 1rem 0;
    background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
    border-top: 1px solid rgba(115, 88, 10, 0.25);
    border-bottom: 1px solid rgba(115, 88, 10, 0.25);
}

.policy-section .section-title {
    font-size: clamp(0rem, 0vw, 0rem);
    margin-bottom: 1.2rem;
    color: var(--cream);
}

.policy-section .policy-content {
    max-width: 1200px;
    margin: 0 auto;
    color: rgba(244, 241, 222, 0.9);
    font-size: 0.95rem;
    line-height: 1.8;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
}

.policy-section .policy-content p {
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
}

/* Contact Form */
.contact-form {
    padding: 120px 0;
    background: var(--black);
}

form {
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: #000000;
    border-radius: 8px;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--cream);
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--black);
    border: 1px solid var(--cream);
    color: var(--cream);
    border-radius: 4px;
    font-family: var(--font-sans);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

form textarea {
    height: 150px;
    resize: vertical;
}


a {
    color: #73580a; /* Dark Gold */
    text-decoration: underline;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}
form button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

form button:hover {
    background: var(--cream);
    color: var(--black);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8rem;
}

.why-text h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.why-text p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    color: rgba(244, 241, 222, 0.7);
}

.why-image img {
    width: 100%;
    box-shadow: -15px 15px 0px 0px var(--gold);
}

/* Contacts Section */
.contacts {
    padding: 150px 0;
    background: var(--black);
    text-align: center;
}

.contact-details a {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1rem, 5vw, 2rem);
    color: var(--cream);
    text-decoration: none;
    margin-bottom: 0rem;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--gold);
}

.social-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}
/* Footer */
.footer {
    background: var(--black);
    color: var(--cream);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid rgba(115, 88, 10, 0.2);
}

.footer p {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-bottom: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .grid { grid-template-columns: 1fr; gap: 4rem; }
    .slide { flex: 0 0 90vw; }
    
    .lang-selector {
        margin-left: 1rem;
        padding-left: 1rem;
    }
    
    .lang-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }
    
    .lang-menu {
        right: auto;
        left: 0;
    }
}

/* additional small-screen tweaks */
@media (max-width: 768px) {
    .hero h1 { font-size: clamp(2rem, 10vw, 4rem); }
    .subtitle { letter-spacing: 4px; }
    .btn { padding: 0.9rem 2.5rem; font-size: 0.7rem; }
    .slider-container { padding: 0 2%; }
    .slide img { width: 70%; }
}

@media (max-width: 576px) {
    .slide { flex: 0 0 100vw; }
    .nav ul { width: 100%; right: 0; }
    .projects { padding: 80px 0; }
    .slide img { width: 100%; }
    .contact-details a { font-size: clamp(1.2rem, 5vw, 2rem); }
    .contact-wrapper { padding: 0 1rem; }
    .footer p { font-size: 0.6rem; }
    /* remove separator before language selector on phone only */
    .lang-selector {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}

/* Ensure slider arrows are hidden on tablet/mobile (important to override earlier rules) */
@media (max-width: 992px) {
    .projects .slider-arrow { display: none !important; }
}