/* ====================================================
   ARCHITETTURANDO — Design System v2
   Clean · White · Gold
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  /* Core */
  --bg:          #FFFFFF;
  --bg-subtle:   #F7F7F7;
  --text:        #0A0A0A;
  --text-mid:    #525252;
  --text-light:  #A3A3A3;
  --border:      #E8E8E8;
  --border-mid:  #C8C8C8;

  /* White alias for backward compat */
  --white:       #FFFFFF;
  --border-light:#F0F0F0;

  /* Section colors — used as thin accents only */
  --storia:        #7B3F2C;
  --storia-light:  #FAF1EE;
  --storia-mid:    #B06040;
  --materiali:     #2C5045;
  --materiali-light:#EBF3F0;
  --materiali-mid: #4A8070;
  --viaggi:        #1E3A5F;
  --viaggi-light:  #EBF0F8;
  --viaggi-mid:    #3A6090;

  /* Gold — primary accent */
  --gold:        #B8860B;
  --gold-mid:    #C9A84C;
  --gold-light:  #FDF8EC;

  /* Type — all Inter */
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Spacing — generous */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  5rem;
  --sp-xl:  10rem;

  /* UI */
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-h:  0 8px 40px rgba(0,0,0,0.09);
  --ease:      all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--sans); }
ul { list-style: none; }

/* ---- TYPOGRAPHY — all Inter ---- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: var(--sp-sm); }
p:last-child { margin-bottom: 0; }

/* ---- LAYOUT ---- */
.container        { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-md); }
.container-narrow { max-width: 860px;  margin: 0 auto; padding: 0 var(--sp-md); }

/* ============================================================
   NAVIGATION — razor thin, translucent
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--sp-md);
}

/* Logo */
.nav-logo {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--gold); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }

/* Storia / Materiali / Viaggi override */
.nav-links a.storia-link.active,
.nav-links a.storia-link:hover { color: var(--storia); }
.nav-links a.storia-link.active::after,
.nav-links a.storia-link:hover::after { background: var(--storia); }
.nav-links a.materiali-link.active,
.nav-links a.materiali-link:hover { color: var(--materiali); }
.nav-links a.materiali-link.active::after,
.nav-links a.materiali-link:hover::after { background: var(--materiali); }
.nav-links a.viaggi-link.active,
.nav-links a.viaggi-link:hover { color: var(--viaggi); }
.nav-links a.viaggi-link.active::after,
.nav-links a.viaggi-link:hover::after { background: var(--viaggi); }

/* Right side */
.nav-right { display: flex; align-items: center; gap: var(--sp-sm); }
.lang-switcher {
  display: flex;
  background: var(--bg-subtle);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  transition: var(--ease);
}
.lang-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Mobile menu */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: var(--ease); }

/* ============================================================
   HERO — Homepage
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 var(--sp-lg);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.6;
}
.hero-ornament {
  position: absolute;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.hero-ornament::after {
  content: '';
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  max-width: 820px;
  margin-bottom: var(--sp-md);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.97;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 700; }
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 500px;
  font-weight: 400;
  margin-bottom: var(--sp-lg);
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  transition: var(--ease);
  border: 1px solid;
}
.hero-btn.s { background: var(--bg); color: var(--storia); border-color: var(--storia); }
.hero-btn.m { background: var(--bg); color: var(--materiali); border-color: var(--materiali); }
.hero-btn.v { background: var(--bg); color: var(--viaggi); border-color: var(--viaggi); }
.hero-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ============================================================
   SECTION CARDS — Homepage
   ============================================================ */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--sp-xl) 0 var(--sp-lg);
}
.section-card {
  background: var(--bg);
  padding: var(--sp-md) var(--sp-md) var(--sp-md);
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.section-card:hover { background: var(--bg-subtle); }
.sc-header {
  padding: 0;
  border: none;
  margin-bottom: var(--sp-sm);
}
.sc-num {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-xs);
}
.sc-icon { font-size: 1.4rem; margin-bottom: 6px; }
.sc-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
}
.sc-body { padding: 0; flex: 1; display: flex; flex-direction: column; }
.sc-desc { color: var(--text-mid); font-size: 0.87rem; margin-bottom: var(--sp-sm); flex: 1; line-height: 1.65; }
.sc-meta { font-size: 0.75rem; color: var(--text-light); margin-bottom: var(--sp-sm); }
.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  transition: var(--ease);
}
.section-card:hover .sc-link { color: var(--gold); gap: 8px; }

