
/* ==============================
   CONFIGURAZIONE GENERALE
============================== */

:root {
    --background: #18181b;
    --background-light: #202024;
    --card: #222228;
    --white: #f8fafc;
    --gray: #a1a1aa;
    --blue: #60a5fa;
    --blue-dark: #2563eb;
    --border: rgba(255,255,255,0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--background);
    color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--blue);
    color: #000;
}


/* ==============================
   NAVBAR
============================== */

.navbar {
    height: 85px;
    width: 100%;
    padding: 0 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(24,24,27,0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--blue);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.desktop-nav a {
    font-size: 13px;
    color: var(--gray);
    transition: 0.3s;
}

.desktop-nav a:hover {
    color: var(--blue);
}

.desktop-nav .nav-contact {
    color: var(--white);
    border: 1px solid var(--blue);
    padding: 11px 20px;
    border-radius: 5px;
}

.desktop-nav .nav-contact:hover {
    background: var(--blue);
    color: #111;
}


/* MENU MOBILE */

.mobile-menu {
    display: none;
}

.mobile-menu summary {
    list-style: none;
    cursor: pointer;
    width: 35px;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    display: block;
    height: 2px;
    background: white;
    margin: 6px 0;
    width: 27px;
}

.mobile-menu nav {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: #202024;
    padding: 20px 8%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu nav a {
    color: var(--white);
    font-size: 15px;
}


/* ==============================
   HERO
============================== */

.hero {
    min-height: 670px;
    padding: 130px 12% 100px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 85% 50%,
            rgba(37,99,235,0.13),
            transparent 40%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--gray);
    margin-bottom: 35px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--blue);
}

.intro {
    color: var(--blue);
    letter-spacing: 4px;
    font-size: 13px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -3px;
}

.hero h1 span:first-child {
    color: var(--white);
}

.blue-dot {
    color: var(--blue);
}

.hero h2 {
    margin-top: 20px;
    font-size: clamp(20px, 3vw, 29px);
    font-weight: 500;
    color: var(--white);
}

.hero h2 .and {
    color: var(--blue);
}

.hero-description {
    max-width: 500px;
    margin-top: 25px;
    line-height: 1.9;
    color: var(--gray);
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary {
    background: var(--blue);
    color: #101827;
}

.btn-primary:hover {
    background: #93c5fd;
    transform: translateY(-3px);
}

.btn-primary span {
    margin-left: 12px;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--white);
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.hero-decoration {
    position: absolute;
    right: 12%;
    top: 25%;
    width: 320px;
    height: 320px;
}

.decoration-circle {
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(96,165,250,0.3);
    border-radius: 50%;
    right: 0;
    top: 0;
    box-shadow:
        0 0 80px rgba(37,99,235,0.1),
        inset 0 0 50px rgba(37,99,235,0.1);
}

.decoration-circle::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(96,165,250,0.3);
    border-radius: 50%;
    top: 44px;
    left: 44px;
}

