/* ============================================
   SEMANTIA.IT — style.css
   Design System: Report Grafico Tecnico.md
   ============================================ */

/* ---------- 1. CSS Variables (Token) ---------- */

:root {
  --navy:   #162235;
  --navy-2: #1E3352;
  --navy-3: #243C59;
  --gold:   #B8861F;
  --gold-2: #C9982A;
  --bg:     #FFFFFF;
  --bg-2:   #F4F2EE;
  --bg-3:   #EDEAE3;
  --text:   #162235;
  --muted:  #5C5757;
  --border: #DDD9D0;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Outfit', sans-serif;
}

/* ---------- 2. Reset & Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- 3. Layout ---------- */

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 4rem;
  padding-right: 4rem;
}

section {
  padding: 6rem 0;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ---------- 4. Typography ---------- */

/* Hero H1 */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 1.03;
  color: var(--navy);
  max-width: 950px;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

/* Section titles */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  margin-top: 0.8rem;
}

.section-title em {
  font-style: italic;
  opacity: 0.45;
}

/* Card titles */
.card-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}

/* Post card titles */
.post-card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

/* Label uppercase */
.label {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 1.18rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
}

/* Card text */
.card-text {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.75;
}

/* CTA intro text */
.cta-intro {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

/* CTA note */
.cta-note {
  font-size: 0.8rem;
  color: var(--border);
  margin-top: 3rem;
}

/* ---------- 5. Buttons ---------- */

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-navy:hover {
  background: var(--navy-2);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0;
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 400;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-block;
}

.card-link:hover {
  opacity: 0.65;
}

.card-link-navy {
  color: var(--navy);
}

.card-link-gold {
  color: var(--gold);
}

/* ---------- 6. Badges & Tags ---------- */

.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.28rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.badge-navy {
  background: var(--navy);
}

.badge-gold {
  background: var(--gold);
}

.tag {
  display: inline-block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0.3rem 0.85rem;
}

/* ---------- 7. Cards ---------- */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2.8rem;
}

.card-navy {
  border-top: 3px solid var(--navy);
}

.card-gold {
  border-top: 3px solid var(--gold);
}

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
}