/* ============================================================
   HOW IT WORKS — Homepage
   ============================================================ */
.how-section {
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--border);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-lg);
  align-items: start;
}
.how-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-xs);
}
.how-steps { display: flex; flex-direction: column; gap: var(--sp-md); }
.how-step { display: flex; gap: var(--sp-md); align-items: flex-start; }
.how-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
  width: 28px;
  padding-top: 4px;
  flex-shrink: 0;
}
.how-step-text h4 { font-size: 0.95rem; margin-bottom: 4px; font-weight: 600; }
.how-step-text p { font-size: 0.84rem; color: var(--text-mid); }

/* ============================================================
   FEATURED STRIP — Homepage
   ============================================================ */
.featured-section { padding: var(--sp-lg) 0; }
.section-heading {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-sm);
}
.section-heading h2 { flex: 1; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); }
.section-heading a { font-size: 0.75rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; white-space: nowrap; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.featured-card {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-sm);
  transition: var(--ease);
}
.featured-card:hover { border-top-color: var(--gold); }
.fc-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
  color: var(--text-light);
}
.featured-card.s .fc-label { color: var(--storia); }
.featured-card.m .fc-label { color: var(--materiali); }
.featured-card.v .fc-label { color: var(--viaggi); }
.fc-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.25; }
.fc-desc { font-size: 0.83rem; color: var(--text-mid); margin-bottom: var(--sp-sm); line-height: 1.6; }
.fc-link { font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; color: var(--text-light); transition: var(--ease); }
.featured-card:hover .fc-link { color: var(--gold); gap: 7px; }

/* ============================================================
   TAGS / CHIPS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-sm) 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-mid);
  transition: var(--ease);
  cursor: pointer;
  user-select: none;
}
.tag.s { background: var(--storia-light); color: var(--storia); border-color: rgba(123,63,44,0.15); }
.tag.m { background: var(--materiali-light); color: var(--materiali); border-color: rgba(44,80,69,0.15); }
.tag.v { background: var(--viaggi-light); color: var(--viaggi); border-color: rgba(30,58,95,0.15); }
.tag.n { background: var(--bg-subtle); color: var(--text-mid); border-color: var(--border); }
.tag:hover { border-color: var(--text); color: var(--text); }
.tag-pre { opacity: 0.5; font-size: 0.66rem; }

/* ============================================================
   PAGE HEADER — Inner pages
   ============================================================ */
