/* ============================================
   STUDIO FC — Stylesheet
   Dott. Matteo Franceschini
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #2C2C2C;
  --navy-mid:   #3A3A3A;
  --navy-light: #4A4A4A;
  --gold:       #B8933F;
  --gold-light: #CFA85A;
  --cream:      #F4F3F0;
  --cream-dark: #ECEAE5;
  --text-main:  #1A1A1A;
  --text-muted: #666560;
  --text-light: #999790;
  --border:     rgba(44, 44, 44, 0.12);
  --border-mid: rgba(44, 44, 44, 0.22);
  --white:      #FFFFFF;
  --font-display: 'Book Antiqua', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:     4px;
  --radius-lg:  8px;
  --transition: 0.22s ease;
  --shadow:     0 2px 20px rgba(44, 44, 44, 0.08);
  --shadow-lg:  0 8px 40px rgba(44, 44, 44, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Typography ---- */
.display { font-family: var(--font-display); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Layout ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; padding: 12px 24px;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--navy); color: var(--white);
}
.btn-primary:hover { background: var(--navy-mid); }

.btn-outline {
  background: transparent; color: var(--navy);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover { border-color: var(--navy); background: rgba(44,44,44,0.04); }

.btn-gold {
  background: var(--gold); color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1080px; margin: 0 auto; padding: 0 2rem;
}
.nav__logo {
  display: flex; flex-direction: column; gap: 1px; text-decoration: none;
}
.nav__logo-name {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.06em;
}
.nav__logo-sub {
  font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.nav__links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav__links a {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  transition: color var(--transition); 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 var(--transition); transform-origin: left;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active { color: var(--navy); }
.nav__links a.active::after { transform: scaleX(1); }

.nav__cta { margin-left: 1rem; }

/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); transition: var(--transition);
}
.nav__mobile {
  display: none; position: fixed; inset: 68px 0 0 0;
  background: var(--cream); padding: 2rem; z-index: 190;
  flex-direction: column; gap: 1.5rem;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a { font-size: 18px; font-family: var(--font-display); color: var(--navy); }

/* ---- Hero ---- */
.hero {
  padding: 7rem 0 5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.hero::before {
  content: 'FC';
  position: absolute; right: -2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: clamp(160px, 20vw, 260px);
  font-weight: 600; color: rgba(44, 44, 44, 0.04);
  pointer-events: none; user-select: none; line-height: 1;
}
.hero__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: center;
}
.hero__label { margin-bottom: 1.2rem; }
.hero__title {
  margin-bottom: 1.4rem; color: var(--navy);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__desc { font-size: 17px; line-height: 1.75; margin-bottom: 2.2rem; max-width: 520px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 2rem;
  box-shadow: var(--shadow);
}
.hero__card-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 1.2rem;
}
.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.pill {
  font-size: 12px; padding: 5px 13px; border-radius: 20px;
  background: var(--cream); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 400;
}
.hero__stats { display: flex; gap: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.hero__stat-n { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy); }
.hero__stat-l { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ---- Section intros ---- */
.section-intro { margin-bottom: 3rem; }
.section-intro .label { margin-bottom: 0.6rem; }
.section-intro h2 { color: var(--navy); margin-bottom: 0.8rem; }
.section-intro p { max-width: 560px; }

.section-intro--center { text-align: center; }
.section-intro--center p { margin: 0 auto; }

/* ---- Services ---- */
.services { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.service-card {
  background: var(--white); padding: 2rem 1.8rem;
  transition: background var(--transition);
  cursor: default;
}
.service-card:hover { background: var(--cream); }
.service-card__num {
  font-family: var(--font-display); font-size: 22px; color: var(--gold);
  margin-bottom: 1rem; font-weight: 500;
}
.service-card__icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.35; }
.service-card p { font-size: 14px; line-height: 1.65; }
.service-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--navy-mid);
  margin-top: 1rem; opacity: 0; transition: opacity var(--transition);
}
.service-card:hover .service-card__more { opacity: 1; }

/* ---- Founder ---- */
.founder { background: var(--cream); }
.founder__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.founder__visual {
  position: relative;
}
.founder__avatar-wrap {
  width: 100%; padding-bottom: 100%; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--navy);
}
.founder__avatar-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
}
.founder__initials {
  font-family: var(--font-display); font-size: 96px; font-weight: 600;
  color: rgba(255,255,255,0.12); line-height: 1;
}
.founder__name-overlay {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  color: rgba(255,255,255,0.7); letter-spacing: 0.08em;
}
.founder__role-overlay { font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; }
.founder__accent {
  position: absolute; bottom: -12px; right: -12px;
  width: 80px; height: 80px; border-radius: var(--radius-lg);
  background: var(--gold); opacity: 0.9;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 600; color: white;
}

