/*
Theme Name: Foro Romano Bea
Theme URI: https://example.com/foro-romano-bea
Author: Bea
Description: Tema WordPress a blocchi per una ricerca scolastica sul Foro Romano. Testi, immagini, colori e sezioni sono modificabili dall'Editor del sito.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foro-romano-bea
Tags: block-patterns, full-site-editing, education, one-column, custom-colors, custom-logo, editor-style
*/

:root {
  --fr-charcoal: #1f2428;
  --fr-charcoal-2: #2a2f33;
  --fr-ivory: #f7f1e7;
  --fr-gold: #e7c37a;
  --fr-terracotta: #b9573e;
  --fr-olive: #5d6247;
  --fr-muted: #c9c7c1;
  --fr-radius: 22px;
  --fr-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
.wp-site-blocks { min-height: 100vh; padding: 0 !important; }

/* Elimina qualsiasi spazio creato da WordPress tra header e copertina. */
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-group { margin-top: 0 !important; }
.fr-site-header + .fr-hero,
.wp-block-template-part + .fr-hero { margin-top: 0 !important; }

.fr-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231, 195, 122, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.fr-brand-row { min-height: 88px; }
.fr-monogram {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 241, 231, .45);
  border-radius: 999px;
  color: var(--fr-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .04em;
}
.fr-site-title a { text-decoration: none; letter-spacing: .10em; text-transform: uppercase; }
.fr-site-header .wp-block-navigation-item__content { text-decoration: none; opacity: .88; transition: .2s ease; }
.fr-site-header .wp-block-navigation-item__content:hover { opacity: 1; color: var(--fr-gold); }

.fr-hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0 !important;
}
.fr-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(247,241,231,0), var(--fr-ivory));
  z-index: 2;
}
.fr-hero .wp-block-cover__inner-container { position: relative; z-index: 3; width: 100%; }
.fr-hero-content { padding-top: clamp(70px, 9vw, 135px); padding-bottom: 180px; }
.fr-kicker { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .22em; font-weight: 700; }
.fr-kicker::before { content: ""; width: 48px; height: 2px; background: var(--fr-gold); }
.fr-hero-title {
  max-width: 1200px;
  margin-top: 18px !important;
  margin-bottom: 24px !important;
  font-size: clamp(4.1rem, 9.2vw, 9.4rem) !important;
  line-height: .92 !important;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 12px 50px rgba(0,0,0,.35);
}
.fr-hero-lead { max-width: 900px; font-size: clamp(1.12rem, 1.9vw, 1.62rem) !important; line-height: 1.62; text-shadow: 0 2px 14px rgba(0,0,0,.48); }
.fr-buttons .wp-block-button__link { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 10px 35px rgba(0,0,0,.20); transition: .2s ease; }
.fr-buttons .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 15px 42px rgba(0,0,0,.28); }
.fr-outline-button .wp-block-button__link { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.42) !important; backdrop-filter: blur(14px); }

