/* ============================================================
   pages.css — Bortolutti Digital Ltd
   Stile condiviso per tutte le pagine interne
   Stesso look della home: nero, oro, tipografia identica
   ============================================================ */

/* ===== PAGE HERO (intestazione pagina) ===== */
.page-hero {
    background: #0a0a0a;
    padding-top: calc(var(--nav-h) + 5rem);
    padding-bottom: 4rem;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
}

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

.page-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #f0f0f0;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.page-title em {
    font-style: italic;
    color: var(--gold);
}

.page-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 480px;
    line-height: 1.75;
}

/* ===== SEZIONE CONTENUTO (sfondo nero) ===== */
.page-section {
    background: #0a0a0a;
    padding: 5rem 0;
}

.page-section--alt {
    background: #0f0f0f;
    padding: 5rem 0;
    border-top: 0.5px solid rgba(255,255,255,0.06);
}

/* ===== GRID PROGETTI (pagina progetti) ===== */
.page-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Card progetto — stile scuro per pagine interne */
.page-project-card {
    background: #111;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-project-card:hover {
    border-color: rgba(201,169,97,0.3);
    transform: translateY(-2px);
}

.page-project-card-cover {
    aspect-ratio: 16/9;
    background: #0d0d0d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.page-project-card-cover svg {
    width: 32px;
    height: 32px;
    stroke: #333;
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
}

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

.page-project-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(201,169,97,0.1);
    border: 0.5px solid rgba(201,169,97,0.25);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.page-project-badge--status {
    background: rgba(94,229,155,0.08);
    border-color: rgba(94,229,155,0.2);
    color: #5ee59b;
}

.page-project-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.page-project-title em {
    font-style: italic;
    color: var(--gold);
}

.page-project-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.page-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.page-project-link:hover { color: var(--gold); }

/* ===== WIP CARDS ===== */
.page-wip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.page-wip-card {
    background: #111;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 1.75rem;
    transition: border-color 0.2s ease;
}

.page-wip-card:hover {
    border-color: rgba(201,169,97,0.2);
}

.page-wip-title {
    font-size: 15px;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

.page-wip-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.page-wip-progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #555;
    margin-bottom: 0.4rem;
}

.page-wip-bar-bg {
    height: 1.5px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}

.page-wip-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #e8c97a);
    border-radius: 99px;
    transition: width 0.8s ease;
}

/* ===== CONTATTI ===== */
.page-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.page-contact-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.page-contact-info p,
.page-contact-info address {
    font-size: 14px;
    color: #888;
    line-height: 1.85;
    font-style: normal;
}

.page-contact-info a {
    color: var(--gold);
    text-decoration: none;
    font-size: 15px;
}

/* Form contatti stile dark */
.page-form { display: grid; gap: 1.25rem; }

.page-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
}

.page-field input,
.page-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #111;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #f0f0f0;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 44px;
    -webkit-appearance: none;
}

.page-field input:focus,
.page-field textarea:focus {
    border-color: rgba(201,169,97,0.4);
}

.page-field input::placeholder,
.page-field textarea::placeholder { color: #333; }

.page-field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.65;
}

.page-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.75rem;
    background: var(--gold);
    color: #0a0a0a;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.2s ease;
}

.page-form-submit:hover { background: #e8c97a; }

.page-form-feedback {
    padding: 0.875rem 1rem;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.page-form-feedback.success {
    background: rgba(94,229,155,0.08);
    border: 0.5px solid rgba(94,229,155,0.2);
    color: #5ee59b;
}

.page-form-feedback.error {
    background: rgba(231,76,60,0.08);
    border: 0.5px solid rgba(231,76,60,0.2);
    color: #e74c3c;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .page-projects-grid { grid-template-columns: repeat(2, 1fr); }
    .page-wip-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .page-projects-grid   { grid-template-columns: repeat(3, 1fr); }
    .page-wip-grid        { grid-template-columns: repeat(3, 1fr); }
    .page-contact-grid    { grid-template-columns: 1fr 380px; gap: 6rem; }
}

/* ================================================================
   STILI PAGINA PROGETTI — pg-* 
   Dark version, coerente con home
   ================================================================ */

.pg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Card progetto dark */
.pg-card {
    background: #111111;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.pg-card:hover {
    border-color: rgba(201,169,97,0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Cover 16/9 */
.pg-card-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0d0d0d;
    position: relative;
}

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

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

.pg-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
}

.pg-card-placeholder svg {
    width: 40px;
    height: 40px;
}

/* Body */
.pg-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Badges */
.pg-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pg-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(201,169,97,0.08);
    border: 0.5px solid rgba(201,169,97,0.22);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

/* Titolo card — stesso stile home */
.pg-card-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.pg-card-title em {
    font-style: italic;
    color: var(--gold);
}

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

/* Footer card */
.pg-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.pg-card-link:hover { color: var(--gold); }

/* Status badge */
.pg-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pg-status--dev {
    background: rgba(201,169,97,0.08);
    border: 0.5px solid rgba(201,169,97,0.22);
    color: var(--gold);
}

.pg-status--live {
    background: rgba(94,229,155,0.08);
    border: 0.5px solid rgba(94,229,155,0.22);
    color: #5ee59b;
}

/* ===== WIP ===== */
.pg-wip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.pg-wip-card {
    background: #111;
    border: 0.5px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 1.75rem 1.75rem 1.5rem;
    transition: border-color 0.2s ease;
}

.pg-wip-card:hover {
    border-color: rgba(201,169,97,0.2);
}

.pg-wip-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pg-wip-title {
    font-size: 15px;
    font-weight: 500;
    color: #f0f0f0;
}

.pg-wip-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.pg-progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #444;
    margin-bottom: 0.4rem;
}

.pg-progress-bg {
    height: 1.5px;
    background: rgba(255,255,255,0.07);
    border-radius: 99px;
    overflow: hidden;
}

.pg-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #e8c97a);
    border-radius: 99px;
    transition: width 0.8s ease;
}

