/* Shared identity: lake blue, alpine white, Ticino red. */
:root { --stoica-blue: #294584; --stoica-lake: #78a9d4; --stoica-alpine: #f6f8f7; --stoica-red: #e5483f; --stoica-green: #26845b; --stoica-graphite: #161b24; }
.stoica-frame { background: var(--stoica-alpine); color: var(--stoica-graphite); font-family: Barlow, Arial, sans-serif; }
.stoica-frame .wrapper { padding: 0; overflow: visible; }
.stoica-frame .wrapper.load { opacity: 1; animation: none; transform: none; }
.stoica-frame :focus-visible { outline: 3px solid #b52f28; outline-offset: 4px; }
.stoica-frame .skip-link:focus { top: 1rem; left: 1rem; z-index: 10001; }
/* Emoji images remain inline with titles instead of becoming flex columns. */
.stoica-frame .stoica-instagram-news__title .stoica-instagram-news__link { display: block; overflow-wrap: anywhere; }
.home .stoica-home > .wp-block-group__inner-container > .alignfull { width: 100%; max-width: none; margin-inline: 0; }
.home .stoica-membership-cta__content > .wp-block-group__inner-container { display: contents; }
.s-header { position: sticky; top: 0; z-index: 9999; background: #f6f8f7; border-bottom: 1px solid #d6dfeb; }
.admin-bar .s-header { top: 32px; }
.s-header__inner { max-width: 1280px; margin: auto; min-height: 88px; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.s-brand { display: flex; align-items: center; gap: 12px; color: var(--stoica-blue); flex-shrink: 0; }
.s-brand__image { width: 44px; height: 54px; object-fit: cover; object-position: 9% center; }
.s-brand > span { font-size: 26px; font-weight: 700; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.s-brand small { display: block; margin-top: 7px; font: 10px/1.3 Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.s-menu, .s-menu ul { list-style: none; padding: 0; margin: 0; }
.s-menu { display: flex; align-items: center; gap: 5px; }
.s-menu li { position: relative; }
.s-menu a { display: flex; align-items: center; min-height: 44px; padding: 12px 11px; color: #26334b; font-size: 15px; font-weight: 600; line-height: 1.3; }
.s-menu a:hover, .s-menu .current-menu-item > a { color: var(--stoica-blue); text-decoration: underline; text-underline-offset: 7px; }
.s-menu .stoica-menu-cta > a { padding-inline: 20px; border-radius: 999px; background: var(--stoica-blue); color: white; }
.s-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 190px; padding: 8px; border: 1px solid #d6dfeb; border-radius: 12px; background: white; box-shadow: 0 12px 28px #29458415; visibility: hidden; opacity: 0; }
.s-menu li:hover > .sub-menu, .s-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.s-menu .s-has-children > a::after { content: '⌄'; margin-left: 7px; }
.s-menu-toggle { display: none; min-height: 44px; padding: 8px 14px; border: 1px solid #aebed5; border-radius: 24px; background: transparent; color: var(--stoica-blue); font: 600 15px Barlow, Arial, sans-serif; align-items: center; gap: 12px; cursor: pointer; }
.stoica-frame footer.s-footer { padding: 60px 32px 24px; margin: 0; background: #1d315c; color: #f6f8f7; }
.s-footer__inner { max-width: 1216px; margin: auto; }
.stoica-frame .s-footer a { color: #f6f8f7; min-height: 44px; }
.s-footer__brand { display: flex; flex-direction: column; align-items: flex-start; font-size: 36px; font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; }
.s-footer__brand span { max-width: 36rem; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: 8px; }
.s-footer__menu { list-style: none; padding: 0; margin: 32px 0; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.s-footer__menu > li > a { font-weight: 700; }
.s-footer__menu .sub-menu { padding: 0; list-style: none; }
.s-footer__menu a { display: flex; align-items: center; font-size: 15px; }
.s-footer__base { border-top: 1px solid #7185a4; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
.s-footer__base a { display: inline-flex; align-items: center; }
@media(max-width:1100px) {
 .s-header__inner { flex-wrap: wrap; min-height: 76px; padding: 10px 24px; gap: 0 24px; }
 .s-menu-toggle:not([hidden]) { display: inline-flex; }
 #s-navigation { width: 100%; }
 .s-menu { display: block; max-width: 900px; margin-inline: auto; padding-block: 16px 20px; }
 .s-menu > li { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; align-items: center; border-top: 1px solid #d6dfeb; padding-block: 4px; }
 .s-menu > li > a { padding: 12px 16px; font-size: 18px; color: var(--stoica-blue); }
 .s-menu > li > a:hover { background: #e9eff5; border-radius: 6px; }
 .s-menu .s-has-children > a::after { content: none; }
 .s-menu .sub-menu { position: static; display: flex; flex-wrap: wrap; gap: 0 8px; visibility: visible; opacity: 1; padding: 0 0 0 20px; min-width: 0; border: 0; border-left: 2px solid #78a9d4; border-radius: 0; box-shadow: none; background: transparent; }
 .s-menu .sub-menu a { font-weight: 400; padding: 10px 12px; }
 .s-menu .stoica-menu-cta { display: flex; justify-content: flex-end; padding-top: 16px; margin-top: 4px; }
 .s-menu .stoica-menu-cta > a { min-width: 180px; justify-content: center; font-size: 16px; color: white; }
 .s-menu .stoica-menu-cta > a:hover { background: #1d315c; border-radius: 999px; }
 .s-menu-toggle[aria-expanded="true"] { background: var(--stoica-blue); color: white; border-color: var(--stoica-blue); }
 .s-navigation-ready #s-navigation { display: none; }
 .s-navigation-ready #s-navigation.is-open { display: block; max-height: calc(100svh - 120px); overflow-y: auto; }
}
@media(max-width:600px) {
 .s-header__inner { padding-inline: 20px; }
 .s-brand > span { font-size: 23px; }
 .s-brand__image { height: 46px; width: 38px; }
 .s-menu > li { grid-template-columns: 1fr; }
 .s-menu > li > a { padding-inline: 10px; font-size: 17px; }
 .s-menu .sub-menu { margin: 0 0 8px 10px; padding-left: 8px; gap: 0 4px; }
 .s-menu .sub-menu a { padding-inline: 10px; }
 .s-menu .stoica-menu-cta { justify-content: stretch; }
 .s-menu .stoica-menu-cta > a { width: 100%; }
 .stoica-frame footer.s-footer { padding-inline: 24px; }
 .s-footer__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media(max-width:782px) { .admin-bar .s-header { top: 46px; } }
@media(prefers-reduced-motion:reduce) { .stoica-frame *, .stoica-frame *::before, .stoica-frame *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.home .stoica-home .stoica-membership-cta__content { row-gap: 24px; }
.home .stoica-home .stoica-membership-cta__mascot img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 9% center; }