.fr-stat-grid { margin-top: 42px !important; }
.fr-glass-card { height: 100%; border: 1px solid rgba(255,255,255,.28); border-radius: var(--fr-radius); background: linear-gradient(145deg, rgba(34,38,28,.58), rgba(40,32,27,.45)); box-shadow: var(--fr-shadow); backdrop-filter: blur(16px); }
.fr-glass-card h3 { margin-bottom: 8px; }
.fr-hero-credit { position: absolute; right: 20px; bottom: 18px; z-index: 5; max-width: 760px; padding: 7px 12px; border-radius: 10px; background: rgba(20,20,20,.72); color: #f4f1ea; font-size: .73rem; line-height: 1.35; }
.fr-hero-credit a { color: #fff; }

.fr-section { scroll-margin-top: 100px; }
.fr-section-label { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.fr-section-title { max-width: 920px; font-size: clamp(2.6rem, 5.8vw, 5.1rem) !important; line-height: 1.03 !important; letter-spacing: -.035em; }
.fr-section-copy { max-width: 800px; font-size: 1.12rem; line-height: 1.82; }

.fr-content-card { height: 100%; overflow: hidden; border: 1px solid rgba(31,36,40,.10); border-radius: var(--fr-radius); box-shadow: 0 18px 60px rgba(31,36,40,.08); transition: .2s ease; }
.fr-content-card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(31,36,40,.13); }
.fr-number { font-family: Georgia, "Times New Roman", serif; color: var(--fr-terracotta); font-size: 3rem; line-height: 1; }
.fr-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(185,87,62,.10); font-size: 1.5rem; }

.fr-photo-card { height: 100%; overflow: hidden; border-radius: var(--fr-radius); background: #fff; box-shadow: 0 18px 60px rgba(31,36,40,.10); }
.fr-photo-card .wp-block-image { margin: 0; }
.fr-photo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fr-photo-card .wp-element-caption,
.fr-image-caption { margin: 0; padding: 10px 18px 0; color: #666; font-size: .72rem; line-height: 1.45; }
.fr-photo-card .wp-element-caption a,
.fr-image-caption a { color: inherit; }
.fr-card-copy { padding: 24px 24px 28px; }
.fr-card-copy h3 { margin-top: 0; }

.fr-feature-image { border-radius: var(--fr-radius); overflow: hidden; box-shadow: var(--fr-shadow); }
.fr-feature-image img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.fr-feature-image figcaption { background: rgba(31,36,40,.96); color: #eee; margin: 0; padding: 11px 15px; font-size: .73rem; line-height: 1.45; }
.fr-feature-image figcaption a { color: #fff; }

.fr-dark-band { position: relative; overflow: hidden; }
.fr-dark-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -170px; border: 1px solid rgba(231,195,122,.25); border-radius: 999px; box-shadow: inset 0 0 0 40px rgba(231,195,122,.02), inset 0 0 0 80px rgba(231,195,122,.02); }
.fr-highlight { border-left: 4px solid var(--fr-gold); padding-left: 24px; }
.fr-source-box { border-top: 1px solid rgba(31,36,40,.16); border-bottom: 1px solid rgba(31,36,40,.16); }
.fr-source-list li { margin-bottom: .7rem; }
.fr-source-list a { overflow-wrap: anywhere; }

.fr-comparison { border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid rgba(31,36,40,.12); border-radius: 18px; }
.fr-comparison th { background: var(--fr-charcoal); color: var(--fr-ivory); }
.fr-comparison th, .fr-comparison td { padding: 16px; border-bottom: 1px solid rgba(31,36,40,.10); text-align: left; vertical-align: top; }

.fr-presentation-button { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
.fr-presentation-button .wp-block-button__link { box-shadow: 0 14px 45px rgba(0,0,0,.30); }
body.foro-presentation-mode .fr-site-header,
body.foro-presentation-mode .fr-site-footer { display: none; }
body.foro-presentation-mode .fr-hero { min-height: 100vh; }
body.foro-presentation-mode .fr-section-title { font-size: clamp(3.4rem, 7vw, 6.4rem) !important; }
body.foro-presentation-mode .fr-section-copy { font-size: 1.32rem; }
.fr-site-footer a { color: inherit; }

@media (max-width: 900px) {
  .fr-brand-row { min-height: 74px; }
  .fr-hero { min-height: auto; }
  .fr-hero-content { padding-top: 90px; padding-bottom: 145px; }
  .fr-hero-title { font-size: clamp(3.5rem, 15vw, 7rem) !important; }
  .fr-stat-grid { grid-template-columns: 1fr !important; }
  .fr-site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--fr-charcoal); color: var(--fr-ivory); padding: 30px; }
  .fr-hero-credit { left: 14px; right: 14px; bottom: 12px; }
}

@media (max-width: 560px) {
  .fr-monogram { width: 42px; height: 42px; }
  .fr-site-title { font-size: .95rem !important; }
  .fr-hero-content { padding-top: 65px; }
  .fr-kicker { font-size: .72rem !important; }
  .fr-kicker::before { width: 28px; }
  .fr-hero-lead { font-size: 1.04rem !important; }
  .fr-buttons { gap: 12px !important; }
  .fr-buttons .wp-block-button { width: 100%; }
  .fr-presentation-button { right: 12px; bottom: 12px; }
  .fr-presentation-button .wp-block-button__link { font-size: .85rem; padding: .75rem 1rem; }
}


/* Versione 3: impaginazione del testo completo fornito da Bea. */
.fr-research-inner { max-width: 1050px; }
.fr-research-section .fr-section-title { max-width: 980px; margin-bottom: 34px !important; }
.fr-subsection-title { margin-top: 46px !important; margin-bottom: 18px !important; font-size: clamp(1.75rem, 3.3vw, 2.65rem) !important; line-height: 1.16 !important; }
.fr-mini-title { margin-top: 30px !important; margin-bottom: 12px !important; font-size: clamp(1.25rem, 2.3vw, 1.7rem) !important; }
.fr-research-paragraph { max-width: 880px; font-size: 1.08rem; line-height: 1.82; }
.fr-emphasis-line { display: inline-block; margin: 12px 0 22px !important; padding: 12px 17px; border-radius: 12px; background: rgba(185,87,62,.10); color: var(--fr-charcoal); font-size: 1.08rem; }
.fr-research-quote { max-width: 900px; margin: 24px 0 !important; padding: 20px 26px; border-left: 4px solid var(--fr-terracotta); border-radius: 0 16px 16px 0; background: rgba(231,195,122,.14); }
.fr-research-quote p { font-size: 1.1rem; line-height: 1.78; }
.fr-research-list { max-width: 880px; padding-left: 1.4rem; }
.fr-research-list li { margin-bottom: .72rem; line-height: 1.66; }
.fr-research-divider { margin: 44px 0 !important; opacity: .25; }
.fr-inline-research-image { max-width: 880px; margin: 24px 0 30px !important; }
.fr-research-section .wp-block-table { max-width: 100%; overflow-x: auto; }
@media (max-width: 700px) {
  .fr-research-section { padding-left: 20px; padding-right: 20px; }
  .fr-research-quote { padding: 16px 18px; }
  .fr-subsection-title { margin-top: 34px !important; }
}