/* Post card icon */
.post-card-icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-card-text {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 8. Navbar ---------- */

#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(22, 34, 53, 0.08);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a.active {
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- 9. Hero ---------- */

.hero {
  position: relative;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-line {
  position: absolute;
  left: 4rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  font-family: var(--serif);
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 300;
  color: var(--navy);
  opacity: 0.035;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

/* ---------- 10. Section Backgrounds ---------- */

.bg-white {
  background: var(--bg);
}

.bg-cream {
  background: var(--bg-2);
}

.bg-navy {
  background: var(--navy);
}

/* ---------- 11. Dark Section Treatment ---------- */

.bg-navy .section-title,
.bg-navy .card-title {
  color: #fff;
}

.bg-navy .label {
  color: var(--gold-2);
}

.bg-navy .card-text {
  color: #fff;
}

.bg-navy .btn-navy {
  background: var(--gold-2);
  color: #fff;
}

.bg-navy .btn-navy:hover {
  background: var(--gold);
}

/* Catalogo grid */
.catalogo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.catalogo-item {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.catalogo-item:nth-child(2n) {
  border-right: none;
}

.catalogo-item:nth-child(3),
.catalogo-item:nth-child(4) {
  border-bottom: none;
}

.catalogo-item summary {
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.catalogo-item summary::-webkit-details-marker {
  display: none;
}

.catalogo-item-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  transition: color 0.2s;
}

.catalogo-item[open] .catalogo-item-title,
.catalogo-item summary:hover .catalogo-item-title {
  color: var(--gold-2);
}

.catalogo-intro {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

.catalogo-desc {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

.catalogo-counter {
  font-size: 1.08rem;
  color: var(--gold-2);
  letter-spacing: 0.04em;
}

.catalogo-list li {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 0;
}

.catalogo-list li:last-child {
  border-bottom: none;
}

.catalogo-list li strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  display: block;
  margin-bottom: 0.2rem;
}

/* Expand icon */
.expand-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.35s, background 0.2s;
}

.catalogo-item[open] .expand-icon {
  transform: rotate(45deg);
  background: rgba(184, 134, 31, 0.1);
}

/* ---------- 12. KV Table ---------- */

.kv-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.kv-row:last-child {
  border-bottom: 1px solid var(--border);
}

.kv-key {
  font-size: 1.10rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.kv-val {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 13. Blockquote ---------- */

blockquote {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

/* ---------- 14. AI Act Box ---------- */

.ai-act-box {
  background: var(--navy);
  border-radius: 4px;
  padding: 4.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ai-act-cta {
  min-width: 240px;
}

.ai-act-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-2);
}

.ai-act-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
}

.ai-act-text {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
}

.ai-act-watermark {
  position: absolute;
  right: -1rem;
  bottom: -3rem;
  font-family: var(--serif);
  font-size: clamp(7rem, 14vw, 14rem);
  font-weight: 300;
  color: #fff;
  opacity: 0.025;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Check list */
.check-list li {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.check-list li::before {
  content: '\2713';
  color: var(--gold-2);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- 15. Percorsi Grid ---------- */

.percorsi-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
}

/* ---------- 16. Testimonials ---------- */

.testimonial {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

.testimonial-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

.testimonial-author {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 1rem;
}

.testimonial-role {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- 17. Services Page ---------- */

.service-section {
  padding: 5rem 0;
}

.service-section:nth-child(odd) {
  background: var(--bg);
}

.service-section:nth-child(even) {
  background: var(--bg-2);
}

.service-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.service-text {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
}

.service-text + .service-text {
  margin-top: 1rem;
}

.service-list {
  margin-top: 1.5rem;
}

.service-list li {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.75;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- 18. Contact Page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-label {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.contact-info-value {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-info-value a {
  color: var(--muted);
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: var(--navy);
}

/* ---------- 19. Form ---------- */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5757' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--navy);
}

.form-consent label {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-consent a {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- 20. FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- 21. Privacy Page ---------- */

.privacy-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.privacy-content h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.privacy-content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.privacy-content ul {
  margin-bottom: 1rem;
}

.privacy-content ul li {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.privacy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.privacy-content th,
.privacy-content td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.privacy-content th {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.privacy-content td {
  color: var(--muted);
}

.privacy-content strong {
  color: var(--navy);
  font-weight: 600;
}

.privacy-content a {
  color: var(--navy);
  text-decoration: underline;
  transition: color 0.2s;
}

.privacy-content a:hover {
  color: var(--gold);
}

/* ---------- 22. Grazie Page ---------- */

.grazie-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.grazie-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.grazie-text {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ---------- 23. 404 Page ---------- */

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404-code {
  font-family: var(--serif);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 300;
  color: var(--navy);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
}

.page-404-text {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ---------- 24. Footer ---------- */

#footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--navy);
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- 25. Fade-Up Animation ---------- */

.fade-up {
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js-anim .fade-up {
  opacity: 0;
  transform: translateY(24px);
}

.js-anim .fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- 26. Privacy Banner Animation ---------- */

@keyframes bannerSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------- 27. CTA Section ---------- */

.cta-section {
  padding: 9rem 0;
  text-align: center;
}

.cta-section .section-title {
  margin-bottom: 1.5rem;
}

.cta-section .cta-intro {
  margin: 0 auto 2.5rem;
}

/* ---------- 28. Books Section ---------- */

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

.book-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
}

.book-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.book-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* ---------- 29. Logos Section ---------- */

.logos-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.logos-row img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.logos-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- 30. Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .section-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .navbar-inner {
    padding: 0 2rem;
  }

  .footer-inner {
    padding: 0 2rem;
  }

  section {
    padding: 5rem 0;
  }

  .cta-section {
    padding: 5rem 0;
  }

  .percorsi-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-item:nth-child(2n) {
    border-right: none;
  }

  .catalogo-item:nth-child(odd) {
    border-right: none;
  }

  .catalogo-item:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .catalogo-item:last-child {
    border-bottom: none;
  }

  .ai-act-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .kv-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .navbar-inner {
    padding: 0 1.5rem;
  }

  .footer-inner {
    padding: 0 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  section {
    padding: 4rem 0;
  }

  .cta-section {
    padding: 4rem 0;
  }

  #footer {
    padding: 2rem 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-line {
    display: none;
  }

  .card {
    padding: 2rem;
  }

  .ai-act-box {
    padding: 2rem;
  }

  .catalogo-item summary {
    padding: 1.5rem;
  }
}

/* Small mobile (375px test) */
@media (max-width: 400px) {
  .section-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .navbar-inner {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }
}

/* ===== SHIMMER EFFECT (hero) — effetto opzionale, rimuovibile cancellando fino a "FINE SHIMMER" ===== */
.shimmer-text {
  background: currentColor linear-gradient(
    to right,
    currentColor 0%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.6) 60%,
    currentColor 100%
  );
  background-size: 50% 200%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerMove 3s linear 1.5s infinite;
}

@keyframes shimmerMove {
  0%   { background-position-x: -100%; }
  50%  { background-position-x: 250%; }
  100% { background-position-x: 250%; }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-text {
    animation: none;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
/* ===== FINE SHIMMER EFFECT ===== */
