/* ============================================================
   Asmaa Belhadj — asmaaBE.dev
   Palette: carta fredda / inchiostro / lampone
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono
   ============================================================ */

:root {
    --paper:      #F5F4F1;
    --paper-alt:  #ECEAE4;
    --ink:        #1B1B24;
    --ink-soft:   #55545E;
    --raspberry:  #B4245A;
    --raspberry-d:#8E1C47;
    --terminal:   #17171F;
    --term-green: #3DDC97;
    --line:       #D8D5CC;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--raspberry);
    outline-offset: 2px;
}

/* ---------- Etichette mono ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--raspberry);
    text-transform: lowercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 244, 241, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.nav-logo {
    font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem;
    color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--raspberry); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.nav-links a:hover { border-bottom-color: var(--raspberry); }
.nav-cta {
    background: var(--ink); color: var(--paper) !important;
    padding: 8px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--raspberry); border-bottom-color: transparent !important; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 em {
    font-style: normal;
    color: var(--raspberry);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    text-decoration-color: rgba(180, 36, 90, 0.35);
}
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Bottoni ---------- */
.btn {
    display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
    padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; transition: transform 0.15s, background 0.2s, color 0.2s;
    font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--raspberry); color: #fff; }
.btn-primary:hover { background: var(--raspberry-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: wait; }

/* ---------- Terminale (firma) ---------- */
.terminal {
    background: var(--terminal);
    border-radius: 14px;
    box-shadow: 0 24px 48px -20px rgba(27, 27, 36, 0.45);
    overflow: hidden;
    border: 1px solid #2A2A36;
}
.terminal-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 16px; border-bottom: 1px solid #2A2A36;
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3A3A48; }
.terminal-title {
    margin-left: 10px; font-family: var(--font-mono);
    font-size: 0.72rem; color: #6E6E80;
}
.terminal-body {
    padding: 20px 18px 24px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.85;
    color: #C9C9D6;
    min-height: 240px;
    white-space: pre-wrap;
}
.terminal-body .t-cmd    { color: #E7E7F0; }
.terminal-body .t-ok     { color: var(--term-green); }
.terminal-body .t-accent { color: #F06292; }
.terminal-body .cursor {
    display: inline-block; width: 8px; height: 15px;
    background: var(--term-green); vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sezioni ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); max-width: 56ch; margin-bottom: 8px; }

/* ---------- Card prodotti ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px; margin-top: 40px;
}
.card-product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-product:hover {
    transform: translateY(-3px);
    border-color: var(--raspberry);
    box-shadow: 0 16px 32px -20px rgba(27, 27, 36, 0.35);
}
.card-tag {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.card-product h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card-product p { color: var(--ink-soft); margin-bottom: 20px; }
.card-link {
    font-weight: 600; color: var(--raspberry); text-decoration: none;
    font-size: 0.95rem;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Card servizi ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px; margin-top: 40px;
}
.card-service {
    border-top: 3px solid var(--raspberry);
    background: var(--paper);
    border-radius: 0 0 12px 12px;
    padding: 26px 24px;
}
.service-index {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    color: var(--raspberry); letter-spacing: 0.06em; margin-bottom: 14px;
}
.card-service h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card-service p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Contatti ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}
.whatsapp-inline {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 22px; font-weight: 600; font-size: 0.95rem;
    color: var(--ink); text-decoration: none;
    border: 1px solid var(--line); background: #fff;
    padding: 11px 18px; border-radius: 999px;
    transition: border-color 0.2s, color 0.2s;
}
.whatsapp-inline:hover { border-color: #25D366; color: #128C4B; }
.whatsapp-inline svg { color: #25D366; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; }
.field { margin-bottom: 18px; }
.field label {
    display: block; font-family: var(--font-mono);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--ink-soft); margin-bottom: 7px; text-transform: lowercase;
}
input, textarea {
    width: 100%; padding: 13px 14px;
    background: var(--paper); border: 1px solid var(--line);
    color: var(--ink); border-radius: 9px;
    font-family: var(--font-body); font-size: 0.98rem;
    transition: border-color 0.2s;
}
input::placeholder, textarea::placeholder { color: #A5A39B; }
input:focus, textarea:focus { border-color: var(--raspberry); outline: none; }
input.error, textarea.error { border-color: #C62828; }
textarea { resize: vertical; }

.form-status {
    margin-top: 18px; padding: 14px 16px; border-radius: 9px;
    font-size: 0.93rem; font-weight: 500; border: 1px solid;
}
.form-status.ok   { background: #E7F6EE; border-color: #9BD8B7; color: #14663B; }
.form-status.fail { background: #FBECEF; border-color: #E7A4B4; color: #8E1C47; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
    font-size: 0.88rem; color: var(--ink-soft);
}
.footer-inner a { color: var(--raspberry); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero { padding: 56px 0 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
    .section { padding: 60px 0; }
}
@media (max-width: 520px) {
    .nav-links { gap: 16px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .terminal-body { min-height: 200px; font-size: 0.74rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
