@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #0a0a1f;
    --light: #ffffff;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--light);
    overflow-x: hidden;
    background: var(--dark);
}

/* Optimized Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a1f 0%, #16213e 50%, #0a0a1f 100%);
    background-size: 200% 200%;
    will-change: background-position;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.12;
    will-change: transform;
    animation: float 25s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 15%;
    right: 15%;
    animation-delay: -12.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 31, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 10, 31, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.chakra-petch {
    font-family: "Chakra Petch", sans-serif;
    font-style: italic;
    font-weight: 600;
}

.roboto-condensed {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

.brand {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.8));
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
}

.hero h1 {
    font-family: "Orbitron", sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg,
            var(--primary),
            var(--accent),
            var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.hero .cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.hero .cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s;
}

.hero .cta:hover::before {
    left: 100%;
}

.hero .cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scrollDot {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 6rem 5%;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Chi sono */
#chi-sono {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    margin-top: 2rem;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    width: 500px;
    max-width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.2),
            rgba(118, 75, 162, 0.2));
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-family: "Orbitron", sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* I locali */
#locali {
    background: rgba(255, 255, 255, 0.02);
}

.locali-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.locale-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    border-radius: 30px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.locale-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(102, 126, 234, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.locale-card:hover::before {
    left: 100%;
}

.locale-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.4);
}

.locale-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.3),
            rgba(118, 75, 162, 0.3));
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.locale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.locale-card:hover .locale-image img {
    transform: scale(1.1);
}

.locale-content {
    padding: 2.5rem;
}

.locale-card h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.locale-card .location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.locale-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.locale-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Servizi Section */
#servizi {
    background: rgba(0, 0, 0, 0.2);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.servizio-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.servizio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

.servizio-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

.servizio-card h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.servizio-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Contattami */
#contattami {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.1) 0%,
            rgba(118, 75, 162, 0.1) 100%);
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.contact-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.8rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.6);
}

.contact-btn svg {
    width: 35px;
    height: 35px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.info-item h4 {
    font-family: "Orbitron", sans-serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 31, 0.95);
    border-top: 2px solid rgba(138, 43, 226, 0.3);
    font-size: 1.1rem;
}

footer span {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

footer a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

footer a:hover {
    color: var(--accent);
    transition: 0.3s;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        width: 400px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .brand {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    section {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .locali-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.1rem;
    }

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

@media (max-width: 480px) {
    .brand {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-container {
        gap: 1.5rem;
    }

    .about-image {
        width: 280px;
    }

    .locale-image {
        height: 200px;
        font-size: 4rem;
    }
}