/* Site styles for Studio De Bastiani UI kit */
@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--surface); color: var(--fg-1); font-family: var(--font-sans); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Headings ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-cyan-700); margin: 0 0 14px; }
.display { font-size: clamp(40px, 5.4vw, 64px); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 22px; color: var(--fg-1); }
.display strong { font-weight: 700; }
.h1 { font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -0.005em; margin: 0 0 18px; }
.h2 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.t-body { font-size: 16px; line-height: 1.65; color: var(--fg-2); margin: 0; text-wrap: pretty; }
.lede { font-family: var(--font-serif); font-size: 20px; line-height: 1.6; color: var(--fg-2); margin: 0 0 28px; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; flex: none; transition: all 200ms cubic-bezier(.2,0,0,1); }
.btn-sm { font-size: 13px; padding: 8px 14px; }
.btn-primary { background: var(--brand-cyan); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(20,24,28,.08); }
.btn-primary:hover { background: var(--brand-cyan-600); box-shadow: 0 6px 24px rgba(59,190,236,.28); }
.btn-secondary { background: white; color: var(--fg-1); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--ink-100); }
.btn-ghost { background: transparent; color: var(--brand-cyan-700); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { color: var(--ink-900); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: white; transition: box-shadow 200ms ease, backdrop-filter 200ms ease; }
.site-header.scrolled { background: rgba(255,255,255,0.85); backdrop-filter: saturate(140%) blur(8px); box-shadow: 0 1px 0 var(--border); }
.cyan-stripe { height: 4px; background: var(--brand-cyan); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { width: 88px; height: 88px; object-fit: contain; flex: none; display: block; }
.footer-logo { width: 96px; height: 96px; object-fit: contain; flex: none; display: block; background: white; padding: 8px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--ink-900); text-transform: uppercase; }
.brand-role { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--fg-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink-900); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; background: linear-gradient(180deg, var(--brand-cyan-050) 0%, white 70%); }
.hero-actions { display: flex; gap: 14px; align-items: center; margin: 8px 0 36px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-3); max-width: 720px; }
.hero-meta strong { color: var(--fg-1); font-weight: 600; }
.hero-meta .sep { color: var(--ink-300); }

/* ---------- Services ---------- */
.services { padding: 88px 0; background: white; }
.section-head { display: flex; flex-direction: column; margin-bottom: 40px; max-width: 600px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: all 200ms cubic-bezier(.2,0,0,1); position: relative; }
.service-card:hover { box-shadow: 0 2px 4px rgba(20,24,28,.05),0 12px 28px rgba(20,24,28,.08); transform: translateY(-1px); }
.service-card .rule { width: 28px; height: 2px; background: var(--brand-cyan); margin-bottom: 6px; }
.service-card h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--fg-1); }
.service-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.service-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ink-100); }
.service-link { color: var(--brand-cyan-700); font-size: 13px; font-weight: 600; text-decoration: none; position: absolute; top: 28px; right: 28px; opacity: 0; transition: opacity 200ms; }
.service-card:hover .service-link { opacity: 1; }

