﻿/* =========================================================
   sito_linda_mvc — site.css
   White / Minimal / Elegant
   ========================================================= */

/* -----------------------------
   Design tokens
------------------------------ */
:root {
    --bg: #ffffff;
    --fg: #0a0a0a;
    --muted: #6f6f6f;
    --line: #e8e8e8;
    --soft: #f7f7f7;
    --maxw: 1120px;
    --pad: 24px;
    --radius: 14px;
    --text: 15px;
    --lh: 1.8;
    --ease: cubic-bezier(.22,.8,.22,1);
}

/* -----------------------------
   Reset essenziale
------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--text);
    line-height: var(--lh);
    letter-spacing: .25px;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: rgba(10,10,10,.12);
}

/* -----------------------------
   Container
------------------------------ */
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* -----------------------------
   Typography (editoriale)
------------------------------ */
h1, h2, h3 {
    margin: 0;
    font-weight: 300;
    letter-spacing: .6px;
}

h1 {
    font-size: clamp(34px, 4.2vw, 46px);
    line-height: 1.1;
}

h2 {
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.25;
}

p {
    margin: 0;
    color: var(--muted);
}

.prose p + p {
    margin-top: 1.6em;
}

.small {
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
}

/* -----------------------------
   Links sottili
------------------------------ */
a.link {
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 220ms var(--ease), opacity 220ms var(--ease);
}

    a.link:hover {
        border-bottom-color: var(--line);
        opacity: .9;
    }

/* -----------------------------
   Sections & spacing
------------------------------ */
section {
    padding: 96px 0;
}

header + section {
    padding-top: 0;
}

/* -----------------------------
   Gallery styles
------------------------------ */
figure {
    margin: 0;
}

    figure img {
        width: 100%;
        height: auto;
    }

    /* leggera aria da stampa */
    figure img {
        transition: opacity 300ms var(--ease), transform 300ms var(--ease);
    }

    figure:hover img {
        opacity: .92;
    }

/* -----------------------------
   Grid helpers (coerenti alle view)
------------------------------ */
.grid {
    display: grid;
    gap: 32px;
}

.grid--tight {
    gap: 20px;
}

/* -----------------------------
   Fade-in on scroll
------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 520ms var(--ease), transform 520ms var(--ease);
    will-change: opacity, transform;
}

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -----------------------------
   Footer refinement
------------------------------ */
footer {
    color: var(--muted);
}

    footer a:hover {
        color: var(--fg);
    }

/* -----------------------------
   Forms (contatti futuri)
------------------------------ */
input, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

input, textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 4px;
    background: transparent;
}

    input:focus, textarea:focus {
        outline: none;
        border-bottom-color: var(--fg);
    }

/* -----------------------------
   Utility
------------------------------ */
.mt-xxl {
    margin-top: 96px;
}

.mb-xxl {
    margin-bottom: 96px;
}

.text-muted {
    color: var(--muted);
}

/* -----------------------------
   Subtle scroll animations
------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 520ms var(--ease), transform 520ms var(--ease);
    will-change: opacity, transform;
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Rispetta "riduci animazioni" */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
