/*
  AL Code Studio — minimal, moderno, responsive
  Colori e spaziature sono facilmente configurabili qui sotto
*/

:root {
  /* Palette chiara */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #0b0f14;
  --muted: #4d5b6a;
  --primary: #15c37f;
  --primary-700: #0e9a63;
  --accent: #0a7cff;
  --radius: 14px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

/* Reset piccolo e accessibile */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); }
.lead { font-size: 1.125rem; color: var(--muted); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 24px; }
h3 { font-size: 1.15rem; }

/* Accessibilità */
.skip-to-content {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-to-content:focus { left: 8px; top: 8px; width: auto; height: auto; padding: 8px 10px; background: #000; color: #fff; z-index: 10000; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in oklab, var(--surface), transparent 0%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: .2px; }
.brand img { height: 48px; width: 48px; display: block; object-fit: contain; border-radius: 8px; }
.brand span { white-space: nowrap; }

.nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav a { color: var(--text); opacity: .9; }
.nav a.active { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: 120px 0 80px; background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 60%, #f6f8fb 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-text p { color: var(--muted); margin: 12px 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #ffffff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; transition: all .15s ease; }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-700)); color: #07130d; }
.btn-primary:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.16); color: var(--text); }
.btn-outline:hover { border-color: rgba(255,255,255,0.28); }

/* Servizi */
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.service-card { background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: 100%; }
.service-card img { width: 40px; height: 40px; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin: 6px 0 0; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project-card { background: var(--surface-2); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.project-card img { aspect-ratio: 16 / 10; object-fit: cover; background: #ffffff; }
.project-content { padding: 16px 16px 18px; }
.project-content p { color: var(--muted); margin: 8px 0 0; }

/* Contatti */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.form-row.inline { flex-direction: row; align-items: center; gap: 10px; }
.form-row label { font-weight: 600; }
.form-row input, .form-row textarea { background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.16); color: var(--text); border-radius: 10px; padding: 12px 14px; outline: none; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary), transparent 70%); }
.checkbox { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.checkbox a { color: var(--text); text-decoration: underline; }
.form-status { min-height: 22px; margin-top: 6px; color: var(--muted); }
.hidden { position: absolute; left: -9999px; }
.map-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(15, 23, 42, 0.06); }
.map-wrapper iframe { display: block; width: 100%; height: 300px; }

/* Embed pagina esterna */
.embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(15, 23, 42, 0.06); }
.embed iframe { display: block; width: 100%; height: 600px; background: #fff; }
.embed-fallback { color: var(--muted); margin-top: 10px; }

/* Footer */
.site-footer { background: #ffffff; border-top: 1px solid rgba(15, 23, 42, 0.06); padding: 26px 0; }
.footer-inner { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.footer-nav { display: inline-flex; gap: 16px; }
.footer-nav a { color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--surface); border-bottom: 1px solid rgba(15, 23, 42, 0.06); transform: translateY(-120%); transition: transform .2s ease; }
  .nav.open { transform: translateY(0); }
  .nav ul { flex-direction: column; padding: 14px 20px 20px; gap: 14px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}