.founder__content .label { margin-bottom: 0.6rem; }
.founder__content h2 { color: var(--navy); margin-bottom: 1.2rem; }
.founder__content p { margin-bottom: 1rem; font-size: 15px; }
.founder__credentials { margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.credential {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.credential:last-child { border-bottom: none; }
.credential__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  flex-shrink: 0; margin-top: 7px;
}
.credential__label { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 2px; }
.credential__value { font-size: 13px; color: var(--text-muted); }

/* ---- Values ---- */
.values { background: var(--navy); }
.values .label { color: var(--gold-light); }
.values h2 { color: var(--white); }
.values .section-intro p { color: rgba(255,255,255,0.5); }

.values__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden; }
.value-card {
  background: rgba(255,255,255,0.03); padding: 2.5rem 2rem;
  transition: background var(--transition);
}
.value-card:hover { background: rgba(255,255,255,0.06); }
.value-card__num {
  font-family: var(--font-display); font-size: 52px; font-weight: 600;
  color: rgba(196, 160, 90, 0.25); line-height: 1; margin-bottom: 1.2rem;
}
.value-card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 0.6rem; }
.value-card p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ---- Contact ---- */
.contact { background: var(--white); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.contact__info .label { margin-bottom: 0.6rem; }
.contact__info h2 { color: var(--navy); margin-bottom: 1rem; }
.contact__info p { margin-bottom: 2rem; }

.contact__details { display: flex; flex-direction: column; gap: 0; }
.contact__detail {
  display: grid; grid-template-columns: 100px 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.contact__detail:last-child { border-bottom: none; }
.contact__detail-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); padding-top: 2px; }
.contact__detail-value { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.contact__detail-value a { color: var(--navy-mid); transition: color var(--transition); }
.contact__detail-value a:hover { color: var(--gold); }

.contact__map-area {
  background: var(--cream); border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; min-height: 360px; position: relative;
  display: flex; flex-direction: column;
}
.map-placeholder {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem; padding: 2rem;
}
.map-pin {
  width: 48px; height: 48px; border-radius: 50% 50% 50% 0;
  background: var(--navy); transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
}
.map-pin::after {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream); transform: rotate(45deg);
}
.map-addr {
  font-family: var(--font-display); font-size: 16px; color: var(--navy);
  text-align: center; font-style: italic; line-height: 1.5;
}
.map-link {
  font-size: 12px; font-weight: 500; color: var(--navy-mid); letter-spacing: 0.06em;
  padding: 8px 20px; border: 1px solid var(--border-mid); border-radius: var(--radius);
  transition: var(--transition);
}
.map-link:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ---- Footer ---- */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner {
  max-width: 1080px; margin: 0 auto; padding: 3rem 2rem 2rem;
}
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer__logo-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,0.85); letter-spacing: 0.06em; margin-bottom: 0.4rem;
}
.footer__logo-sub { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer__desc { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer__col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer__links a:hover { color: rgba(255,255,255,0.85); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer__copy { color: rgba(255,255,255,0.3); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer__legal a:hover { color: rgba(255,255,255,0.6); }

/* ---- Divider ---- */
hr.divider { border: none; border-top: 1px solid var(--border); }

/* ---- CSR banner ---- */
.csr-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.csr-banner__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.csr-banner h3 { font-family: var(--font-display); font-size: 1.4rem; color: white; margin-bottom: 0.4rem; }
.csr-banner p { font-size: 14px; color: rgba(255,255,255,0.55); }
.btn-outline-light {
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25); white-space: nowrap;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up--1 { animation-delay: 0.1s; }
.fade-up--2 { animation-delay: 0.2s; }
.fade-up--3 { animation-delay: 0.3s; }
.fade-up--4 { animation-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .founder__inner { grid-template-columns: 1fr; }
  .founder__visual { max-width: 320px; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .values__grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .hero::before { display: none; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .csr-banner__inner { flex-direction: column; text-align: center; }
  .container, .container--narrow { padding: 0 1.2rem; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { text-align: center; justify-content: center; }
}
</style>

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 1.2rem 2rem;
  display: none; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__text {
  flex: 1; min-width: 220px;
  font-family: var(--font-body); font-size: 13px;
  color: rgba(255,255,255,0.65); line-height: 1.55;
}
.cookie-banner__text a { color: var(--gold-light); text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 0.6rem; flex-wrap: wrap; flex-shrink: 0; }
.cookie-banner .btn-cookie-accept {
  background: var(--gold); color: #fff; border: none;
  padding: 9px 20px; font-family: var(--font-body);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  cursor: pointer; transition: background 0.2s;
}
.cookie-banner .btn-cookie-accept:hover { background: var(--gold-light); }
.cookie-banner .btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 9px 18px; font-family: var(--font-body);
  font-size: 12px; cursor: pointer; transition: border-color 0.2s;
}
.cookie-banner .btn-cookie-decline:hover { border-color: rgba(255,255,255,0.5); }
