/*
Theme Name: Ferdinando Sebastiani Gutenberg
Theme URI: https://ferdinandosebastiani.com/
Author: Custom recovery theme
Description: Tema WordPress a blocchi, leggero e senza page builder, progettato per l'Associazione Culturale APS Ferdinando Sebastiani.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: ferdinando-sebastiani
*/

:root {
  --fs-blue: #2e3286;
  --fs-blue-deep: #20245f;
  --fs-gold: #fed700;
  --fs-cream: #faf9f5;
  --fs-ink: #252525;
  --fs-muted: #676767;
  --fs-white: #ffffff;
  --fs-shadow: 0 18px 50px rgba(26, 30, 88, .12);
  --fs-radius: 18px;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: .18em; }

.fs-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(46,50,134,.08);
}

.fs-brand img { width: 88px; height: 88px; object-fit: contain; }
.fs-brand-title { line-height: 1.05; }
.fs-nav .wp-block-navigation-item__content { text-decoration: none; font-weight: 650; }
.fs-nav .wp-block-navigation-item__content:hover { color: var(--fs-blue); }

.fs-hero {
  min-height: clamp(620px, 78vh, 820px);
  align-items: center;
}
.fs-hero .wp-block-cover__background { background: linear-gradient(100deg, rgba(18,21,64,.92) 0%, rgba(18,21,64,.70) 52%, rgba(18,21,64,.30) 100%) !important; opacity: 1 !important; }
.fs-hero .wp-block-cover__image-background { object-position: center left; }
.fs-kicker { letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; font-weight: 750; }
.fs-hero-title { max-width: 980px; text-wrap: balance; }
.fs-hero-copy { max-width: 680px; }

.fs-section { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); }
.fs-section-tight { padding-top: 64px; padding-bottom: 64px; }
.fs-section-title { max-width: 820px; text-wrap: balance; }
.fs-lead { font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.75; }

.fs-image-card img,
.fs-card img,
.fs-gallery img {
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-shadow);
}

.fs-card {
  height: 100%;
  border-radius: var(--fs-radius);
  overflow: hidden;
  box-shadow: var(--fs-shadow);
  background: var(--fs-white);
}
.fs-card .wp-block-group { height: 100%; }
.fs-card img { border-radius: var(--fs-radius) var(--fs-radius) 0 0; box-shadow: none; aspect-ratio: 4 / 3; object-fit: cover; }
.fs-card-body { padding: 26px 28px 32px; }

.fs-blue-panel {
  background: linear-gradient(145deg, var(--fs-blue-deep), var(--fs-blue));
  color: var(--fs-white);
}
.fs-blue-panel h2, .fs-blue-panel h3 { color: var(--fs-gold); }

.fs-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .28s ease, box-shadow .28s ease;
}
.fs-gallery figure { overflow: hidden; border-radius: var(--fs-radius); }
.fs-gallery figure:hover img { transform: scale(1.025); }

.fs-supporter {
  border: 1px solid rgba(46,50,134,.10);
  border-radius: var(--fs-radius);
  background: var(--fs-white);
  box-shadow: 0 12px 35px rgba(26,30,88,.08);
  padding: clamp(22px, 3vw, 36px);
  height: 100%;
}
.fs-supporter img { max-height: 190px; width: 100%; object-fit: contain; }

.fs-contact {
  border-radius: 28px;
  background: var(--fs-blue);
  color: var(--fs-white);
  box-shadow: var(--fs-shadow);
  overflow: hidden;
}
.fs-contact h2 { color: var(--fs-gold); }
.fs-contact a:not(.wp-element-button) { color: var(--fs-white); }

.wp-element-button,
.wp-block-button__link {
  transition: transform .2s ease, box-shadow .2s ease;
  font-weight: 750;
}
.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.fs-site-footer { border-top: 1px solid rgba(46,50,134,.10); }
.fs-footer-logo img { width: 78px; height: 78px; object-fit: contain; }

@media (max-width: 781px) {
  .fs-site-header { position: relative; }
  .fs-hero { min-height: 650px; }
  .fs-hero .wp-block-cover__image-background { object-position: 34% center; }
  .fs-card { margin-bottom: 18px; }
  .fs-contact { border-radius: 20px; }
}


