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

:root {
    --primary-color: #ff0000;
    --secondary-color: #ff0000;
    --accent-color: #f0000f;
    --dark-bg: #000000;
    --dark-text: #FFFFFF;
    --light-text: #ffffff;
    --border-color: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    --nav-bg-alpha: 0.2;
    background: rgba(0, 0, 0, var(--nav-bg-alpha));
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

/*foto bakgroud iniziale*/
.hero-background {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: calc(100% + 70px);
    background: url('img/console.jpeg') center/cover no-repeat;
    filter: brightness(1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.hero-background.visible {
    opacity: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: slideUp 1s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero p {
    font-size: 32px;
    color: var(--light-text);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0000, #ff0000);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: unset;
}

.btn-primary:hover {
    background: var(--secondary-color);

    color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.service-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    color: white;
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 100px 100px 100px 100px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.05));
}

.about h2 {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 720px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-photo {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.8;
    align-content: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat p {
    color: var(--light-text);
    margin: 0;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(131, 56, 236, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    font-size: 150px;
    color: rgba(0, 0, 0, 0.3);
}

/* About photo styling */
.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-photo {
    width: 100%;
    max-width: 420px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.02);
}

.portfolio h2 {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.portfolio-item {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(131, 56, 236, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
}

.portfolio-image {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.portfolio-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.portfolio-item p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(58, 134, 255, 0.05));
}

.services h2 {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}

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

.services-alt .services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-alt .service-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.08), rgba(131, 56, 236, 0.08));
    scroll-margin-top: 90px;
}

.services-alt .service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.services-alt .service-media {
    flex: 1 1 420px;
    min-height: 280px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.services-alt .service-info {
    flex: 1 1 320px;
    text-align: left;
}

.services-alt .service-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.service-card {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(131, 56, 236, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(131, 56, 236, 0.2));
}

.service-card i {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover i {
    color: var(--primary-color);
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.service-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

/* Aperitivi Card with Background Image */
.service-card.aperitivi {
    padding: 0;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.aperitivi h3 {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Compleanni Card with Background Image */
.service-card.compleanni {
    padding: 0;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.compleanni h3 {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Lauree Card with Background Image */
.service-card.lauree {
    padding: 0;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card.lauree h3 {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin: 0;
    position: relative;
    z-index: 2;
}   

/* Lauree Card with Background Image */
.service-card.eventi-aziendali {
    padding: 0;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.eventi-aziendali h3 {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin: 0;
    position: relative;
    z-index: 2;
}   

/* Discoteche Card with Background Image */
/*.service-card.discoteche {
    padding: 0;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.discoteche h3 {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin: 0;
    position: relative;
    z-index: 2;
}*/



/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(131, 56, 236, 0.05));
}

.contact h2 {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 0, 110, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 30px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--dark-text);
}

.contact-item p {
    color: var(--light-text);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--dark-text);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--light-text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 0, 110, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.2);
}

/* Small add-event inline form */
.add-event {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.add-event input[type="text"],
.add-event input[type="date"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.03);
    color: var(--dark-text);
    font-family: inherit;
}
.add-event input[type="date"] {
    width: 160px;
}
.add-event button.btn-secondary {
    padding: 8px 12px;
    align-self: center;
}

/* Social Section */
.social {
    padding: 60px 0;
    background: rgba(131, 56, 236, 0.05);
    text-align: center;
}

.social h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--dark-text);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 0, 110, 0.4);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--light-text);
}

.footer p {
    margin: 10px 0;
}

.footer i {
    color: var(--primary-color);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        min-width: 220px;
        padding: 14px;
        gap: 14px;
        background: rgba(20, 20, 20, 0.98);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero p {
        font-size: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        height: 300px;
        font-size: 100px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .about h2,
    .portfolio h2,
    .services h2,
    .contact h2 {
        font-size: 32px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        min-height: 240px;
    }

    .services-alt .service-row,
    .services-alt .service-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 16px;
    }

    .services-alt .service-media {
        width: 100%;
        min-height: 220px;
        flex: none;
    }

    .services-alt .service-info {
        text-align: center;
    }

    .service-actions {
        justify-content: center;
    }

    .services-alt .contact-form {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .services-alt .service-row {
        padding: 14px;
    }

    .services-alt .service-media {
        min-height: 180px;
    }

    .services-alt .service-info h3 {
        font-size: 24px;
    }
}
