/* =========================================
   STYLE.CSS - VERSIONE FINALE CON SOCIAL
   ========================================= */
:root {
    --primary-black: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --gold: #C49F57;
    --gold-hover: #a38241;
    --text-light: #f4f4f4;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* UTILITY */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: 600; text-transform: uppercase; cursor: pointer; border: none; transition: 0.3s; text-align: center; }
.btn-gold { background-color: var(--gold); color: #000; }
.btn-gold:hover { background-color: var(--gold-hover); transform: translateY(-2px); }
.btn-full { width: 100%; margin-top: 15px; }

.section-title { font-family: var(--font-heading); color: var(--gold); font-size: 2.5rem; text-align: center; margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background: var(--gold); margin: 15px auto 0; }

.section-dark { padding: 80px 0; background-color: var(--secondary-dark); }
.section-light { padding: 80px 0; background-color: #fff; color: #333; }
.dark-text { color: var(--primary-black); }

/* BANNER GDPR */
.gdpr-container {
    position: fixed; bottom: 0; left: 0; width: 100%; background-color: #000; border-top: 2px solid var(--gold); padding: 20px; z-index: 2147483647; display: flex; justify-content: center; align-items: center; gap: 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.8); pointer-events: auto;
}
.gdpr-container.hidden { display: none !important; }
.gdpr-text p { margin: 0; font-size: 0.9rem; color: #fff; }
.gdpr-text a { color: var(--gold); text-decoration: underline; }
#gdpr-accept { cursor: pointer !important; pointer-events: auto !important; z-index: 2147483648; }
.btn-gold-sm { background: var(--gold); color: #000; border: none; padding: 10px 20px; font-weight: 700; cursor: pointer; border-radius: 4px; white-space: nowrap; }

/* HEADER ANIMATO */
#header {
    background-color: #0a0a0a; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; border-bottom: 1px solid var(--gold); padding: 25px 0; transition: all 0.4s ease;
}
#header.scrolled { padding: 10px 0; background-color: rgba(10, 10, 10, 0.9); backdrop-filter: blur(5px); }

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

.logo img { height: 80px; width: auto; transition: all 0.4s ease; }
#header.scrolled .logo img { height: 55px; }

/* NAVIGAZIONE */
.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav a { font-size: 0.9rem; text-transform: uppercase; font-weight: 600; color: var(--text-light); }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

/* Social Link Header */
.social-link-header {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: 0.3s;
}
.social-link-header:hover { color: var(--gold); transform: scale(1.1); }

/* HERO */
.hero { height: 100vh; background-image: url('images/hero-bg.jpg'); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); }
.hero-text { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { font-family: var(--font-heading); font-size: 3.5rem; color: var(--gold); margin-bottom: 20px; }

/* HERO SMALL */
.hero-small { height: 50vh; min-height: 400px; }
.hero-small h1 { font-size: 3rem; }

/* GRIGLIA MENU SERVIZI */
.services-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.menu-box { background: #f4f4f4; border: 1px solid #ddd; border-radius: 8px; padding: 25px 15px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; height: 100%; cursor: pointer; color: #333; }
.menu-box:hover { background: var(--gold); color: #000; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-color: var(--gold); }
.menu-box h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.menu-box p { font-size: 0.85rem; line-height: 1.4; margin-bottom: 15px; }
.menu-box .arrow-icon { font-size: 0.8rem; margin-top: auto; opacity: 0.5; }

/* DETTAGLI SERVIZI */
.services-list { display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }
.service-card-horizontal { scroll-margin-top: 150px; display: flex; background: #f9f9f9; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid #e0e0e0; min-height: 280px; }
.card-image { flex: 0 0 40%; position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.card-content h3 { font-family: var(--font-heading); color: #000; margin-bottom: 15px; border-left: 4px solid var(--gold); padding-left: 15px; }
.card-actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.back-link { font-size: 0.85rem; text-transform: uppercase; font-weight: 600; color: #666; border-bottom: 1px solid transparent; }
.back-link:hover { color: var(--gold-hover); border-color: var(--gold-hover); }

/* CONTATTI */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 30px; }
.contact-info { flex: 1 1 300px; background: rgba(255,255,255,0.03); border: 1px solid rgba(196, 159, 87, 0.3); padding: 40px; border-radius: 20px; }
.contact-info h3 { color: var(--gold); margin-bottom: 20px; }
.contact-map-container { flex: 2 1 600px; min-height: 500px; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.6); border: 2px solid var(--gold); }

/* PAGINA CANDIDATURA */
.candidatura-wrapper { max-width: 800px; margin: 0 auto; }
.intro-text { text-align: center; margin-bottom: 40px; }
.form-container { background: #f9f9f9; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #ddd; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 5px rgba(196, 159, 87, 0.3); }
.file-upload-group input { padding: 10px; background: #fff; }
.privacy-check { display: flex; align-items: flex-start; gap: 10px; }
.privacy-check input { width: auto; margin-top: 5px; }
.privacy-check label { font-weight: 400; font-size: 0.85rem; }
.privacy-check a { color: var(--gold-hover); text-decoration: underline; }

/* FOOTER */
footer { background-color: #000; padding: 60px 0 30px; text-align: center; border-top: 1px solid var(--gold); color: #fff; }
.footer-logo img { height: 70px; margin: 0 auto 30px; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #aaa; margin: 0 15px; text-transform: uppercase; font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.socket { font-size: 0.8rem; color: #555; line-height: 1.6; }

/* Footer Social */
.footer-social { margin-bottom: 20px; }
.footer-social a { color: #fff; display: inline-block; padding: 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; transition: 0.3s; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

/* MOBILE */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; z-index: 10001; }
.mobile-menu-btn span { display: block; width: 30px; height: 3px; background: var(--gold); margin: 6px 0; }

@media (max-width: 992px) {
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background-color: #0a0a0a; padding: 20px 0; border-bottom: 1px solid var(--gold); display: none; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 15px; border-bottom: 1px solid #222; text-align: center; width: 100%; }
    .mobile-menu-btn { display: block; }
    .services-menu-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-horizontal { flex-direction: column; height: auto; }
    .card-image { width: 100%; height: 250px; }
    .gdpr-container { flex-direction: column; text-align: center; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 500px) {
    .services-menu-grid { grid-template-columns: 1fr; }
}