/*
Theme Name: Arcadia Lab APS
Theme URI: https://arcadialab.org/
Author: Arcadia Lab APS
Description: Tema WordPress one-page basato sul sito Arcadia Lab APS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: arcadia-lab
*/

:root {
  --black: #0e0d0c;
  --white: #faf9f6;
  --cream: #f4f1ed;
  --yellow: #f4f12d;
  --orange: #c03000;/*#d03400;#e46439;*/
  --purple: #492df4;
  --violet: #a951ff;
  --green: #3ecf8e;
  --ink: #1a1917;
  --muted: #6b6861;
  --border: rgba(0,0,0,0.1);
  --nav-h: 90px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.linkable {
  cursor: pointer;
}

.linkable:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  height: 100%;
}

.logo {
    object-fit: contain;
    height: 100%;
    margin-left: 35px;
    padding: 5px;
  }

.nav-logo span { color: var(--orange);  }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--ink); background: var(--cream); }

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.25s;
}

/* ── SECTIONS ── */
section { padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem); }

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: calc(var(--nav-h) + 4rem);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 110%;
  background: var(--cream);
  border-radius: 0 0 0 60% / 0 0 50% 60%;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--orange);
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

h2 em { color: var(--orange); font-style: italic; }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem; font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--orange); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem; font-weight: 500;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

.hero-image-wrap {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}

.hero-image-box {
  width: 90%;
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-emoji {
  font-size: clamp(8rem, 15vw, 14rem);
  line-height: 1;
  user-select: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-badge.b1 { bottom: 15%; left: -5%; color: var(--orange); }
.hero-badge.b2 { top: 20%; right: -5%; color: var(--purple); }

/* ── INTRO BAND ── */
.intro-band {
  background: var(--ink);
  color: #fff;
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}

.intro-band p {
  max-width: 800px; margin: 0 auto;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.intro-band strong { color: #fff; font-style: normal; }

/* ── SECTION HEADERS ── */
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  display: block; flex: 1; max-width: 40px; height: 1.5px;
  background: var(--orange);
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ── CHI SIAMO ── */
#chi-siamo { background: var(--yellow); }

.chi-siamo-grid {
  display: grid;
  /*grid-template-columns: 1fr 1fr;
  gap: 5rem;*/
  align-items: start;
}

.chi-siamo-text p {
  color: rgba(0,0,0,0.72);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.title-block {
  text-align: left;
  margin-bottom: 40px;
}

.text-block .paragraph {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 16px;
}

.chi-siamo-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.chi-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
}

.chi-card-icon {
  font-size: 1.6rem; margin-bottom: 0.8rem;
}

.chi-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }

.chi-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.5; }

/* ── SQUADRA ── */
#squadra { background: var(--cream); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  font-family: 'DM Serif Display', serif;
}

.team-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.team-card .role, .team-card .skills { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.team-card .skills {list-style: none;}
.team-card .skills li {margin: 5px 0}

/* ── MISSIONE ── */
#missione { background: var(--violet); color: #fff; }

#missione h2, #missione .section-label { color: #fff; }
#missione .section-label { color: rgba(255,255,255,0.7); }
#missione .section-label::after { background: rgba(255,255,255,0.4); }

.missione-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.missione-text p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.valori-list { margin-top: 1rem; }

.valore-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.valore-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.valore-item h3 { color: #fff; margin-bottom: 0.25rem; font-size: 1rem; }
.valore-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.5; }

/* ── ATTIVITÀ ── */
#attivita { background: var(--white); }

.attivita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.attivita-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.attivita-card:hover { transform: translateY(-3px); }

.attivita-accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}

.attivita-icon { font-size: 2rem; margin-bottom: 1rem; }

.attivita-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }

.attivita-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }

/* ── MASTERCLASS ── */
#masterclass { background: var(--cream); }

.master-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.master-text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.master-blocks { display: flex; flex-direction: column; gap: 1rem; }

.master-block {
  background: var(--white);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  border-left: 3px solid var(--purple);
}

.master-block-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.master-block h3 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--purple); }
.master-block p { font-size: 0.87rem; color: var(--muted); }

/* ── PERCORSI ── */
#percorsi { background: var(--orange); color: #fff; }
#percorsi h2, #percorsi .section-label { color: #fff; }
#percorsi .section-label { color: rgba(255,255,255,0.7); }
#percorsi .section-label::after { background: rgba(255,255,255,0.4); }

.percorsi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.percorsi-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.percorsi-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--orange);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.percorsi-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.percorsi-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.percorsi-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  padding: 1.3rem;
  text-align: center;
}

.percorsi-pill .pill-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.percorsi-pill span { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.9); }

/* ── RETE ── */
#rete { background: var(--ink); color: #fff; }

#rete h2 { color: #fff; }
#rete .section-label { color: rgba(255,255,255,0.5); }
#rete .section-label::after { background: rgba(255,255,255,0.3); }

.rete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.partner-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.partner-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.partner-card h3 { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.partner-card p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ── CONTATTI ── */
#contatti { background: var(--yellow); }

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-items { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1rem; }

.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
}

.contact-icon {
  font-size: 1.3rem; flex-shrink: 0; margin-top: 2px;
}

.contact-item .label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.2rem;
}

.contact-item a, .contact-item p {
  font-size: 0.95rem; color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover { color: var(--orange); }

.contatti-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contatti-info p {
  color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem;
}

.legal-box {
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer a:hover {
    color: #fff;
}

footer a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #home { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 2rem); }
  .hero-bg-shape { display: none; }
  .hero-image-wrap { order: -1; }
  .hero-image-box { width: 70%; max-width: 320px; }
  .logo {margin-left: auto;}

  .chi-siamo-grid,
  .missione-grid,
  .master-layout,
  .percorsi-inner,
  .contatti-grid { grid-template-columns: 1fr; gap: 3rem; }

  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .chi-siamo-cards { grid-template-columns: 1fr; }
  .percorsi-visual { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .rete-grid { grid-template-columns: 1fr; }
}
