/* Evoluzione Ricamo — design moderno, ispirato all'alta moda: molto nero,
   bianco, un solo accento rosso (dal logo), tipografia grande e spaziosa. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --nero: #0e0e0e;
    --nero-soft: #1a1a1a;
    --bianco: #fdfdfb;
    --avorio: #f4f1ec;
    --rosso: #e6241a;
    --grigio: #8a8a86;
    --linea: rgba(255,255,255,0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    background: var(--bianco);
    color: var(--nero);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 40px;
    transition: background .4s ease, padding .4s ease;
    mix-blend-mode: normal;
}
header .logo-mark { margin: 0; }
nav.main-nav { padding-top: 34px; }
header.scrolled {
    background: rgba(14,14,14,0.92);
    backdrop-filter: blur(6px);
    padding: 0 40px;
}
header .logo-mark {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 14px 22px;
    border-radius: 3px;
}
header .logo-mark img {
    display: block;
    height: 108px;
    width: auto;
}
nav.main-nav { display: flex; gap: 40px; }
nav.main-nav a {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity .2s;
}
nav.main-nav a:hover { opacity: 1; border-bottom: 1px solid var(--rosso); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    background: var(--nero);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: url('img/hero-fabric.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    filter: grayscale(35%) contrast(1.05);
    transform: scale(1.08);
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,14,14,0.35) 0%, rgba(14,14,14,0.55) 55%, rgba(14,14,14,0.96) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 40px 90px;
    max-width: 900px;
}
.hero-kicker {
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rosso);
    margin-bottom: 22px;
    display: block;
}
.hero h1 {
    font-size: clamp(42px, 7vw, 92px);
    line-height: 1.02;
    color: #fff;
}
.hero h1 em {
    font-style: italic;
    color: var(--rosso);
}
.hero p.lead {
    margin-top: 26px;
    font-size: 19px;
    font-weight: 300;
    color: rgba(255,255,255,0.78);
    max-width: 540px;
}
.hero .scroll-cue {
    position: absolute;
    right: 40px; bottom: 40px;
    z-index: 2;
    writing-mode: vertical-rl;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after {
    content: "";
    width: 1px; height: 60px;
    background: rgba(255,255,255,0.4);
}

/* ---------- Sezione generica ---------- */
section { padding: 130px 0; }
.section-kicker {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rosso);
    display: block;
    margin-bottom: 18px;
}
.section-title {
    font-size: clamp(30px, 4vw, 50px);
    max-width: 620px;
}
.section-lede {
    max-width: 560px;
    color: var(--grigio);
    margin-top: 22px;
    font-size: 16px;
}

/* ---------- Intro / manifesto ---------- */
.stat-row { display: flex; gap: 56px; margin-top: 46px; }
.stat-row .n { font-family: 'Cormorant Garamond', serif; font-size: 42px; color: var(--rosso); }
.stat-row .l { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grigio); margin-top: 4px; }

/* ---------- Tecniche (grid a mosaico) ---------- */
.tecniche { background: var(--nero); color: #fff; }
.tecniche .section-title { color: #fff; }
.tecniche .section-lede { color: rgba(255,255,255,0.55); }

.grid-tecniche {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--linea);
}
.tecnica-card {
    display: block;
    position: relative;
    aspect-ratio: 1/1.05;
    overflow: hidden;
    background: var(--nero-soft);
    cursor: pointer;
}
.tecnica-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s ease;
    filter: grayscale(60%) brightness(0.85);
}
.tecnica-card:hover img { transform: scale(1.08); filter: grayscale(0%) brightness(1); }
.tecnica-card .label {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

/* ---------- Lavorazioni speciali ---------- */
.speciali-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}
.speciale-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 14px;
}
.speciale-card h3::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: var(--rosso);
}
.speciale-card p {
    color: var(--grigio);
    font-size: 15px;
}
.speciali-nota {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e6e2d8;
    max-width: 780px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: #333;
    line-height: 1.5;
}
@media (max-width: 980px) {
    .speciali-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Chi siamo strip ---------- */
.strip {
    background: var(--avorio);
    padding: 90px 0;
}
.strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.strip blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 3vw, 34px);
    font-style: italic;
    max-width: 720px;
    line-height: 1.35;
}
.strip .firma { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grigio); margin-top: 18px; }

/* ---------- Dove siamo / contatti ---------- */
.contatti { background: var(--nero); color: #fff; }
.contatti .section-title, .contatti h2 { color: #fff; }
.contatti-grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.info-list { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.info-item .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rosso); margin-bottom: 6px; }
.info-item .v { font-size: 19px; font-weight: 400; }
.info-item .v a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.info-item .v a:hover { border-color: var(--rosso); }

form.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { position: relative; }
.field input, .field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    padding: 10px 2px;
    outline: none;
    transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--rosso); }
.field label {
    position: absolute; left: 2px; top: 10px;
    font-size: 15px; color: rgba(255,255,255,0.45);
    pointer-events: none;
    transition: all .2s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: -14px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rosso);
}
textarea { resize: vertical; min-height: 90px; }

.btn {
    align-self: flex-start;
    margin-top: 10px;
    background: var(--rosso);
    color: #fff;
    border: none;
    padding: 15px 38px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn:hover { background: #ff3b2f; transform: translateY(-1px); }

.form-msg { font-size: 13px; margin-top: 6px; display: none; }
.form-msg.ok { color: #7ee08a; display: block; }
.form-msg.err { color: #ff8a80; display: block; }

/* ---------- Footer ---------- */
footer {
    background: #050505;
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
    font-size: 12px;
    letter-spacing: 0.04em;
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid-tecniche { grid-template-columns: repeat(2, 1fr); }
    .contatti-grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 640px) {
    header { padding: 18px 20px; }
    nav.main-nav { display: none; }
    .container { padding: 0 20px; }
    section { padding: 90px 0; }
    .hero-content { padding: 0 20px 60px; }
    .hero .scroll-cue { display: none; }
}