/* ---------- Places (Vittorio Veneto) ---------- */
.places { padding: 88px 0; background: white; }
.places-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 14px; }
.place { margin: 0; position: relative; overflow: hidden; border-radius: 8px; background: var(--ink-100); }
.place img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(.2,0,0,1); }
.place:hover img { transform: scale(1.04); }
.place figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(20,24,28,0) 0%, rgba(20,24,28,0.65) 100%);
  color: white; display: flex; flex-direction: column; gap: 2px;
}
.place-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.place-sub { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.78); }
.place::after { content: ''; position: absolute; left: 0; top: 0; width: 28px; height: 2px; background: var(--brand-cyan); }
/* asymmetric mosaic */
.place-0 { grid-column: span 3; grid-row: span 2; }
.place-1 { grid-column: span 3; }
.place-2 { grid-column: span 2; }
.place-3 { grid-column: span 1; }
.place-4 { grid-column: span 2; grid-row: span 2; }
.place-5 { grid-column: span 4; }
/* ---------- Articles ---------- */
.articles { padding: 88px 0; background: var(--ink-050); }
.articles-channels { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.channel-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-cyan-700); text-decoration: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: white; transition: all 200ms; }
.channel-link:hover { border-color: var(--brand-cyan); color: var(--ink-900); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.article-card { display: flex; flex-direction: column; gap: 10px; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 22px; text-decoration: none; color: inherit; transition: all 200ms cubic-bezier(.2,0,0,1); position: relative; overflow: hidden; }
.article-card::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--brand-cyan); opacity: 0; transition: opacity 200ms; }
.article-card:hover { box-shadow: 0 2px 4px rgba(20,24,28,.05),0 12px 28px rgba(20,24,28,.08); transform: translateY(-1px); }
.article-card:hover::before { opacity: 1; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.article-source { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.article-source.src-linkedin { color: #0A66C2; }
.article-source.src-facebook { color: #1877F2; }
.article-date { color: var(--fg-3); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.article-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--fg-1); }
.article-excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.article-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-100); }
.article-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.article-arrow { color: var(--brand-cyan-700); font-size: 16px; font-weight: 600; }

/* ---------- About ---------- */
.about { padding: 88px 0; background: var(--ink-050); }
.about-inner { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.placeholder-portrait { width: 100%; aspect-ratio: 4/5; background: var(--ink-150); border: 1px dashed var(--ink-300); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--fg-3); }
.portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; display: block; box-shadow: 0 2px 4px rgba(20,24,28,.05),0 12px 28px rgba(20,24,28,.08); }
.placeholder-portrait span { font-size: 14px; font-weight: 600; }
.placeholder-portrait small { font-size: 11px; }
.credentials { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.credentials li { font-size: 14px; color: var(--fg-2); padding-left: 20px; position: relative; line-height: 1.5; }
.credentials li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 2px; background: var(--brand-cyan); }
.credentials strong { color: var(--fg-1); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { padding: 88px 0; background: white; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.addr { display: grid; grid-template-columns: 80px 1fr; gap: 8px 16px; margin: 24px 0 0; font-size: 14px; }
.addr dt { color: var(--fg-3); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.addr dd { margin: 0; color: var(--fg-1); font-feature-settings: 'tnum' 1; }
.contact-form { background: var(--ink-050); border: 1px solid var(--border); border-radius: 8px; padding: 28px; display: grid; gap: 14px; }
.form-fields { display: grid; gap: 14px; }
.form-fields .btn { justify-self: start; margin-top: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--fg-2); font-weight: 600; }
.field .req { color: var(--brand-cyan-700); }
.field input, .field select, .field textarea { font-family: var(--font-sans); font-size: 14px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: white; color: var(--fg-1); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-cyan); outline-offset: 1px; border-color: var(--brand-cyan); }
.form-note { margin: 4px 0 0; font-size: 11px; color: var(--fg-3); }
.form-error { margin: 8px 0 0; padding: 10px 12px; font-size: 13px; color: var(--danger); background: var(--danger-soft); border-radius: 6px; }
.form-success { padding: 24px 0; }
.form-success h3 { margin: 0 0 8px; }
.form-success p { margin: 0 0 16px; color: var(--fg-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-200); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 56px 32px 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-name { color: white; font-weight: 600; font-size: 15px; }
.footer-role { color: var(--ink-300); font-size: 12px; margin-top: 2px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-h { color: white; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--ink-300); font-size: 13px; padding: 4px 0; text-decoration: none; }
.footer-cols a:hover { color: white; }
.footer-strip { border-top: 1px solid #2A323A; }
.footer-strip .container { padding: 18px 32px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-400); flex-wrap: wrap; }
.placeholder-inline { background: rgba(201,138,20,0.18); padding: 0 4px; border-radius: 2px; color: #E0B559; font-style: italic; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 4px rgba(20,24,28,.05),0 12px 28px rgba(20,24,28,.16); border-top: 3px solid var(--brand-cyan); }
.cookie-banner-inner { max-width: 1200px; margin: 0 auto; padding: 16px 22px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; font-size: 13px; line-height: 1.55; color: var(--fg-2); }
.cookie-text strong { color: var(--fg-1); }
.cookie-text a { color: var(--brand-cyan-700); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
