/* ============================================================
   home.css — Bortolutti Digital Ltd
   Versione finale — fedele al mockup
   ============================================================ */

/* ===== HERO ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0;
}

/* Sfondo scuro — sostituire con url('/assets/img/hero-bg.jpg') quando disponibile */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Overlay scuro: testo leggibile a sinistra, foto visibile a destra */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.75) 40%,
        rgba(0,0,0,0.20) 70%,
        rgba(0,0,0,0.10) 100%
    );
}

.hero-container {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-w);
    margin: 0;
    padding-top: calc(var(--nav-h) + 6rem);
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-text {
    max-width: 520px;
    text-align: left;
    margin: 0;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

/* Titolo hero: leggero (300), enorme, tutto bianco */
.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
}

.hero-title-em {
    color: #f0f0f0;
    font-style: normal;
}

.hero-lead {
    font-size: 14px;
    color: #888888;
    line-height: 1.75;
    max-width: 380px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

/* BOTTONE 1: "SCOPRI I PROGETTI" — sfondo oro pieno, testo nero
   Nel mockup è oro pieno con testo scuro */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: #f0f0f0;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-height: 44px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-hero-primary:hover {
    border-color: #f0f0f0;
    background: rgba(255,255,255,0.04);
}

/* BOTTONE 2: "PARLA CON NOI →" — ghost, bordo bianco sottile
   Nel mockup ha solo bordo + testo bianco, NO sfondo */
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.25rem;
    background: transparent;
    color: #aaaaaa;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    min-height: 44px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-hero-ghost:hover {
    color: #f0f0f0;
}

/* Box placeholder destra — solo desktop */
.hero-visual {
    display: none;
}

.hero-visual-box {
    width: 100%;
    aspect-ratio: 16/10;
    background: #131313;
    border-radius: 8px;
    border: 0.5px solid rgba(255,255,255,0.06);
}

/* ===== SERVIZI ===== */
.services-section {
    padding: 5rem 0 5.5rem;
    background: #ebebea;
}

/* Header sezione: due colonne */
.services-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Titolo servizi: font normale, nero */
.services-title {
    font-family: var(--font-sans);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.025em;
    color: #111;
    line-height: 1.1;
}

/* Sottotitolo a destra: oro/dorato come nel mockup */
.services-subtitle {
    font-size: 13px;
    color: #c9a961;
    line-height: 1.8;
}

/* Grid 4 card su sfondo bianco con bordi sottili */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 0.5px solid #d0d0cc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.service-card {
    padding: 2.25rem 2rem;
    border-bottom: 0.5px solid #e4e4e0;
    border-right: 0.5px solid #e4e4e0;
    background: #fff;
}

.service-card:nth-child(2n) {
    border-right: none;
}

.service-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.service-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 1.5rem;
    color: #c9a961;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

/* Titolo card: grigio scuro come nel mockup */
.service-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

/* Descrizione: grigio medio */
.service-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* Link: SCOPRI DI PIÙ → grigio scuro */
.service-card-link {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card-link:hover {
    color: #c9a961;
}

/* ===== PROGETTI ===== */
.projects-section {
    padding: 4rem 0 5.5rem;
    background: #e4e4e2;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-section .section-eyebrow {
    color: #c9a961;
    margin-bottom: 0;
}

.projects-header-link {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #555;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.projects-header-link:hover { color: #c9a961; }

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Card progetto: sfondo bianco, bordo sottile */
.project-card {
    background: #fff;
    border: 0.5px solid #d0d0cc;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    border-color: rgba(201,169,97,0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.project-card-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}

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

.project-card:hover .project-card-cover img {
    transform: scale(1.04);
}

.project-card-placeholder {
    width: 100%;
    height: 100%;
    background: #0f0f0f;
}

.project-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

/* Titolo progetto: font normale, nero, peso medio */
.project-card-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.project-card-title em {
    font-style: normal;
    color: #111;
}

/* Descrizione: grigio medio-chiaro come nel mockup */
.project-card-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.project-card-link {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-card-link:hover { color: #c9a961; }

/* ===== CTA "Parliamone." ===== */
.cta-section {
    padding: 5rem 0;
    background: #0d0d0d;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cta-text .section-eyebrow {
    color: #555;
    margin-bottom: 0.75rem;
}

/* "Parliamone." — grande, leggero, bianco */
.cta-title {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #f0f0f0;
    line-height: 1.02;
    margin-bottom: 0.5rem;
}

.cta-sub {
    font-size: 13px;
    color: #666;
}

/* BOTTONE CTA: ghost con bordo bianco, testo bianco — come nel mockup
   NON sfondo bianco pieno */
.btn-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 1rem 2rem;
    background: transparent;
    color: #f0f0f0;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    min-height: 48px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-cta:hover {
    border-color: #f0f0f0;
    background: rgba(255,255,255,0.05);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (min-width: 480px) {
    .hero-actions { flex-wrap: nowrap; }
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .service-card {
        border-bottom: none;
        border-right: 0.5px solid #e4e4e0;
    }
    .service-card:nth-child(2n) { border-right: none; }

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

    .cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .btn-cta { align-self: center; }

    .services-header {
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        padding-top: calc(var(--nav-h) + 4rem);
        padding-bottom: 4rem;
        align-items: flex-start;
    }

    .hero-visual { display: none; }

    .services-grid { grid-template-columns: repeat(4, 1fr); }

    .service-card { border-right: 0.5px solid #e4e4e0; border-bottom: none; }
    .service-card:nth-child(2n) { border-right: 0.5px solid #e4e4e0; }
    .service-card:last-child { border-right: none; }

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

}

/* Card più compatte quando sono 2 per riga su schermi stretti */
@media (max-width: 480px) {
    .service-card { padding: 1.25rem 1.1rem; }
    .service-icon { width: 22px; height: 22px; margin-bottom: 1rem; }
    .service-card-title { font-size: 12.5px; }
    .service-card-desc { font-size: 11.5px; line-height: 1.55; margin-bottom: 1rem; }
    .service-card-link { font-size: 9px; }
}

/* Il laptop nella foto hero è circa al 65% da sinistra: su mobile "cover"
   con position:right mostrava solo il bordo destro (la roccia), non il laptop. */
@media (max-width: 1023px) {
    .hero-bg { background-position: 65% center; }
}

/* Progetti in evidenza: 2 per riga su mobile */
@media (max-width: 640px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .project-card-body { padding: 1rem 1rem 1.1rem; }
    .project-card-title { font-size: 0.85rem; }
    .project-card-desc { font-size: 10.5px; margin-bottom: 0.85rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .project-card-link { font-size: 9px; }
}
