/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #111111;
    --black-light: #222222;
    --yellow: #ccff00;
    --yellow-dark: #b3e600;
    --yellow-light: #e6ff66;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #777777;
    --gray-dark: #333333;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo span { color: var(--yellow); }

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav a:hover { color: var(--yellow); }
nav a.active { color: var(--yellow); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,17,17,0.8) 0%, rgba(17,17,17,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 255, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ===== SERVIZI ===== */
.servizi {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.progetti .section-tag {
    color: var(--gray-dark);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--black);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.servizio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.servizio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.servizio-icon {
    width: 70px;
    height: 70px;
    background: var(--black);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.servizio-card h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 12px;
    font-weight: 700;
}

.servizio-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== PROGETTI ===== */
.progetti {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.progetti-slides {
    position: absolute;
    inset: 0;
}

.progetti-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.progetti-slide.active { opacity: 1; }

.progetti-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.6) 40%, rgba(17,17,17,0.1) 70%, transparent 100%);
}

.progetti-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 60px;
}

.progetti .section-tag {
    color: var(--yellow);
    margin-bottom: 10px;
}

.progetti-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 30px;
    max-width: 550px;
}

.progetti-slide-info {
    max-width: 500px;
    margin: 0 auto;
}

.progetti-slide-info h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.progetti-slide-info p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.progetti-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.progetti-indicators button {
    width: 40px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.progetti-indicators button.active {
    background: var(--yellow);
    width: 60px;
}

/* ===== NUMERI ===== */
.numeri {
    padding: 80px 0;
    background: var(--black);
    color: var(--white);
}

.numeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.numero-item h3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 5px;
}

.numero-item p {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
    text-align: center;
    color: var(--black);
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 30px;
    transition: var(--transition);
}

.cta-phone:hover { transform: scale(1.05); }

.cta-phone svg {
    width: 40px;
    height: 40px;
    animation: ring 1.5s ease infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(0); }
}

.cta .btn {
    background: var(--black);
    color: var(--yellow);
    font-size: 1.1rem;
    padding: 18px 40px;
}

.cta .btn:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p,
.footer-col a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--yellow); }

.footer-col .footer-logo span { color: var(--yellow); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== STICKY BUTTONS (MOBILE) ===== */
.sticky-buttons {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    flex-direction: column;
    gap: 12px;
}

.sticky-phone,
.sticky-whatsapp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-phone {
    background: var(--yellow);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(204, 255, 0, 0.5);
    animation: pulse-yellow 2s infinite;
}

.sticky-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    animation: pulse-green 2s infinite;
}

.sticky-phone svg,
.sticky-whatsapp svg { width: 28px; height: 28px; }

@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 4px 20px rgba(204, 255, 0, 0.5); }
    50% { box-shadow: 0 4px 40px rgba(204, 255, 0, 0.8); }
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.8); }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.mobile-nav .btn-primary {
    color: var(--black);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: flex; }
    .sticky-buttons { display: flex; }

    .hero-content { align-items: center; text-align: center; }
    .hero-buttons { justify-content: center; }

    .servizi { padding: 60px 0; }
    .progetti { height: 60vh; min-height: 400px; }
    .progetti-content { align-items: center; text-align: center; }
    .numeri { padding: 50px 0; }
    .cta { padding: 60px 0; }

    .btn { padding: 14px 24px; font-size: 0.9rem; }

    .progetti-indicators { gap: 6px; }
    .progetti-indicators button { width: 24px; height: 3px; }
    .progetti-indicators button.active { width: 36px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .servizi-grid { grid-template-columns: repeat(2, 1fr); }
}

