:root {
  --orange: #4F63A0;
  --teal: #2E93B4;
  --gold: #C2A572;
  --gold-dark: #B08F5C;
  --taupe: #857A6C;
  --dark: #211E1B;
  --cream: #FBF9F6;
  --line: #E7E1D8;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- topbar ---------- */
.topbar { background: var(--taupe); color: #fff; font-size: 12px; letter-spacing: .03em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .left { display:flex; align-items:center; gap: 18px; }
.topbar .right { display:flex; align-items:center; gap: 18px; }
.topbar .search { display:flex; align-items:center; background: rgba(255,255,255,.16); border-radius: 12px; padding: 3px 10px; gap: 6px; }
.topbar .search input { border: none; background: transparent; outline: none; color: #fff; font-size: 12px; width: 110px; }
.topbar .search input::placeholder { color: rgba(255,255,255,.8); }
.topbar .search svg { width: 13px; height: 13px; }
.lang-switch { display:flex; gap: 8px; }
.lang-switch a { opacity: .65; font-weight: 700; }
.lang-switch a.active { opacity: 1; text-decoration: underline; }
.topbar .social { display: flex; gap: 12px; }

/* ---------- header ---------- */
header.site { border-bottom: 1px solid var(--line); position: relative; z-index: 40; background: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 16px; }
.logo { font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.logo.logo-with-seal { display: flex; align-items: center; gap: 14px; }
.header-seal { width: 57px; height: 57px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo.logo-official { display: flex; align-items: center; flex-shrink: 0; }
.logo.logo-official img { height: 62px; width: auto; }
.logo-official-footer { display: inline-flex; }
.logo-official-footer img { height: 48px; width: auto; }
.logo .l1 { color: var(--orange); display:block; }
.logo .l2 { color: var(--teal); display:block; }
.logo .l3-row { display:flex; align-items:baseline; gap:4px; }
.logo .de { color: var(--dark); font-weight: 500; font-size: 13px; }
.logo .l3 { color: var(--gold-dark); }

nav.main { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 12.5px; text-transform: none; white-space: nowrap; }
nav.main > a { padding: 6px 0; position: relative; }
nav.main > a.active, nav.main > .has-sub.active > span { color: var(--orange); }
nav.main > .has-sub { position: relative; }
nav.main > .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
nav.main .has-sub > span { cursor: default; display:flex; align-items:center; gap:4px; }
nav.main .sub {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  border: 1.5px solid #C9CDD3; border-radius: 4px; box-shadow: 0 14px 26px rgba(0,0,0,.10);
  min-width: 180px; padding: 0; margin-top: 10px; overflow: hidden;
}
nav.main .has-sub:hover .sub { display: block; }
nav.main .sub a {
  display: block; padding: 11px 14px; font-weight: 800; font-size: 11px;
  color: var(--gold-dark); border-bottom: 1px solid #E4E6E9; letter-spacing: .01em;
}
nav.main .sub a:last-child { border-bottom: none; }
nav.main .sub a:hover { background: var(--cream); color: var(--orange); }
nav.main .sub a .sub-detail { font-weight: 400; font-style: italic; color: #C9B98A; margin-left: 4px; }

.header-icons { display: flex; align-items: center; gap: 16px; }
.header-icons .search { display:flex; align-items:center; background: var(--orange); border-radius: 20px; padding: 8px 14px; gap:8px; }
.header-icons .search input { border: none; background: transparent; outline: none; color: #fff; font-size: 13px; width: 120px; }
.header-icons .search input::placeholder { color: rgba(255,255,255,.8); }
.header-icons svg { width: 18px; height: 18px; }

.nav-panel { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--dark); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 62vh; min-height: 420px; background-size: cover; background-position: center; display:flex; align-items:center; justify-content:center; }
.hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.hero-band { position: relative; z-index: 2; text-align:center; padding: 0 24px; max-width: 900px; }
.hero-band p { color:#fff; font-weight:800; margin:0; line-height:1.35; font-size: clamp(17px, 2.8vw, 32px); text-shadow: 0 2px 12px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.5); }
.hero-claim { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero-claim .eyebrow { font-weight: 800; font-size: 18px; line-height: 1.15; }
.hero-claim .eyebrow .a, .hero-claim .eyebrow .c { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-claim .eyebrow .b { color: #fff; font-size: 36px; display:block; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-claim h1 { font-size: 34px; margin: 8px 0 0; color: #fff; font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero .tag {
  position: absolute; left: 0; right:0; bottom: -56px; margin: 0 auto; max-width: var(--maxw); padding: 0 24px;
}
.hero-donate {
  position: fixed; top: 90px; right: 24px; background: var(--orange); color: #fff; text-align: center;
  padding: 14px 18px; font-weight: 800; font-size: 13px; line-height: 1.3; border-radius: 4px;
  z-index: 60; box-shadow: 0 10px 24px rgba(0,0,0,.22); animation: donate-in .4s ease-out;
}
.hero-donate-img {
  position: fixed; bottom: 18px; right: 18px; top: auto; display: block; z-index: 60;
  width: 132px; height: 85px; border-radius: 14px; overflow: hidden; text-decoration: none;
  background: linear-gradient(180deg, #c9b27c 0%, #b39a5e 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.28); animation: donate-in .4s ease-out;
}
.hero-donate-img .bd-sec { position:absolute; left:-4px; top:-14px; font: 900 82px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing:-5px; color:#fff; }
.hero-donate-img .bd-de { position:absolute; right:10px; bottom:-8px; font: 900 34px/1 "Helvetica Neue", Arial, sans-serif; color:#fff; }
.hero-donate-img .bd-txt { position:absolute; left:12px; top:24px; font: 900 25px/0.95 "Helvetica Neue", Arial, sans-serif; color:#000; letter-spacing:-1px; }
.hero-donate-img .bd-close { position:absolute; top:5px; right:5px; width:20px; height:20px; border-radius:50%; background:#a3411a; color:#fff; font:700 12px/20px Arial, sans-serif; text-align:center; cursor:pointer; z-index:2; }
@keyframes donate-in { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.claim { padding-top: 40px; padding-bottom: 40px; }
.claim .eyebrow { font-weight: 800; font-size: 18px; line-height: 1.15; }
.claim .eyebrow .a { color: var(--orange); }
.claim .eyebrow .b { color: var(--orange); font-size: 32px; display:block; }
.claim .eyebrow .c { color: var(--orange); }
.claim h1 { font-size: 36px; margin: 6px 0 0; color: var(--teal); font-weight: 800; }

/* ---------- card grid ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 26px 0 50px; }
.card {
  position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3.1; color:#fff;
  background-size: cover; background-position: center; display:flex; flex-direction: column; justify-content: space-between;
  padding: 18px;
  -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); z-index:1; }
.card.solid::after{ content:none; }
.card > * { position: relative; z-index: 2; }
.card > .card-bg { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; object-position:center; display:block; margin:0; pointer-events:none; }
.card > .card-bg-top { object-position: top; }
.card > .card-bg-face { object-position: 50% 30%; }
.card.gold > .card-bg-seal { left:auto; right:-15%; top:50%; width:75%; height:auto; transform:translateY(-50%); object-fit:contain; }
.card.orange { background-color: var(--orange); }
.card.gold { background-color: var(--gold); }
.card h3 { margin:0; font-size: 20px; font-weight: 800; }
.card .card-title-lg { font-size: 29px; font-weight: 800; line-height: 1.15; }
.card .btn-scopri {
  align-self: flex-start; background: #fff; color: var(--orange); font-weight: 800; font-size: 11px;
  letter-spacing: .04em; padding: 9px 16px; border-radius: 3px; margin-top: auto;
}
.card.orange .btn-scopri, .card.gold .btn-scopri { color: var(--orange); }

/* ---------- events strip ---------- */
h2.section-label { display:flex; align-items:baseline; gap:10px; margin: 40px 0 20px; }
h2.section-label .kw { color: var(--teal); font-weight: 900; font-size: 30px; }
h2.section-label .rest { color: var(--orange); font-weight: 800; font-size: 23px; }
.events-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 60px; }
.event-card { background: var(--taupe); color: #fff; border-radius: 6px; padding: 22px; min-height: 210px; display:flex; flex-direction: column; }
.event-card .city { font-weight: 800; font-size: 23px; }
.event-card .date { font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.event-card .desc { font-weight: 300; opacity: .95; margin-bottom: auto; font-size: 16px; }
.event-card .btn-scopri { align-self:flex-start; background:#fff; color: var(--orange); font-weight:800; font-size:11px; padding:9px 16px; border-radius:3px; margin-top: 18px; }

/* ---------- donate cta ---------- */
.quote-strip { background: var(--cream); padding: 54px 0; margin: 10px 0 50px; text-align: center; }
.quote-strip p { font-size: 30px; font-weight: 800; color: var(--orange); max-width: 900px; margin: 0 auto; line-height: 1.3; }

.tagline-strip { background: var(--cream); padding: 46px 0 40px; text-align: center; }
.tagline-strip p { font-size: 32px; font-weight: 800; color: var(--orange); max-width: 850px; margin: 0 auto 26px; line-height: 1.3; }
.tagline-strip .quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.tagline-strip .quick-links a {
  border: 1.5px solid var(--orange); color: var(--orange); font-weight: 700; font-size: 13.5px;
  padding: 10px 20px; border-radius: 30px; background: #fff; transition: background .15s, color .15s;
}
.tagline-strip .quick-links a:hover { background: var(--orange); color: #fff; }

.donate-cta { background: var(--orange); color: #fff; padding: 50px 0; }
.donate-cta .inner { display:flex; justify-content: space-between; align-items:center; gap: 40px; flex-wrap: wrap; }
.donate-cta .left { display:flex; align-items:center; gap: 20px; }
.donate-cta .crest { width: 70px; }
.donate-cta h2 { margin: 0; font-weight: 500; font-size: 22px; }
.donate-cta h2 strong { display:block; font-size: 30px; font-weight: 800; }
.donate-cta form { display:flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.donate-cta label { display:block; font-size: 12px; margin-bottom: 6px; }
.donate-cta input[type=text], .donate-cta input[type=email] { border:none; border-radius: 3px; padding: 10px 12px; min-width: 160px; font-size: 14px; }
.donate-cta button { background: var(--dark); color:#fff; border:none; padding: 12px 22px; font-weight:800; border-radius:3px; cursor:pointer; letter-spacing:.03em; }

/* ---------- footer ---------- */
footer.site { background: var(--orange); color: #fff; }
footer.site a { color: #fff; }
footer.site .footer-main { padding-top: 46px; padding-bottom: 34px; display:grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0; font-size: 14px; }
footer.site .footer-col { padding: 0 36px; }
footer.site .footer-col:first-child { padding-left: 0; }
footer.site .footer-col + .footer-col { border-left: 1px solid rgba(255,255,255,.4); }
footer.site .logo-official-footer img { height: 72px; width: auto; }
footer.site .footer-about { margin: 18px 0 0; max-width: 340px; font-size: 13px; line-height: 1.55; }
footer.site .footer-about p { margin: 0 0 10px; }
footer.site .footer-blurb { margin: 22px 0 0; line-height: 1.6; max-width: 340px; }
footer.site .footer-aici { display:block; height: 22px; width: auto; margin-top: 26px; }
footer.site h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #fff; font-weight: 500; }
footer.site h4.footer-sec { text-transform: none; }
footer.site h4.footer-social-h { margin-top: 30px; }
footer.site h4.footer-legal-h { margin-top: 26px; }
footer.site p { margin: 0 0 9px; line-height: 1.5; }
footer.site .footer-mid p { white-space: nowrap; }
footer.site .footer-iban { margin-top: 14px; }
footer.site .footer-iban-line { white-space: normal; line-height: 1.4; margin-bottom: 10px; font-size: 13px; }
footer.site .footer-iban-line strong { display:block; text-transform: uppercase; letter-spacing: .03em; font-size: 11px; color: rgba(255,255,255,.8); font-weight: 600; margin-bottom: 2px; }
footer.site .footer-col.links { display:flex; flex-direction:column; }
footer.site .footer-col.links a { text-decoration: underline; text-underline-offset: 3px; margin-bottom: 9px; line-height: 1.4; }
footer.site .social { display:flex; gap:14px; align-items:center; }
footer.site .social a { display:flex; align-items:center; text-decoration:none; opacity:.95; }
footer.site .social a:hover { opacity:1; }
footer.site .social img { height: 19px; width: auto; display:block; }
footer.site .footer-bottom { border-top: 1px solid rgba(255,255,255,.4); padding-top: 16px; padding-bottom: 26px; display:flex; justify-content: space-between; align-items:flex-start; font-size: 12px; color: rgba(255,255,255,.85); flex-wrap: wrap; gap: 4px 24px; }
footer.site .footer-bottom p { margin: 0; }
footer.site .footer-bottom .footer-credit { font-size: 11px; color: rgba(255,255,255,.6); width: 100%; order: 3; }
@media (max-width: 1100px) { footer.site .footer-mid p { white-space: normal; } footer.site .footer-col { padding: 0 22px; } }
@media (max-width: 800px) {
  footer.site .footer-main { grid-template-columns: 1fr; gap: 28px; }
  footer.site .footer-col, footer.site .footer-col:first-child { padding: 0; }
  footer.site .footer-col + .footer-col { border-left: 0; border-top: 1px solid rgba(255,255,255,.4); padding-top: 26px; }
  footer.site .footer-mid p { white-space: normal; word-break: break-word; }
  footer.site .footer-bottom { flex-direction: column; }
}

/* ---------- generic page (inner pages) ---------- */
.page-hero { position: relative; height: 300px; background-size: cover; background-position: center; display:flex; align-items:flex-end; }
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.55)); }
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 30px; }
.page-hero .crumb { color: rgba(255,255,255,.85); font-size: 12px; font-weight:700; letter-spacing:.05em; margin-bottom: 8px; }
.page-hero h1 { color: #fff; font-size: 38px; margin: 0; font-weight: 800; }

.page-hero-thinker { position: relative; height: 440px; background-color:#000; background-size: cover; background-position: center; background-repeat: no-repeat; display:flex; flex-direction: column; justify-content: space-between; overflow:hidden; }
.page-hero-thinker::after { content:""; position:absolute; left:0; right:0; bottom:0; height:62%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.82) 68%); pointer-events:none; }
.page-hero-thinker .wrap { position: relative; z-index: 1; padding-top: 28px; }
.page-hero-thinker .crumb { color: rgba(255,255,255,.85); font-size: 12px; font-weight:700; letter-spacing:.05em; margin-bottom: 8px; }
.page-hero-thinker h1 { color: #fff; font-size: 32px; margin: 0; font-weight: 800; }
.page-hero-thinker .phts-quote { position: relative; z-index: 1; padding: 0 5vw 34px; color:#fff; font-family: Georgia, 'Times New Roman', serif; max-width: 640px; box-sizing: border-box; }
.page-hero-thinker .phts-quote p:first-child { font-size: clamp(17px, 1.8vw, 24px); font-weight:700; line-height:1.45; margin:0; font-style: italic; }
.page-hero-thinker .phts-quote .attribution { margin: 22px 0 0; font-size: 13px; font-weight:700; opacity:.85; font-style: italic; letter-spacing:.02em; }
.page-hero-thinker .phts-year { font-size:0.5em; font-style: italic; font-weight:400; }

.content { padding-top: 56px; padding-bottom: 56px; }
.content .lede { font-size: 18px; color: var(--taupe); max-width: 760px; margin: 0 0 30px; }
.section-block { max-width: 800px; margin: 0 0 44px; }
.section-block h2 { color: var(--orange); font-size: 22px; border-bottom: 3px solid var(--orange); display:inline-block; padding-bottom: 6px; margin-bottom: 16px; }
.section-block h3 { color: var(--dark); font-size: 17px; margin: 28px 0 12px; }
.section-block p { line-height: 1.75; font-size: 15.5px; margin: 0 0 16px; }
.section-block ul { margin: 0 0 16px; padding-left: 20px; }
.section-block ul li { line-height: 1.75; font-size: 15.5px; margin: 0 0 6px; }
.governance-list p { margin: 0 0 10px; }

.event-cycle { margin-bottom: 40px; }
.event-cycle h3 { color: var(--orange); font-size: 18px; margin: 0 0 18px; }
.event-item { display:flex; flex-wrap:wrap; align-items:flex-start; gap: 18px; padding: 18px 0; border-bottom: 1px solid #eee; }
.event-item:last-child { border-bottom: none; }
.event-date { flex: 0 0 130px; font-weight: 700; color: var(--dark); font-size: 14.5px; line-height: 1.4; }
.event-date .event-time { display:block; font-weight: 400; color: var(--taupe); font-size: 13px; margin-top:2px; }
.event-main { flex: 1 1 320px; min-width: 220px; }
.event-title { font-weight: 700; color: var(--dark); font-size: 15.5px; margin: 0 0 4px; line-height: 1.4; }
.event-speaker { color: var(--taupe); font-size: 14px; line-height: 1.5; }
.event-status { flex: 0 0 auto; align-self:center; }
.status-badge { display:inline-block; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-badge.confirmed { background: #e7f3e9; color: #2f7a3d; }
.status-badge.completed { background: #eceff5; color: #4F63A0; }
.status-badge.tbc { background: #fbeee0; color: #b06a17; }
.status-badge.postponed { background: #f6e4e4; color: #a33a3a; }
.content > figure { margin: 0 0 30px; }
.content > figure img { border-radius: 6px; width: 100%; height: auto; display: block; }
.section-block figure { margin: 24px 0; }
.thinkers-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 30px 0 20px; }
.thinker-card { }
.thinker-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 6px; background: #eee; }
.thinker-card h4 { margin: 14px 0 6px; font-size: 15px; color: var(--orange); }
.thinker-card .thinker-quote { font-size: 13.5px; font-style: italic; line-height: 1.55; color: var(--dark); margin: 0 0 6px; }
.thinker-card .thinker-source { font-size: 11px; color: #9a9a9a; line-height: 1.4; }
.section-block figure.sedi-storiche { max-width: 720px; }
.section-block figure.sedi-storiche img { width:100%; height:auto; display:block; border-radius:6px; }
.section-block figcaption { font-size: 13px; color: #8a8a8a; font-style: italic; margin-top: 8px; }
.photo-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photo-grid img { border-radius: 4px; width:100%; height: 260px; object-fit: cover; }
.photo-grid .tall { grid-row: span 2; height: 100%; }

.side-nav { position: sticky; top: 100px; }
.side-nav h4 { font-size: 12px; letter-spacing: .06em; color: var(--taupe); margin-bottom: 10px; text-transform: uppercase; }
.side-nav a { display:block; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.side-nav a:hover { color: var(--orange); }

.content-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 50px; align-items: start; }

/* ---------- contact page ---------- */
.contact-form .cf-row { display:flex; gap:16px; margin-bottom: 16px; }
.contact-form .cf-field { flex:1; }
.contact-form .cf-field.full { flex: 1 1 100%; }
.contact-form label { display:block; font-size: 12px; font-weight: 700; color: var(--taupe); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 4px; padding: 10px 12px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--dark);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form textarea { resize: vertical; }
.cf-submit { background: var(--orange); color:#fff; border:none; padding: 12px 30px; font-weight:800; border-radius:3px; cursor:pointer; letter-spacing:.03em; font-size: 13px; }
.cf-submit:hover { background: var(--gold-dark); }

.contact-card { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.contact-card h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); }
.contact-card p { margin: 2px 0 0; line-height: 1.6; font-size: 14.5px; }

.map-embed { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }

@media (max-width: 600px) {
  .contact-form .cf-row { flex-direction: column; gap: 12px; }
  .topbar .search { display: none; }
  .topbar .left { gap: 10px; }
  .topbar .left a:not(:first-child) { display: none; }
}

.placeholder-box {
  border: 1.5px dashed var(--line); border-radius: 8px; padding: 60px 30px; text-align: center; color: var(--taupe);
  background: var(--cream);
}
.placeholder-box h2 { color: var(--orange); margin-top:0; }

/* ================= RESPONSIVE: TABLET (iPad) & MOBILE ================= */

/* Hamburger breakpoint - covers iPad portrait/landscape and phones (portatili con zoom 125-150% restano col menu intero) */
@media (max-width: 1060px) {
  header.site { position: relative; }
  .hamburger { display: flex; }

  .nav-panel {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(0,0,0,.12);
    padding: 8px 24px 22px;
    max-height: 80vh; overflow-y: auto;
  }
  header.site.nav-open .nav-panel { display: flex; }

  nav.main { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  nav.main > a, nav.main .has-sub > span {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer;
  }
  nav.main .has-sub { width: 100%; }
  nav.main .has-sub .sub {
    display: none; position: static; box-shadow: none; border: none; margin: 0;
    min-width: 0; padding: 0 0 8px 14px; background: var(--cream);
  }
  nav.main .has-sub.sub-open .sub { display: block; }
  nav.main .sub a { padding: 11px 4px; font-size: 14px; }

  .header-icons { margin-top: 16px; }
  .header-icons .search { width: 100%; border-radius: 6px; }
  .header-icons .search input { width: 100%; }

  header.site .wrap { padding-top: 14px; padding-bottom: 14px; }
}


/* ---------- hero con pensatore: volto sempre a DESTRA, testo nella colonna libera a sinistra ----------
   --fr = larghezza dell'immagine ritagliata in multipli dell'altezza dell'hero.
   Il layout resta uguale al ridursi della finestra (l'immagine scala con la larghezza);
   si impila solo sotto i 700px. */
.hero-socrate, .page-hero-thinker.phts-side { --h: clamp(230px, 30vw, 420px); --fr: 1; background-color:#000; background-repeat:no-repeat; background-size:auto var(--h); --p: max(4vw, calc((100vw - 660px - var(--fr)*var(--h) - 28px)/2)); background-position: right var(--p) center; display:flex; flex-direction:row; align-items:center; justify-content:flex-end; position:relative; overflow:hidden; min-height:var(--h); height:auto; box-sizing:border-box; padding: 28px calc(var(--p) + var(--fr)*var(--h) + 28px) 28px var(--p); }
.hero-socrate { --h: clamp(250px, 32vw, 460px); --fr: 0.739; }
.hero-socrate::after, .page-hero-thinker.phts-side::after { content:none; }
.hero-socrate-text { position:relative; z-index:1; margin:0; padding:0; max-width:660px; color:#fff; font-family: Georgia, 'Times New Roman', serif; box-sizing:border-box; text-align:right; }
.hero-socrate-text p:first-child { font-size: clamp(18px, 2.7vw, 40px); font-weight:700; line-height:1.4; margin:0; }
.hero-socrate-text .qmark { font-size:1.3em; color:#fff; line-height:0; vertical-align:-0.08em; }
.hero-socrate-text .attribution { margin: 20px 0 0; font-size:13px; font-weight:700; opacity:.85; font-style:italic; letter-spacing:.02em; color:#fff; }
.page-hero-thinker.phts-side .phts-quote { position:static; transform:none; padding:0; margin:0; max-width:660px; text-align:right; }
.page-hero-thinker.phts-side .phts-quote .attribution { margin:20px 0 0; font-size:13px; text-align:right; }
.page-hero-thinker.phts-side .phts-quote p:first-child { font-style:normal; font-size: clamp(18px, 2.7vw, 40px); line-height:1.4; }
/* telefono: immagine in alto, citazione sotto */
@media (max-width: 700px) {
  .hero-socrate, .page-hero-thinker.phts-side { --h: 190px; display:block; flex-direction:column; min-height:0; padding: calc(var(--h) + 18px) 5vw 30px; background-position:right top; --p:5vw; }
  .hero-socrate-text, .page-hero-thinker.phts-side .phts-quote { max-width:none; text-align:left; }
  .hero-socrate-text p:first-child, .page-hero-thinker.phts-side .phts-quote p:first-child { font-size:17px; }
}
@media (max-width: 400px) { .hero-socrate, .page-hero-thinker.phts-side { --h: 170px; } }

/* Tablet (iPad) general layout adjustments */
@media (max-width: 1024px) {
  .grid3, .events-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .claim { padding-top: 60px; padding-bottom: 30px; }
  .hero { height: 46vh; min-height: 320px; }
  .page-hero { height: 240px; }
  .donate-cta .inner { gap: 26px; }
  .thinkers-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .logo { font-size: 21px; }
  .header-seal { width: 44px; height: 44px; }
  .thinkers-grid { grid-template-columns: 1fr; }
  .topbar { font-size: 11px; }
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 6px; padding-bottom: 6px; gap: 6px; }
  .topbar .right { gap: 12px; }

  .hero { height: 40vh; min-height: 260px; }
  .hero-donate { padding: 10px 14px; font-size: 12px; top: 70px; right: 14px; }
  .hero-donate-img { bottom: 12px; right: 12px; width: 104px; height: 67px; border-radius: 11px; }
  .hero-donate-img .bd-sec { font-size: 64px; top:-11px; letter-spacing:-4px; }
  .hero-donate-img .bd-de { font-size: 27px; right:8px; bottom:-6px; }
  .hero-donate-img .bd-txt { font-size: 20px; top: 19px; left: 9px; }
  .claim { padding-top: 40px; padding-bottom: 20px; }
  .claim .eyebrow .b { font-size: 20px; }
  .claim h1 { font-size: 23px; }

  .grid3, .events-grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: auto; min-height: 200px; }
  .events h2.section-label { flex-direction: column; align-items: flex-start; gap: 2px; margin: 30px 0 16px; }

  .donate-cta { padding: 34px 0; }
  .donate-cta .left { flex-direction: column; align-items: flex-start; gap: 12px; }
  .donate-cta form { width: 100%; }
  .donate-cta .cf-field, .donate-cta div { width: 100%; }
  .donate-cta input[type=text], .donate-cta input[type=email] { width: 100%; }


  .page-hero { height: 200px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero-thinker { height: 420px; }
  .page-hero-thinker h1 { font-size: 24px; }
  .page-hero-thinker .phts-quote { max-width: none; padding: 0 20px 24px; }
  .page-hero-thinker .phts-quote p:first-child { font-size: 15px; }
  .content { padding-top: 34px; padding-bottom: 34px; }
  .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .tall { height: 260px; }

  .contact-form .cf-row { flex-direction: column; gap: 12px; }
  .contact-card { padding: 20px; }

  .placeholder-box { padding: 40px 18px; }
}



/* ---------- Risorse documentarie: elenco documenti ---------- */
.doc-list { border-top: 1px solid var(--line); }
.doc-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.section-block .doc-list p.doc-title { font-weight: 700; color: var(--dark); font-size: 16px; margin: 0 0 4px; line-height: 1.4; }
.section-block .doc-list p.doc-author { color: var(--taupe); font-size: 14px; margin: 0; line-height: 1.5; }
.doc-actions { display: flex; gap: 10px; flex-shrink: 0; }
.doc-btn { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 8px 14px; border-radius: 20px; text-decoration: none; white-space: nowrap; }
.doc-btn:hover { background: var(--dark); color: #fff; }
.doc-btn.outline { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.doc-btn.outline:hover { background: var(--orange); color: #fff; }
.doc-more { font-size: 14px; color: var(--taupe); font-style: italic; margin-top: 18px; }
@media (max-width: 640px) {
  .doc-item { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* bozza testi legali */
.draft-banner { background:#fff3b0; border-left:4px solid #d4a800; padding:12px 16px; font-size:14px; line-height:1.5; margin:0 0 24px; max-width:800px; }
.todo { background:#fff3b0; padding:0 3px; border-radius:2px; }

/* ritratto fondatore */
.founder-grid { display:grid; grid-template-columns: minmax(200px, 300px) 1fr; gap:32px; align-items:start; }
.founder-fig { margin:0; }
.founder-fig img { width:100%; height:auto; display:block; filter:none; }
.founder-fig figcaption { font-size:12.5px; line-height:1.45; color:#6b6558; margin-top:8px; }
@media (max-width:700px) { .founder-grid { grid-template-columns:1fr; } .founder-fig { max-width:300px; } }
.photo-credit { font-size:12.5px; line-height:1.45; color:#6b6558; margin:14px 0 0; }
.section-block ul a { color:var(--orange, #4a5fa0); text-decoration:underline; font-weight:600; }
.gov-list { list-style:none; margin:8px 0 0; padding:0; }
.gov-list li { padding:3px 0; line-height:1.5; }
.gov-cols { columns:2; column-gap:40px; }
.gov-cols li { break-inside:avoid; }
.gov-role { color:#6b6558; }
.gov-centres { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px 32px; }
@media (max-width:700px) { .gov-cols { columns:1; } }
.thinker-card:only-child img { height:auto; aspect-ratio: auto; object-fit: initial; }
.thinkers-grid:has(.thinker-card:only-child) { grid-template-columns: minmax(220px, 340px); }

/* Bottone download programma */
.btn-download { display:inline-flex; align-items:center; gap:10px; background: var(--orange); color:#fff !important; font-weight:700; font-size:14px; padding:12px 20px; border-radius:4px; text-decoration:none; transition: background .2s, transform .2s; }
.btn-download:hover { background:#3e4f82; transform: translateY(-1px); }
.btn-download svg { width:18px; height:18px; flex:none; }
.btn-download small { font-weight:500; opacity:.8; font-size:12px; }
.download-row { margin: 4px 0 26px; }
footer.site .footer-donate-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- news: prossimi eventi ---------- */
.events-sub { color: var(--taupe); margin: -6px 0 18px; font-size: 14.5px; }
.news-event { align-items: center; }
.speaker-photo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #eceff5; display:block; }
.news-event .event-main .status-badge { margin-top: 8px; }
.btn-register { display:inline-block; background: var(--orange); color:#fff !important; font-weight:700; font-size:13.5px; padding:11px 20px; border-radius:4px; text-decoration:none; white-space:nowrap; }
.btn-register:hover { background:#3e4f82; }
.btn-register-soon { background:#d8dbe2 !important; color:#5a5f6b !important; cursor:default; }
.btn-register-soon:hover { background:#d8dbe2 !important; }
.more-link { color: var(--orange); font-weight:700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .news-event .event-status { flex: 1 0 100%; } .news-event .event-date { flex: 1 0 100%; } }

/* ---------- home: card eventi con relatore ---------- */
.event-card .ev-top { display:flex; align-items:center; gap: 14px; margin-bottom: 14px; }
.event-card .ev-top .date { margin-bottom: 0; font-size: 15px; font-weight: 500; opacity: .9; }
.event-card .ev-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: rgba(255,255,255,.18); flex: none; }
.event-card .ev-speaker { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.event-card .desc { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
#events-past .event-cycle { margin-bottom: 0; }

.quote-orig { margin:10px 0 0; font-size:12px; line-height:1.5; font-style:italic; opacity:.8; color:#fff; font-family: Georgia, "Times New Roman", serif; }
.hero-socrate-text .quote-orig, .page-hero-thinker.phts-side .phts-quote .quote-orig { text-align:right; }
@media (max-width: 700px) { .hero-socrate-text .quote-orig, .page-hero-thinker.phts-side .phts-quote .quote-orig { text-align:left; } }
.quote-orig mark.todo { font-style:normal; }

/* Comprendre */
.comprendre-cover { margin: 0 0 34px; }
.comprendre-cover img { width: 100%; max-width: 420px; height: auto; display: block; border-radius: 6px; }
.comprendre ul.plain-facts { list-style: none; padding-left: 0; }
.comprendre ul.plain-facts li { margin: 0 0 10px; line-height: 1.7; font-size: 15.5px; }
.comprendre ul.plain-facts ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.comprendre a { color: var(--orange); font-weight: 600; word-break: break-word; }
.table-scroll { overflow-x: auto; }
.titles-table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.titles-table th { text-align: left; border-bottom: 2px solid var(--orange); padding: 8px 10px; color: var(--dark); }
.titles-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.titles-table td:first-child { white-space: nowrap; font-weight: 700; width: 70px; }
.titles-table td:last-child { white-space: nowrap; width: 110px; color: var(--taupe); }
.titles-table tr.dir td { background: #f4f1ea; font-weight: 700; color: var(--dark); white-space: normal; }

/* foto storiche del Fondatore (bozza 126) */
.fondatore-foto { display:grid; grid-template-columns: 1.5fr 1fr; gap:24px; margin:28px 0 8px; max-width:980px; align-items:start; }
.fondatore-foto figure { margin:0; }
.fondatore-foto img { width:100%; height:auto; display:block; border-radius:6px; }
@media (max-width: 700px) { .fondatore-foto { grid-template-columns: 1fr; } }
/* coordinate bancarie Sostienici (bozza 126) */
.iban-box { display:grid; grid-template-columns: 1fr 1.7fr .8fr; gap:18px; background:#f6f3ec; border-left:4px solid var(--orange); padding:18px 22px; margin:6px 0 16px; }
.iban-box p { margin:0; }
.iban-box .iban { font-variant-numeric: tabular-nums; letter-spacing:.02em; user-select:all; white-space:nowrap; }
@media (max-width: 420px) { .iban-box .iban { white-space:normal; } }
@media (max-width: 700px) { .iban-box { grid-template-columns: 1fr; } }

/* voce di menu con tendina che porta anche alla pagina (Attivita, bozza 126) */
nav.main .has-sub > a.sub-parent { display:flex; align-items:center; gap:4px; color:inherit; text-decoration:none; }
nav.main .has-sub > a.sub-parent:hover { color: var(--orange); }
.iban-box { grid-template-columns: 1fr 1.7fr .8fr .9fr; }
@media (max-width: 900px) { .iban-box { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .iban-box { grid-template-columns: 1fr; } }
nav.main .has-sub > a.sub-parent { color: var(--dark); }
nav.main > .has-sub.active > a.sub-parent { color: var(--orange); }
@media (max-width: 1060px) {
  nav.main .has-sub > a.sub-parent {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer;
  }
}

/* testi descrittivi degli organi (bozza 127) */
.gov-intro, .governance-list .gov-desc { max-width: 800px; }
.governance-list p.gov-desc { line-height: 1.75; font-size: 15.5px; margin: 0 0 12px; }
.governance-list p.gov-comp { margin: 18px 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--taupe); }

/* portatili 1061-1340px (es. schermi Windows con ridimensionamento 125-150%): menu intero, piu compatto */
@media (min-width: 1061px) and (max-width: 1340px) {
  header.site .wrap { gap: 12px; }
  .logo.logo-official { flex-shrink: 0; }
  .logo.logo-official img { height: 50px; }
  nav.main { gap: 9px; font-size: 11px; }
  .nav-panel { gap: 10px; }
}

/* Home: slogan + frase di missione sotto lo slogan */
.tagline-strip .tagline-about { max-width: 860px; margin: -8px auto 30px; }
.tagline-strip .tagline-about p.ta-text { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--gold-dark); margin: 0; text-align: center; }
@media (max-width: 640px) { .tagline-strip .tagline-about p.ta-text { font-size: 18px; } }
/* Missione: citazione di Campagnolo in apertura */
.mission-quote { margin: 0 0 28px; padding: 6px 0 6px 24px; border-left: 4px solid var(--gold); max-width: 820px; }
.mission-quote p { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 22px; line-height: 1.55; color: var(--dark); margin: 0; }
.mission-quote p.mq-author { font-size: 15px; font-weight: 700; margin-top: 10px; }
@media (max-width: 640px) { .mission-quote p { font-size: 18px; } }
.event-item .event-main p.event-photo-credit, .event-photo-credit { font-size: 11px !important; line-height: 1.4; color: #8a8576; margin: 2px 0 0; }
