/* English additions shared by all pages (css/it-*.css stay unmodified copies of the Italian stylesheets). */

/* Wordmark as live text: bold part + light part, where the Italian logo image sits */
.en-logo { display: inline-block; font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 26px; line-height: 1; letter-spacing: -.02em; color: #03317a; text-decoration: none; white-space: nowrap; }
.en-logo b { font-weight: 800; }
.en-logo span { font-weight: 300; }
@media (max-width: 767px) { .en-logo { font-size: 22px; } }
.s-nav__logo { display: inline-flex; align-items: center; }
.s-piede .en-logo { color: #fff; font-size: 28px; }

/* Account links (only present when ACCOUNTS is on; js/site.js shows them when the sign-in hint cookie exists) */
[data-account-link][hidden] { display: none !important; }

/* Footer column titles as paragraphs instead of h4 (heading order); look like .s-piede h4 */
.s-piede .s-piede__titolo { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
@media (max-width: 767px) { html:has(link[href*="it-pagina-risultati.css"]) .s-piede .s-piede__griglia .s-piede__titolo { display: none; } }

/* Icon names must not show while the icon font loads */
.material-symbols-outlined { color: inherit; }

/* Article cards used on the home and the guides pages */
.en-cards h3.en-topic { font-size: 22px; font-weight: 800; margin: 34px 0 14px; color: var(--ta-testo); }
.en-cards h3.en-topic:first-child { margin-top: 0; }
.s-articolo__meta { display: flex; gap: 12px; font-size: 12.5px; font-weight: 700; color: var(--ta-tenue); }
.s-articolo__meta span { display: inline-flex; align-items: center; gap: 4px; }
.s-articolo__meta .material-symbols-outlined { font-size: 16px; }
.en-cards .s-articolo, .pag-blog .s-articolo { text-decoration: none; }
.en-cards .s-articolo p { font-size: 14.5px; line-height: 1.5; color: var(--ta-muto); margin: 0 0 8px; }
.en-cards .s-articolo[hidden], .pag-blog .s-articolo[hidden] { display: none; }

/* Long words and URLs wrap instead of scrolling the page sideways */
main h1, main h2, main h3, main p, main li, main td, main th { overflow-wrap: break-word; }

/* Footer button that looks like the other footer links ("Cookie settings", only when statistics are on) */
.en-linkbutton { appearance: none; background: none; border: 0; margin: 0; font: inherit; cursor: pointer; text-align: left; display: inline-block; padding: 9px 0; min-height: 40px; color: #dbe7ff; text-decoration: none; }
.en-linkbutton:hover { color: #fff; text-decoration: underline; }
.en-cards h3.en-topic a { color: inherit; text-decoration: none; }
.en-cards h3.en-topic a:hover { text-decoration: underline; }

/* Guide byline dates, chip as a link, and the static text under the test card */
a.inline-block.rounded-full:hover { text-decoration: underline; }
.en-test__about { margin: 36px 0 0; max-width: 680px; }
.en-test__about h2 { font-size: 19px; line-height: 1.25; font-weight: 800; margin: 22px 0 6px; }
.en-test__about h2:first-child { margin-top: 0; }
.en-test__about p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.65; color: var(--ta-muto, #424752); }
.en-test__about a { color: var(--ta-blu, #00488d); font-weight: 700; }
/* Reserve room for the test card before test-ui.js fills it, so the text below does not jump */
.en-test .ta-card { min-height: 17rem; }

/* Statistics choice (js/consent.js): small panel at the bottom, two buttons of equal weight */
.en-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 720px; margin: 0 auto; background: #fff; color: #191c1e; border: 1px solid #c9d3e3; border-radius: 14px; box-shadow: 0 10px 34px rgba(3, 49, 122, .18); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-family: Inter, system-ui, sans-serif; }
.en-consent__text { flex: 1 1 320px; min-width: 0; }
.en-consent__title { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.en-consent__body, .en-consent__state { margin: 0; font-size: 14px; line-height: 1.5; color: #424752; }
.en-consent__state { margin-top: 6px; font-weight: 700; color: #191c1e; }
.en-consent__body a { color: #00488d; font-weight: 700; }
.en-consent__buttons { display: flex; gap: 10px; flex: 0 0 auto; }
.en-consent__btn { font: inherit; font-size: 14.5px; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 1.5px solid #03317a; background: #fff; color: #03317a; cursor: pointer; }
.en-consent__btn:hover, .en-consent__btn:focus-visible { background: #03317a; color: #fff; }
@media (max-width: 520px) { .en-consent__buttons { flex: 1 1 100%; } .en-consent__btn { flex: 1 1 0; } }
@media print { .en-consent { display: none; } }

/* Home: three cards per topic, the other guides as name links; on a phone the cards lie flat (picture left) */
.en-more { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.en-more span { font-weight: 800; color: var(--ta-testo, #191c1e); margin-right: 2px; }
.en-more a { display: inline-block; padding: 6px 12px; border: 1px solid var(--ta-linea, #d8dfea); border-radius: 999px; background: #fff; color: var(--ta-blu, #00488d); font-weight: 700; text-decoration: none; }
.en-more a:hover { border-color: var(--ta-blu, #00488d); text-decoration: underline; }
@media (max-width: 640px) {
  .en-cards--home .s-articolo { display: grid; grid-template-columns: 116px 1fr; align-items: stretch; }
  .en-cards--home .s-articolo img { width: 116px; height: 100%; min-height: 104px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--ta-linea, #d8dfea); }
  .en-cards--home .s-articolo div { padding: 10px 12px 12px; }
  .en-cards--home .s-articolo p { display: none; }
  .en-cards--home .s-articolo h3 { font-size: 15.5px; line-height: 1.3; margin: 4px 0 6px; }
  .en-consent { padding: 12px 14px; gap: 10px; }
  .en-consent__title { font-size: 15px; margin-bottom: 2px; }
  .en-consent__body, .en-consent__state { font-size: 13px; line-height: 1.45; }
  .en-consent__btn { padding: 9px 12px; font-size: 14px; }
}

/* Two buttons side by side in a text page: a real gap, also when they wrap on a phone (never glued together) */
.en-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
/* Buttons inside a text page keep the button colors: the link rules of the page text (blue, underlined) must not win */
.pag-doc a.s-btn, .prose a.s-btn { color: #fff; text-decoration: none; }
.pag-doc a.s-btn.s-btn--chiaro, .prose a.s-btn.s-btn--chiaro { color: var(--ta-blu-scuro, #03317a); border: 1px solid var(--ta-linea, #d8dfea); }