.page-header {
  padding: 110px 0 var(--sp-lg);
  position: relative;
  background: var(--bg);
}
.ph-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
  color: var(--gold);
}
.s .ph-label { color: var(--storia); }
.m .ph-label { color: var(--materiali); }
.v .ph-label { color: var(--viaggi); }
.page-header h1 { margin-bottom: var(--sp-sm); }
.page-header .lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  font-weight: 400;
  line-height: 1.75;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 60px;
  z-index: 100;
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 0 var(--sp-md);
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  margin-right: 4px;
}
.filter-btn {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--bg);
  transition: var(--ease);
}
.filter-btn:hover { border-color: var(--text-mid); color: var(--text); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-btn.active.sf { background: var(--storia); border-color: var(--storia); }
.filter-btn.active.mf { background: var(--materiali); border-color: var(--materiali); }
.filter-btn.active.vf { background: var(--viaggi); border-color: var(--viaggi); }

/* Filter notice */
.filter-notice {
  background: var(--gold-light);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: var(--radius);
  padding: 10px var(--sp-md);
  font-size: 0.83rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin: var(--sp-sm) 0;
}
.filter-notice strong { color: var(--gold); }
.clear-filter-btn {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================================
   TIMELINE — Storia
   ============================================================ */
.timeline { padding: var(--sp-lg) 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 160px 20px 1fr;
  gap: 0 var(--sp-sm);
  margin-bottom: var(--sp-lg);
  position: relative;
}
.tl-date { text-align: right; padding-top: 6px; }
.tl-date-main {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tl-date-sub { font-size: 0.72rem; color: var(--text-light); }
.tl-spine { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 10px;
}
.tl-line { width: 1px; flex: 1; background: var(--border); margin-top: 8px; }
.timeline-item:last-child .tl-line { display: none; }
.tl-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  transition: var(--ease);
  margin-bottom: 8px;
}
.tl-content:hover { border-color: var(--border-mid); box-shadow: var(--shadow); }
.tl-content h3 { font-size: 1.05rem; margin-bottom: var(--sp-xs); }
.tl-content .tl-desc { font-size: 0.87rem; color: var(--text-mid); margin-bottom: var(--sp-sm); }
.tl-architects { font-size: 0.8rem; color: var(--text-light); font-style: italic; margin-bottom: var(--sp-sm); }
.tl-connections {
  background: var(--gold-light);
  border-radius: var(--radius);
  padding: var(--sp-sm);
  border: 1px solid rgba(184,134,11,0.15);
}
.tl-conn-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.tl-conn-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.tl-conn-row:last-child { margin-bottom: 0; }
.conn-label {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

/* ============================================================
   MATERIAL GRID
   ============================================================ */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-md);
  padding: var(--sp-lg) 0;
}
.material-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease);
}
.material-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow); }
.mc-top {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.mc-top h3 {
  position: relative;
  color: rgba(255,255,255,0.95);
  font-size: 1.4rem;
  z-index: 1;
  letter-spacing: -0.02em;
}
.mc-bg-icon { position: absolute; font-size: 5rem; opacity: 0.1; right: 12px; bottom: -10px; }
.mc-body { padding: var(--sp-md); }
.mc-era {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.mc-desc { font-size: 0.85rem; color: var(--text-mid); margin-bottom: var(--sp-sm); }
.mc-props { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: var(--sp-sm); }
.mc-prop {
  font-size: 0.72rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--text-mid);
}

/* Gradient tops */
.material-card.pietra .mc-top          { background: linear-gradient(140deg,#8B7355,#5C4A28); }
.material-card.marmo .mc-top           { background: linear-gradient(140deg,#C0B8AC,#8A7A70); }
.material-card.laterizio .mc-top       { background: linear-gradient(140deg,#C4622B,#8A3810); }
.material-card.calcestruzzo .mc-top    { background: linear-gradient(140deg,#7A7A7A,#4A4A4A); }
.material-card.acciaio .mc-top         { background: linear-gradient(140deg,#4A7B9D,#1C4F72); }
.material-card.vetro .mc-top           { background: linear-gradient(140deg,#5BA8C4,#2A6C8A); }
.material-card.legno .mc-top           { background: linear-gradient(140deg,#8B6542,#5C3C18); }
.material-card.terra .mc-top           { background: linear-gradient(140deg,#B8813A,#7A5010); }
.material-card.cemento-armato .mc-top  { background: linear-gradient(140deg,#5C6B7A,#2E3F50); }
.material-card.innovativi .mc-top      { background: linear-gradient(140deg,#6A4AAA,#3A1A78); }

/* ============================================================
   TRAVEL GRID
   ============================================================ */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-md);
  padding: var(--sp-lg) 0;
}
.travel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}
.travel-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow); }
.tc-img { height: 160px; position: relative; display: flex; align-items: flex-end; }
.tc-bg { position: absolute; inset: 0; }
.tc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}
.tc-place {
  position: relative;
  z-index: 1;
  padding: var(--sp-sm) var(--sp-md);
  color: var(--white);
  width: 100%;
}
.tc-country { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.tc-city { font-size: 1.4rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.tc-body { padding: var(--sp-md); flex: 1; }
.tc-desc { font-size: 0.85rem; color: var(--text-mid); margin-bottom: var(--sp-sm); }
.tc-highlights { display: flex; flex-direction: column; gap: 5px; margin-bottom: var(--sp-sm); }
.tc-hl { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--text-mid); }
.tc-hl::before { content: '→'; color: var(--text-light); flex-shrink: 0; font-weight: 500; }

/* Travel card backgrounds */
.travel-card.roma       .tc-bg { background: linear-gradient(140deg,#8B3A2C,#5C1A0C); }
.travel-card.atene      .tc-bg { background: linear-gradient(140deg,#4A8BB5,#1C5A88); }
.travel-card.firenze    .tc-bg { background: linear-gradient(140deg,#C07820,#7A4A08); }
.travel-card.barcellona .tc-bg { background: linear-gradient(140deg,#C4305A,#780A30); }
.travel-card.parigi     .tc-bg { background: linear-gradient(140deg,#4A5A8B,#1E2A5A); }
.travel-card.venezia    .tc-bg { background: linear-gradient(140deg,#3A8BAA,#0E4F6A); }
.travel-card.chicago    .tc-bg { background: linear-gradient(140deg,#2A5A7A,#082A48); }
.travel-card.tokyo      .tc-bg { background: linear-gradient(140deg,#8B2A4A,#4C0A22); }
.travel-card.bilbao     .tc-bg { background: linear-gradient(140deg,#6A8B2A,#3A5A08); }
.travel-card.marrakech  .tc-bg { background: linear-gradient(140deg,#B87830,#7A4A08); }

/* ============================================================
   FOOTER — dark, minimal
   ============================================================ */
footer {
  background: #0A0A0A;
  color: var(--white);
  padding: var(--sp-lg) 0 var(--sp-md);
  margin-top: var(--sp-lg);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.footer-brand { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--sp-xs); }
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.35); max-width: 240px; line-height: 1.7; }
.footer-col h5 {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.84rem; color: rgba(255,255,255,0.55); transition: var(--ease); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--sp-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.22);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ============================================================
   UTILS
   ============================================================ */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.divider     { height: 1px; background: var(--border); margin: var(--sp-lg) 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sections-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .how-grid       { grid-template-columns: 1fr; }
  .featured-grid  { grid-template-columns: repeat(2, 1fr); }
  .timeline-item  { grid-template-columns: 120px 20px 1fr; }
}

@media (max-width: 768px) {
  :root { --sp-lg: 3rem; --sp-xl: 5rem; }

  .sections-grid   { grid-template-columns: 1fr; gap: 0; border-radius: var(--radius); }
  .featured-grid   { grid-template-columns: 1fr; }
  .travel-grid     { grid-template-columns: 1fr; }
  .material-grid   { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-md);
    gap: var(--sp-sm);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: flex; }

  .timeline-item { grid-template-columns: 1fr; }
  .tl-date { text-align: left; margin-bottom: 6px; display: flex; gap: var(--sp-xs); align-items: baseline; }
  .tl-spine { display: none; }
}

/* ============================================================
   V2 ADDITIONS — Photo hero, Image cards, Timeline, Percorsi, Tags
   ============================================================ */

/* ── READING PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 60px; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 500;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── PHOTO HERO (v2 homepage) ── */
.photo-hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  margin-top: 60px;
  overflow: hidden;
}
.photo-hero-img {
  position: absolute; inset: 0;
  background: url('../img/cover/cover-architetturando.webp') center/cover no-repeat;
  transition: transform 8s ease-out;
  transform: scale(1.05);
}
.photo-hero-img.loaded { transform: scale(1); }
.photo-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}
.photo-hero-content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem 3.5rem;
}
.photo-hero-eyebrow {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1rem;
}
.photo-hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px; background: var(--gold);
}
.photo-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.97; color: #fff;
  max-width: 720px; margin-bottom: 1.2rem;
}
.photo-hero h1 em { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.65); }
.photo-hero-sub {
  font-size: 0.95rem; color: rgba(255,255,255,0.7);
  max-width: 460px; line-height: 1.75; font-weight: 300;
}

/* ── HORIZONTAL TIMELINE BAR ── */
.timeline-bar-h {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
}
.timeline-bar-h-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.timeline-bar-h-inner::-webkit-scrollbar { display: none; }
.tlh-item {
  flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.tlh-item:first-child { padding-left: 0; }
.tlh-item:last-child { border-right: none; }
.tlh-item:hover { background: var(--bg-subtle); }
.tlh-item.active { border-bottom-color: var(--gold); }
.tlh-era {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 2px;
}
.tlh-name {
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.tlh-item.active .tlh-name { color: var(--gold); }
.tlh-count { font-size: 0.6rem; color: var(--text-light); margin-top: 1px; }

/* ── IMAGE ARTICLE CARD ── */
.art-card-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.art-card {
  background: #fff;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none; color: inherit;
}
.art-card:hover { background: var(--bg-subtle); }
.art-card.card-hidden { display: none; }
.art-card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-subtle);
}
.art-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.art-card:hover .art-card-img-wrap img { transform: scale(1.04); }
.art-card-bar {
  height: 2px; width: 100%; flex-shrink: 0;
}
.art-card-bar.s { background: var(--storia); }
.art-card-bar.m { background: var(--materiali); }
.art-card-bar.v { background: var(--viaggi); }
.art-card-body {
  padding: 1.1rem 1.3rem 1.3rem;
  display: flex; flex-direction: column; flex: 1;
}
.art-card-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 0.45rem;
  display: flex; align-items: center; gap: 6px;
}
.card-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.card-dot.s { background: var(--storia); }
.card-dot.m { background: var(--materiali); }
.card-dot.v { background: var(--viaggi); }
.art-card-title {
  font-size: 0.97rem; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.3; color: var(--text);
  margin-bottom: 0.45rem;
}
.art-card-excerpt {
  font-size: 0.8rem; color: var(--text-mid);
  line-height: 1.6; margin-bottom: auto;
}
.art-card-meta {
  font-size: 0.66rem; color: var(--text-light);
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── SECTION WRAPPER (homepage) ── */
.home-section {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.home-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
}
.home-section-head .hs-label {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-light);
}
.home-section-head a {
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
}
.home-section-head a:hover { opacity: 0.7; }

/* ── PERCORSI GUIDATI ── */
.percorsi-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
  margin: 3rem 0;
}
.percorsi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.percorso-card {
  background: #fff;
  padding: 1.8rem;
  display: flex; flex-direction: column;
}
.percorso-eyebrow {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}
.percorso-eyebrow .pnum {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; flex-shrink: 0;
}
.percorso-card h3 {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.25; margin-bottom: 0.5rem; color: var(--text);
}
.percorso-card p {
  font-size: 0.8rem; color: var(--text-mid); line-height: 1.65;
  margin-bottom: 1.1rem;
}
.percorso-steps {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; margin-bottom: 1rem; flex: 1;
}
.pstep {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; font-size: 0.76rem; color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.pstep:last-child { border-bottom: none; }
.pstep.done { color: var(--text-mid); }
.pstep.current { background: #FBF8F0; color: var(--text); font-weight: 600; }
.pstep .pstep-num {
  width: 17px; height: 17px; border-radius: 50%;
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pstep.done .pstep-num   { background: var(--gold); color: #fff; font-size: 0.55rem; }
.pstep.current .pstep-num { background: var(--gold); color: #fff; }
.pstep.todo .pstep-num   { background: #F0F0F0; color: var(--text-light); }
.percorso-bar {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
}
.percorso-bar-track {
  flex: 1; height: 3px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.percorso-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; }
.percorso-bar-label { font-size: 0.66rem; color: var(--text-light); white-space: nowrap; }
.percorso-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; color: var(--text);
  border: 1px solid var(--border); padding: 7px 14px;
  border-radius: 4px; background: transparent;
  transition: all 0.15s; margin-top: 0.9rem; width: 100%;
  justify-content: center; cursor: pointer;
}
.percorso-btn:hover { border-color: var(--text); background: var(--text); color: #fff; }

/* ── TAG CLOUD (cross-section) ── */
.tags-cloud-v2 {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 1.8rem;
}
.tag-pill-v2 {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.76rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  color: var(--text-mid); background: #fff;
}
.tag-pill-v2:hover { border-color: var(--text-mid); color: var(--text); }
.tag-pill-v2.active { border-color: var(--gold); color: var(--gold); background: var(--gold-light); }
.tag-pill-v2 .tpv-count {
  font-size: 0.64rem; color: var(--text-light);
  background: var(--bg-subtle); padding: 0 5px;
  border-radius: 10px; min-width: 18px; text-align: center;
}
.tag-results-v2 {
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; display: none;
}
.tag-results-v2.visible { display: block; }
.tag-result-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s; cursor: pointer;
}
.tag-result-row:last-child { border-bottom: none; }
.tag-result-row:hover { background: var(--bg-subtle); }
.tag-result-thumb {
  width: 60px; height: 45px; border-radius: 3px;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-subtle);
}
.tag-result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-result-section {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 3px; display: flex; align-items: center; gap: 5px;
}
.tag-result-title { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.tag-result-meta  { font-size: 0.68rem; color: var(--text-light); margin-top: 2px; }

/* ── EDITORIAL STRIP (ticker) ── */
.editorial-strip {
  background: var(--text);
  padding: 10px 0; overflow: hidden;
}
.strip-inner {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: strip 45s linear infinite; width: max-content;
}
@keyframes strip {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip-item { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.strip-item span { color: rgba(255,255,255,0.75); }
.strip-sep { color: var(--gold); margin: 0 1rem; }

@media (max-width: 900px) {
  .art-card-img-grid { grid-template-columns: repeat(2, 1fr); }
  .percorsi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .art-card-img-grid { grid-template-columns: 1fr; }
}

/* ── "Presto" badge in nav for Materiali & Viaggi ─────────── */
.materiali-link::after,
.viaggi-link::after {
  content: "presto";
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--text-secondary);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
}

/* ============================================================
   PROGRESS SYSTEM
   ============================================================ */

/* Resume bar — top of homepage */
.resume-bar {
  display: none;
  background: var(--gold-light);
  border-bottom: 1px solid #e8d9a8;
  padding: 10px 0;
  font-size: 0.78rem;
  position: relative;
  z-index: 90;
}
.resume-bar .container {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.resume-bar-label {
  color: var(--text-mid);
  font-weight: 500;
}
.resume-bar-label strong { color: var(--gold); }
.resume-link-btn {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resume-link-btn:hover { color: var(--gold); }
.resume-dismiss {
  margin-left: auto; font-size: 1rem; color: var(--text-light);
  cursor: pointer; padding: 0 4px; flex-shrink: 0;
  background: none; border: none; line-height: 1;
}
.resume-dismiss:hover { color: var(--text); }

/* Read badge on articles */
.read-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.68rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.04em;
  margin-left: 6px;
}

/* Viaggi area tiles — lock/unlock */
.area-lock-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  display: flex; align-items: center; gap: 4px;
  pointer-events: none;
}
.area-lock-badge.unlocked {
  background: #e6f4ec; color: #2d7a4f;
  border: 1px solid #b3dfc4;
}
.area-lock-badge.locked {
  background: #f5f5f5; color: var(--text-light);
  border: 1px solid var(--border);
}

/* Viaggi lock banner on individual locked pages */
.viaggio-lock-banner {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--gold-light); border: 1px solid #e8d9a8;
  border-radius: 6px; padding: 1.2rem 1.5rem;
  margin: 0 auto 2rem; max-width: 760px;
  font-size: 0.85rem; color: var(--text-mid);
}
.viaggio-lock-banner .vlb-icon { font-size: 1.5rem; flex-shrink: 0; }
.viaggio-lock-banner strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 4px; }