/* Content-rich landing additions */
.fs-hero-note { max-width: 720px; font-weight: 750; font-size: 1.08rem; }
.fs-runs-badge {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--fs-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(46,50,134,.06);
}
.fs-runs-badge p { margin: 0; }

.fs-team-wrap { padding-top: 14px; border-top: 1px solid rgba(46,50,134,.10); }
.fs-team-grid { gap: 14px !important; margin-bottom: 14px; }
.fs-team-grid .wp-block-column {
  background: var(--fs-white);
  border: 1px solid rgba(46,50,134,.10);
  border-radius: 14px;
  padding: 18px 20px;
}
.fs-team-grid p { margin: 0; line-height: 1.35; }
.fs-team-grid span { color: var(--fs-muted); font-size: .92rem; }

.fs-activity-grid { align-items: stretch; }
.fs-activity-grid .fs-card { min-width: 0; }
.fs-card h3 { margin-top: 0; }
.fs-card-body a { font-weight: 750; text-decoration: none; }
.fs-card-body a:hover { text-decoration: underline; }

.fs-cta-inline,
.fs-course-box {
  margin-top: 30px;
  padding: 24px 26px;
  border-radius: 16px;
  background: rgba(46,50,134,.06);
  border: 1px solid rgba(46,50,134,.10);
}
.fs-cta-inline h3 { margin-top: 0; }
.fs-course-list {
  columns: 2;
  column-gap: 34px;
  margin-bottom: 0;
}
.fs-course-list li { margin-bottom: .45rem; }
.fs-highlight {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--fs-blue-deep);
  background: var(--fs-gold);
}

.fs-mini-gallery img { border-radius: 14px; box-shadow: var(--fs-shadow); }
.fs-mini-gallery figure { overflow: hidden; border-radius: 14px; }

.fs-project-grid { align-items: stretch; gap: 22px !important; margin-top: 40px; }
.fs-project-card {
  height: 100%;
  padding: 28px;
  border-radius: var(--fs-radius);
  background: var(--fs-cream);
  border-top: 4px solid var(--fs-gold);
  box-shadow: 0 12px 35px rgba(26,30,88,.08);
}
.fs-project-card h3 { margin-top: 0; }
.fs-project-card li { margin-bottom: .55rem; }

.fs-supporter-grid { align-items: stretch; }
.fs-supporter { display: flex; align-items: center; justify-content: center; min-height: 230px; }
.fs-supporter figure { width: 100%; margin: 0; }
.fs-supporter img { max-height: 170px; }
.fs-supporter:first-child img { max-height: 210px; }

.fs-contact-details h3 { margin-bottom: .35rem; }
.fs-contact-details p { margin-top: 0; }
.fs-contact-separator { opacity: .22; margin-top: 36px; margin-bottom: 28px; }
.fs-social { margin: 0; }
.fs-social .wp-social-link { transition: transform .2s ease; }
.fs-social .wp-social-link:hover { transform: translateY(-2px); }

.fs-brand-copy { gap: 0 !important; }
.fs-brand-copy p { margin: 0; }

@media (max-width: 1100px) {
  .fs-activity-grid { flex-wrap: wrap !important; }
  .fs-activity-grid > .wp-block-column { flex-basis: calc(50% - 14px) !important; }
}

@media (max-width: 781px) {
  .fs-brand img { width: 72px !important; height: 72px !important; }
  .fs-course-list { columns: 1; }
  .fs-team-grid { display: grid !important; grid-template-columns: 1fr 1fr; }
  .fs-activity-grid > .wp-block-column { flex-basis: 100% !important; }
  .fs-project-grid { display: grid !important; grid-template-columns: 1fr; }
  .fs-supporter { min-height: 180px; }
  .fs-brand-copy { display: none; }
}

@media (max-width: 520px) {
  .fs-team-grid { grid-template-columns: 1fr; }
  .fs-hero-title { font-size: clamp(2.7rem, 16vw, 4.4rem) !important; }
}