/* CTA bottone */
.pg-cta-btn {
    display: inline-flex;
    align-items: center;
    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.3);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
    min-height: 48px;
    white-space: nowrap;
}

.pg-cta-btn:hover {
    border-color: #f0f0f0;
    color: #f0f0f0;
}

/* ===== RESPONSIVE PROGETTI ===== */
@media (min-width: 768px) {
    .pg-grid     { grid-template-columns: repeat(2, 1fr); }
    .pg-wip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .pg-grid     { grid-template-columns: repeat(3, 1fr); }
    .pg-wip-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   RITMO CHIARO/SCURO — stesse sezioni chiare della home
   Applicato a progetti.php e contatti.php per uniformare lo stile
   ================================================================ */

/* Sezione chiara generica (stesso beige/grigio della home) */
.pg-section-light {
    background: #e4e4e2;
    padding: 4rem 0 5.5rem;
}

/* Card progetto — versione chiara, stessa struttura di .pg-card
   ma colori identici a .project-card della home */
.pg-section-light .pg-card {
    background: #fff;
    border: 0.5px solid #d0d0cc;
    box-shadow: none;
}

.pg-section-light .pg-card:hover {
    border-color: rgba(201,169,97,0.35);
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.pg-section-light .pg-card-cover,
.pg-section-light .pg-card-placeholder {
    background: #111;
}

.pg-section-light .pg-card-title {
    color: #111;
}

.pg-section-light .pg-card-desc {
    color: #777;
}

.pg-section-light .pg-card-link {
    color: #333;
}

.pg-section-light .pg-card-link:hover {
    color: var(--gold);
}

.pg-section-light .page-eyebrow,
.pg-section-light .section-eyebrow {
    color: var(--gold);
}

.pg-section-light .page-title,
.pg-section-light h2 {
    color: #111;
}

/* ===== SEZIONE CHIARA — form contatti ===== */
.page-section--light {
    background: #ebebea;
    padding: 5rem 0;
}

.page-section--light .page-contact-label {
    color: var(--gold);
}

.page-section--light .page-contact-info p,
.page-section--light .page-contact-info address {
    color: #555;
}

.page-section--light .page-contact-info a {
    color: var(--gold);
}

.page-section--light .page-field label {
    color: #777;
}

.page-section--light .page-field input,
.page-section--light .page-field textarea {
    background: #fff;
    border: 0.5px solid #d0d0cc;
    color: #111;
}

.page-section--light .page-field input::placeholder,
.page-section--light .page-field textarea::placeholder {
    color: #aaa;
}

.page-section--light .page-field input:focus,
.page-section--light .page-field textarea:focus {
    border-color: rgba(201,169,97,0.5);
}

/* ===== PAGINE LEGALI ===== */
.legal-body {
    max-width: 720px;
}

.legal-body h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: -0.01em;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
    font-size: 14px;
    color: #888;
    line-height: 1.85;
    margin-bottom: 0.5rem;
}

.legal-body ul {
    list-style: none;
    margin: 0.75rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-body ul li {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
}

.legal-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 12px;
}

.legal-body a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 0.5px solid rgba(201,169,97,0.3);
    transition: border-color 0.2s ease;
}

.legal-body a:hover { border-color: var(--gold); }

.legal-body code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    color: #c0c0c0;
}

.legal-body strong { color: #c0c0c0; font-weight: 500; }

/* Variante chiara — coerente col ritmo chiaro/scuro della home */
.page-section--light .legal-body h2 {
    color: #111;
    border-bottom-color: rgba(0,0,0,0.08);
}
.page-section--light .legal-body p,
.page-section--light .legal-body ul li {
    color: #555;
}
.page-section--light .legal-body strong { color: #333; }
.page-section--light .legal-body code {
    background: rgba(0,0,0,0.06);
    color: #333;
}
/* ===== Card più compatte quando pg-grid è a 2 colonne su mobile ===== */
@media (max-width: 640px) {
    .pg-card-body { padding: 1rem; }
    .pg-card-title { font-size: 0.95rem; margin-bottom: 0.4rem; }
    .pg-card-desc { font-size: 11.5px; line-height: 1.55; margin-bottom: 1rem; }
    .pg-badge { font-size: 8px; padding: 2px 8px; }
    .pg-card-link { font-size: 9px; }
    .pg-card-footer { padding-top: 0.75rem; gap: 0.5rem; }
}

.page-section--light .legal-body a {
    border-bottom-color: rgba(201,169,97,0.4);
}
