/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    transition: all 0.25s ease;
}

/* VARIABLES */
:root {
    --bg-color: #001;
    --second-bg-color: #112;
    --text-color: #ffffff;
    --muted-text: #cfcfcf;
    --main-color: #0c8cd6;
}

/* BASE */
html {
    font-size: 62.5%;
}

body {
    background: radial-gradient(circle at top, #0a0a1a, var(--bg-color));
    color: var(--text-color);
    font-size: 1.6rem;
    padding-top: 80px;
    overflow-x: hidden;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;

    transition: background 0.3s ease;
}

/* LOGO */
.logo {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(#0c8cd6, #ffed00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

/* NAVBAR */
.navbar {
    display: flex;
    gap: 3rem;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    transition: 0.3s;
}

.navbar a:hover {
    color: var(--main-color);
}

#menu-icon {
    display: none;
    font-size: 3rem;
    cursor: pointer;
}

/* SECTIONS */
section {
    padding: 6rem 9%;
}

/* HOME */
.home {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

/* H1 */
.home-content h1 {
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

/* H2 */
.home-content h2 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

/* INTRO */
.home-content p.intro {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--muted-text);
    max-width: 700px;
}

/* LINK */
a {
    color: #0c8cd6;
}

.custom-link {
    text-decoration: none;
    color: #007BFF;
    font-weight: 500;
    transition: 0.3s ease;
}

.custom-link:hover {
    color: #0056b3;
    opacity: 0.8;
}

/* BUTTONS */
.btn-category {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.2rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: 0.25s;
}

.btn:hover {
    box-shadow: 0 0 12px var(--main-color);
    transform: translateY(-2px);
}

.btn.primary {
    background: #3a11de;
    color: #fff;
}

/* PORTFOLIO */
.portfolio {
    background: var(--bg-color);
}

.heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

.status-note {
    margin: 1.5rem auto 3.5rem;
    font-size: 1.8rem;
    text-align: center;
    color: #ffed00;
    font-style: italic;
    max-width: 600px;
    padding: 0.8rem 1rem;
    border-left: 2px solid #0056b3;
}
.conteiner-scorr {
    color: #ffed00;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.scorr-text {
    display: inline-block;
    padding-left: 55%;  
    animation: scorri 5s linear infinite;
}

@keyframes scorri {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-42%);
    }
}
/* .portfolio-content {
    display: grid;
    grid-template-columns: repeat(3,320px); 
    /* grid-template-columns: repeat(3,1fr); 
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
} */
 .portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 0 auto ;
    padding: 0 1.5rem;
}


/* TITOLI E TESTO INTRO */
.portfolio h1 {
    text-align: center;
    font-size: clamp(1.8rem, 2vw, 5.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.portfolio .intro {
    text-align: center;
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--muted-text);
    max-width: 700px;
    margin: 0 auto 6rem auto;
}

/* CARD */
.row {
    display: flex;
    flex-direction: column;
    background: var(--second-bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
}
.row p {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--muted-text);
}

.row:hover {
    transform: translateY(-4px);
    border: 1px solid var(--main-color);
}

.row img {
    width: 100%;
    height: 220px;
    /* aspect-ratio: 5/3; */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.row:hover img {
    transform: scale(1.05);
}

.row h4 {
    text-align: center;
    font-size: 1.8rem;
}

/* CTA */
.cta {
    width: 100%;
    text-align: center;
    margin: 6rem auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* LEGAL PAGE */
.legal-page {
    max-width: 900px;
    margin: 80px auto;
    padding: 20px;
    line-height: 1.7;
    font-size: 1.6rem;
    color: #eaeaea;
}

.legal-page h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.legal-page h2 {
    margin-top: 30px;
    font-size: 2rem;
}

.legal-page p {
    margin-bottom: 15px;
}

.legal-page ul {
    margin-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 3rem 0;
}

.footer .social {
    margin-bottom: 2rem;
}

.footer .social a {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    margin: 0 1rem;
    color: var(--main-color);
    transition: 0.3s;
}

.footer .social a:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.footer .copyright {
    font-size: 1.4rem;
}
.footer .copyright a{
    text-decoration: none ;
}
/* RESPONSIVE */
@media (max-width: 768px) {

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        width: 220px;
        transition: 0.3s;
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        padding: 1.5rem;
    }

    .home-content h1 {
        font-size: clamp(26px, 6vw, 48px);
    }

    .home-content p.intro {
        font-size: 1.6rem;
    }
}