.decoration-card {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #25252c;
    border: 1px solid var(--border);
    padding: 25px;
    width: 230px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.decoration-card span {
    color: var(--blue);
    font-size: 11px;
}

.decoration-card p {
    margin-top: 8px;
    font-weight: 700;
    font-size: 14px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 12%;
    color: var(--gray);
    font-size: 10px;
    letter-spacing: 2px;
}


/* ==============================
   SEZIONI GENERALI
============================== */

.section {
    padding: 110px 12%;
}

.section-label {
    color: var(--gray);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.section-label span {
    color: var(--blue);
    font-weight: 700;
}

.section h2 {
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section h2 span {
    color: var(--blue);
}


/* ==============================
   DI COSA MI OCCUPO
============================== */

.about {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-content {
    margin-top: 45px;
    max-width: 800px;
    padding-left: 25px;
    border-left: 2px solid var(--blue);
}

.placeholder-text {
    color: var(--gray);
    line-height: 2;
    font-size: 15px;
    margin-bottom: 20px;
}


/* ==============================
   COMPETENZE
============================== */

.skills {
    background: var(--background);
}

.skills-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 55px;
}

.skills-heading p {
    color: var(--gray);
    max-width: 350px;
    font-size: 14px;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.skill-card {
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
    box-shadow: 0 15px 40px rgba(37,99,235,0.1);
}

.skill-card.featured {
    background: linear-gradient(
        145deg,
        #252b39,
        #222228
    );
    border-color: rgba(96,165,250,0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.card-number {
    font-size: 12px;
    color: var(--blue);
    letter-spacing: 2px;
}

.card-icon {
    font-size: 32px;
    color: var(--blue);
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
}

.skill-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
    min-height: 80px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.skill-tags span {
    font-size: 11px;
    color: var(--blue);
    border: 1px solid rgba(96,165,250,0.25);
    background: rgba(96,165,250,0.07);
    padding: 8px 12px;
    border-radius: 4px;
}


/* ==============================
   FOOTER / CONTATTI
============================== */

.footer {
    background: #050505;
    padding: 90px 12% 25px;
    border-top: 1px solid var(--border);
}

.footer-label {
    margin-bottom: 25px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 70px;
}

.footer h2 {
    font-size: clamp(35px, 5vw, 55px);
    letter-spacing: -2px;
}

.footer h2 span {
    color: var(--blue);
}

.footer-top p {
    margin-top: 20px;
    max-width: 450px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.contact-links a {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    transition: 0.3s;
}

.contact-links a:hover {
    color: var(--blue);
}

.contact-links span {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    font-size: 20px;
}

.footer-bottom p,
.back-top {
    font-size: 11px;
    color: var(--gray);
}

.back-top:hover {
    color: var(--blue);
}


/* ==============================
   ANIMAZIONI
============================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeUp 0.9s ease forwards;
}

.decoration-circle {
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}


/* ==============================
   RESPONSIVE TABLET
============================== */

@media (max-width: 1000px) {

    .hero-decoration {
        right: 5%;
        opacity: 0.5;
    }

    .section {
        padding: 90px 8%;
    }

    .hero {
        padding-left: 8%;
        padding-right: 8%;
    }

    .navbar {
        padding: 0 7%;
    }

    .scroll-indicator {
        left: 8%;
    }

}


/* ==============================
   RESPONSIVE SMARTPHONE
============================== */

@media (max-width: 700px) {

    .navbar {
        height: 70px;
        padding: 0 6%;
    }

    .logo {
        font-size: 21px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu nav {
        top: 70px;
    }

    .hero {
        min-height: 650px;
        padding: 100px 7% 110px;
    }

    .hero h1 {
        font-size: clamp(40px, 11vw, 62px);
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-decoration {
        right: -100px;
        top: 42%;
        opacity: 0.15;
        transform: scale(0.8);
    }

    .status {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .scroll-indicator {
        left: 7%;
        bottom: 35px;
    }

    .section {
        padding: 80px 7%;
    }

    .section h2 {
        font-size: 36px;
    }

    .skills-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 35px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 28px;
    }

    .skill-card p {
        min-height: auto;
    }

    .footer {
        padding: 75px 7% 25px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 45px;
    }

    .contact-links {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

}


/* ==============================
   ACCESSIBILITA'
============================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* ==============================
   I MIEI SERVIZI
============================== */

.services {
    background: #202024;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 55px;
}

.services-heading h2 {
    max-width: 550px;
}

.services-heading p {
    color: var(--gray);
    max-width: 350px;
    font-size: 14px;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--blue);
    box-shadow: 0 15px 40px rgba(37,99,235,0.12);
}

.service-highlight {
    border-color: rgba(96,165,250,0.4);
    background: linear-gradient(145deg, #252b39, #18181b);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(96,165,250,0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 28px;
}

.service-category {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-card li {
    color: #d4d4d8;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.service-card li::before {
    content: "✓";
    color: var(--blue);
    margin-right: 12px;
    font-weight: bold;
}

.service-bottom {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.service-bottom span {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gray);
}

.service-bottom strong {
    color: var(--blue);
    font-size: 15px;
}


/* RESPONSIVE SERVIZI */

@media (max-width: 700px) {

    .services-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 27px;
    }

}
