/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   GENERAL
========================= */

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(10, 10, 10, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 0.9rem;
    color: #b7b7b7;

    transition: color 0.2s ease;
}

.nav a:hover {
    color: #ffffff;
}

.nav-cta {
    padding: 0.7rem 1.2rem;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;

    font-size: 0.9rem;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-cta:hover {
    background: #ffffff;
    color: #0a0a0a;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 80px;

    overflow: hidden;
}

.hero-content {
    max-width: 950px;
}

.hero-label {
    margin-bottom: 1.5rem;

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;

    color: #c8a96b;
}

.hero h1 {
    max-width: 950px;

    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;

    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;

    color: #8d8d8d;
}

.hero-description {
    max-width: 620px;

    margin-top: 2rem;

    font-size: 1.1rem;

    color: #a5a5a5;
}

.hero-actions {
    display: flex;
    gap: 1rem;

    margin-top: 2.5rem;
}


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 1.5rem;

    border-radius: 100px;

    font-size: 0.95rem;
    font-weight: 500;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #ffffff;
    color: #0a0a0a;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);

    color: #d0d0d0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}


/* =========================
   SCROLL INDICATOR
========================= */

.hero-scroll {
    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    font-size: 0.75rem;

    color: #666666;
}

/* =========================
   SECTIONS
========================= */

.section-label {
    margin-bottom: 1.5rem;

    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.18em;

    color: #c8a96b;
}

.section-header {
    max-width: 800px;

    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1;

    letter-spacing: -0.045em;
}

.section-header h2 span {
    display: block;

    color: #949494;
}

.section-description {
    max-width: 600px;

    margin-top: 1.5rem;

    color: #999999;

    font-size: 1rem;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 9rem 0;

    background: #0d0d0d;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;
}


/* SERVICE CARD */

.service-card {
    position: relative;

    min-height: 420px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 2rem;

    background: #121212;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 24px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.service-card-large {
    grid-column: span 2;

    min-height: 480px;
}


/* CARD HOVER */

.service-card:hover {
    transform: translateY(-5px);

    background: #151515;

    border-color: rgba(200, 169, 107, 0.35);
}


/* NUMBER */

.service-number {
    align-self: flex-end;

    font-size: 0.75rem;

    color: #555555;
}


/* CONTENT */

.service-content {
    max-width: 520px;
}

.service-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 2rem;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    color: #c8a96b;

    font-size: 1.1rem;
}

.service-content h3 {
    margin-bottom: 1rem;

    font-size: 2rem;

    letter-spacing: -0.03em;
}

.service-content p {
    max-width: 450px;

    color: #8d8d8d;

    line-height: 1.7;
}


/* SERVICE LINK */

.service-link {
    display: flex;
    align-items: center;

    gap: 0.5rem;

    width: fit-content;

    margin-top: 2rem;

    color: #cccccc;

    font-size: 0.9rem;
}

.service-link span {
    transition: transform 0.2s ease;
}

.service-link:hover span {
    transform: translateX(5px);
}

/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 18px;
    height: 1px;

    margin: 4px auto;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;

    top: 70px;
    left: 0;

    width: 100%;

    padding: 2rem 5%;

    background: rgba(10, 10, 10, 0.98);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

.mobile-nav a {
    font-size: 1.4rem;

    color: #ffffff;
}


/* HAMBURGER ACTIVE */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* =========================
   PROJECTS
========================= */

.projects {
    padding: 9rem 0;

    background: #090909;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1.5rem;
}

.project-card {
    cursor: pointer;
}

.project-card:first-child {
    grid-column: span 2;
}

.project-preview {
    position: relative;

    min-height: 420px;
    aspect-ratio: 16 / 9;

    background: #121212;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;

    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    display: block;

    object-fit: cover;
    object-position: top center;

    transition:
        transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.4s ease;
}

.project-preview-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.project-preview-overlay span {
    padding: 0.85rem 1.3rem;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 100px;

    background: rgba(10, 10, 10, 0.35);

    color: #ffffff;

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.15em;

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    transform: translateY(8px);

    transition: transform 0.3s ease;
}

.project-card:hover .project-preview img {
    transform: scale(1.035);

    filter: brightness(0.65);
}

.project-card:hover .project-preview-overlay {
    opacity: 1;
}

.project-card:hover .project-preview-overlay span {
    transform: translateY(0);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.4rem 0.5rem;
}

.project-category {
    margin-bottom: 0.4rem;

    font-size: 0.7rem;

    letter-spacing: 0.15em;

    color: #c8a96b;
}

.project-info h3 {
    font-size: 1.4rem;
}

.project-arrow {
    font-size: 1.5rem;

    color: #777777;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.project-card:hover .project-arrow {
    transform: translate(3px, -3px);

    color: #ffffff;
}

/* =========================
   ABOUT
========================= */

.about {
    padding: 9rem 0;
    background: #0d0d0d;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-left h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.about-left h2 span {
    display: block;
    color: #949494;
}

.about-right>p {
    margin-bottom: 1.5rem;
    color: #a0a0a0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
}

.about-stats div {
    padding: 1.3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-stats strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.about-stats span {
    color: #777777;
    font-size: 0.9rem;
}

/* =========================
   CTA
========================= */

.cta-section {
    padding: 4rem 0 9rem;
    background: #0d0d0d;
}

.cta-box {
    position: relative;
    padding: 5rem;
    border-radius: 30px;
    overflow: hidden;

    background:
        radial-gradient(circle at 80% 20%,
            rgba(200, 169, 107, 0.16),
            transparent 35%),
        #141414;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-box h2 {
    max-width: 850px;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.cta-box h2 span {
    display: block;
    color: #949494;
}

.cta-box p:not(.section-label) {
    max-width: 620px;
    margin: 2rem 0;
    color: #999999;
}

/* =========================
   CONTACT
========================= */

.contact {
    padding: 9rem 0;
    background: #090909;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.contact h2 span {
    display: block;
    color: #949494;
}

.contact-links {
    display: flex;
    flex-direction: column;
}

.contact-links a {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 1rem;

    padding: 1.5rem 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    transition: padding-left 0.25s ease;
}

.contact-links a:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-links a:hover {
    padding-left: 8px;
}

.contact-links span {
    color: #777777;
    font-size: 0.85rem;
}

.contact-links strong {
    font-weight: 500;
}

.footer {
    padding: 2rem 0;

    background: #090909;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;

    color: #555555;

    font-size: 0.8rem;
}

/* =========================================
   LIGHTHOUSE ACCESSIBILITY - CONTRAST
========================================= */

/* Hero - indicatore scroll */
.hero-scroll {
    color: #9a9a9a;
}

/* Services - numerazione 01 / 02 / 03 */
.service-number {
    color: #9a9a9a;
}

/* About - testo secondario delle statistiche */
.about-stats span {
    color: #9a9a9a;
}

/* Contact - parti secondarie */
.contact-links span {
    color: #9a9a9a;
}

/* Footer */
.footer-content {
    color: #9a9a9a;
}