/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #121212;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent: #d4af37;
    --accent-hover: #b59226;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY & UTILITIES --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gold-text {
    color: var(--accent);
    font-style: italic;
}

.text-accent {
    color: var(--accent);
}

.text-center {
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 60px;
    height: auto;
    z-index: 2;
}

.loader-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- BUTTONS --- */
.btn-gold {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent);
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.w-100 {
    width: 100%;
    margin-top: 10px;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s;
}

nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 15px 5%;
}

.nav-logo {
    height: 80px; 
    transition: height 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-nav {
    border: 1px solid var(--accent);
    padding: 8px 20px;
    color: var(--accent) !important;
}

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    min-width: 240px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #222;
    border-top: 2px solid var(--accent);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-transform: none;
    border-bottom: 1px solid #1a1a1a;
}

/* --- MOBILE MENU ICON --- */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/hero.png') center center/cover no-repeat;
    background-color: #000; 
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 20px auto;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.5;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* --- ABOUT SECTION --- */
#about {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 0 0 35%;
    max-width: 450px;
}

.about-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.5s ease, transform 0.3s ease;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--text-main);
}

/* --- METHOD SECTION --- */
#metodo {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid #222;
}

.metodo-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.metodo-text {
    flex: 1;
}

.metodo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.metodo-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.metodo-text strong {
    color: var(--text-main);
}

.metodo-img {
    flex: 0 0 35%;
    max-width: 450px;
}

.metodo-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.5s ease, transform 0.3s ease;
}

/* --- SERVICES SECTION --- */
#services {
    padding: 100px 0;
    background-color: var(--bg-color); 
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
}

.service-card {
    background: var(--bg-secondary);
    padding: 50px 40px;
    border: 1px solid #222;
    transition: 0.3s;
    text-align: center; 
    border-radius: 4px;
}

.service-card .icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin: 0 auto 25px auto;
    display: block;
}

.service-card h3 {
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-highlight {
    font-style: italic;
    color: var(--text-main) !important;
    font-size: 1.05rem !important;
    margin-bottom: 20px !important;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-card strong {
    color: var(--text-main);
}

/* --- CONTACT SECTION --- */
#contact {
    padding: 100px 0;
    background: linear-gradient(to right, var(--bg-secondary), #000);
    border-top: 1px solid #222;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    width: fit-content;
    transition: 0.3s;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

/* --- CONTACT FORM --- */
.contact-form-wrapper {
    flex: 1;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #222;
    margin-left: 40px;
}

.custom-form .input-group {
    margin-bottom: 20px;
}

.custom-form input,
.custom-form select,
.custom-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-secondary);
    border: 1px solid #333;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 4px;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    border-color: var(--accent);
}

.custom-form select {
    cursor: pointer;
    appearance: none; 
}

#form-status {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
}

#form-status.success {
    color: #4CAF50;
}

#form-status.error {
    color: #f44336;
}

/* --- BACK TO TOP BUTTON --- */
.btt-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.btt-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* --- FOOTER --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background-color: #000;
    border-top: 1px solid #1a1a1a;
    color: #555;
    font-size: 0.8rem;
}

.privacy-link {
    color: #555;
    transition: color 0.3s;
}

.designer-logo {
    display: block;
    margin-top: 25px;
    width: 100px;
    opacity: 1;
    transition: transform 0.3s ease;
}

.designer-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1); 
}

/* --- ORIENTATION OVERLAY --- */
#orientation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 999998; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.orientation-logo {
    height: 60px;
    margin-bottom: 30px;
}

.orientation-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
    animation: rotatePhone 2s infinite ease-in-out;
}

#orientation-overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#orientation-overlay p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
}

@keyframes rotatePhone {
    0%, 10% { transform: rotate(-90deg); }
    50%, 60% { transform: rotate(0deg); }
    100% { transform: rotate(-90deg); }
}

@media screen and (max-width: 950px) and (orientation: landscape) {
    #orientation-overlay {
        display: flex;
    }
    body {
        overflow: hidden;
    }
}

/* --- DESKTOP HOVER EFFECTS ONLY --- */
@media (hover: hover) {
    a:hover { color: var(--accent); }
    .btn-gold:hover { background-color: transparent; color: var(--accent); }
    .nav-list a:hover { color: var(--accent); }
    
    .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .dropdown-menu a:hover { background-color: #1a1a1a; padding-left: 25px; color: var(--accent); }
    
    .scroll-down-arrow:hover { color: var(--accent); opacity: 1; }
    
    .about-video:hover { filter: brightness(1); transform: scale(1.01); }
    .metodo-video:hover { filter: brightness(1); transform: scale(1.01); }
    
    .service-card:hover { border-color: var(--accent); transform: translateY(-10px); }
    
    .contact-item:hover { color: var(--accent-hover); transform: translateX(5px); }
    
    .btt-btn:hover { background-color: var(--accent); color: #000; transform: translateY(-5px); }
    
    .privacy-link:hover { color: var(--text-main); }
    .designer-logo:hover { transform: scale(1.05); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Utilities */
    .desktop-only {
        display: none !important;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .nav-logo {
        height: 50px;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: 0.3s;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-list.active {
        left: 0;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        display: none; 
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: none;
        color: var(--text-muted);
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem; /* Reso più piccolo su mobile */
    }
    
    .hero-text {
        font-size: 1rem;
    }

    /* About & Method */
    .about-container,
    .metodo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-img,
    .metodo-img {
        display: none; 
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr; 
    }

    /* Contact */
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-form-wrapper {
        margin-left: 0;
        margin-top: 40px;
        padding: 30px 20px;
        width: 100%;
    }

    /* Back To Top Mobile */
    .btt-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Footer */
    footer {
        padding-bottom: 50px;
    }

    .designer-logo {
        width: 110px; 
        margin-top: 30px;
    }
}