/* Ajò Sardegna – stile del tema */
:root {
	--ajo-blu: #134B73;
	--ajo-blu-dark: #0F3A57;
	--ajo-azzurro: #2E9BD6;
	--ajo-azzurro-chiaro: #5BB8EA;
	--ajo-verde: #367F2A;
	--ajo-verde-chiaro: #4C9F38;
	--ajo-arancio: #EE7A1E;
	--ajo-marrone: #8A5A34;
	--ajo-sabbia: #D9A066;
	--ajo-grigio: #F3F6F8;
	--ajo-bordo: #E3E8EC;
	--ajo-testo: #2D2A26;
	--ajo-muted: #5E574F;
	--ajo-font-title: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
	--ajo-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ajo-testo); font-family: var(--ajo-font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ajo-blu); }
a:hover { color: var(--ajo-verde); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ajo-font-title); color: var(--ajo-blu); line-height: 1.12; letter-spacing: -0.5px; }
:focus-visible { outline: 3px solid var(--ajo-arancio); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.screen-reader-text:focus { background: #fff; padding: 12px 16px; z-index: 1000; }

/* Pagine semplici (non Elementor) */
.site-main, .page-content { max-width: 860px; margin: 0 auto; padding: 32px 24px 72px; }
.page-header { max-width: 860px; margin: 0 auto; padding: 40px 24px 0; }
.page-header .entry-title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
body.elementor-page .site-main, body.ajo-portal .site-main { max-width: none; padding: 0; }

/* Logo */
.ajo-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; flex: 0 0 auto; }
.ajo-logo__word { display: inline-flex; flex-direction: column; }
.ajo-logo__ajo { font-family: var(--ajo-font-title); font-weight: 800; font-size: 44px; letter-spacing: -1.5px; line-height: 0.95; }
.ajo-logo__sard { display: flex; justify-content: space-between; font-family: var(--ajo-font); font-size: 10px; font-weight: 800; margin-top: 4px; }
.ajo-logo--light .ajo-logo__ajo { font-size: 48px; }
.ajo-logo--light .ajo-logo__sard { font-size: 11px; }

/* Intestazione */
.ajo-header { background: #fff; border-bottom: 1px solid var(--ajo-bordo); position: sticky; top: 0; z-index: 100; }
.admin-bar .ajo-header { top: 32px; }
.ajo-header__in { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px 32px; }
.ajo-header__nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.ajo-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ajo-menu li { position: relative; }
.ajo-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--ajo-blu); }
.ajo-menu a:hover, .ajo-menu .current-menu-item > a, .ajo-menu .current-menu-ancestor > a { background: var(--ajo-grigio); color: var(--ajo-blu); }
.ajo-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--ajo-bordo); border-radius: 14px; box-shadow: 0 12px 28px rgba(19,75,115,.12); display: none; z-index: 10; }
.ajo-menu li:hover > .sub-menu, .ajo-menu li:focus-within > .sub-menu { display: block; }
.ajo-menu .sub-menu a { width: 100%; box-sizing: border-box; }
.ajo-header__tools { display: flex; align-items: center; gap: 16px; }
.ajo-header__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ajo-blu); color: var(--ajo-blu); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.ajo-header__cta:hover { background: var(--ajo-blu); color: #fff; }

.ajo-langs { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; font-size: 14px; }
.ajo-langs a, .ajo-langs span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border-radius: 8px; text-decoration: none; color: #55636B; font-weight: 500; }
.ajo-langs a:hover { background: var(--ajo-grigio); color: var(--ajo-blu); }
.ajo-langs span[aria-current] { color: var(--ajo-blu); font-weight: 800; }
.ajo-langs--light a { color: #D9E4E8; }
.ajo-langs--light a:hover { background: rgba(255,255,255,.1); color: #fff; }
.ajo-langs--light span[aria-current] { color: #fff; }

.ajo-burger { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ajo-bordo); border-radius: 12px; background: #fff; color: var(--ajo-blu); font: inherit; font-weight: 700; cursor: pointer; }
.ajo-burger__bars, .ajo-burger__bars::before, .ajo-burger__bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.ajo-burger__bars::before, .ajo-burger__bars::after { content: ""; position: absolute; left: 0; }
.ajo-burger__bars::before { top: -6px; }
.ajo-burger__bars::after { top: 6px; }

@media (max-width: 1024px) {
	.ajo-header__in { flex-wrap: wrap; }
	.ajo-burger { display: inline-flex; }
	.ajo-header__nav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
	.ajo-header.is-open .ajo-header__nav { display: flex; }
	.ajo-menu { flex-direction: column; }
	.ajo-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.ajo-header__tools { flex-wrap: wrap; justify-content: space-between; }
	.ajo-logo__emblem { width: 44px; height: 44px; }
	.ajo-logo__ajo { font-size: 36px; }
}
@media (max-width: 782px) { .admin-bar .ajo-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ajo-header { top: 0; } }

/* Piè di pagina */
.ajo-footer { background: var(--ajo-blu-dark); color: #D9E4E8; font-size: 15px; }
.ajo-footer a { color: #D9E4E8; text-decoration: none; }
.ajo-footer a:hover { color: #fff; text-decoration: underline; }
.ajo-footer__in { max-width: 1280px; margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-wrap: wrap; gap: 40px; }
.ajo-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.ajo-footer__brand p { margin: 0; }
.ajo-footer__brand .ajo-logo { align-self: flex-start; }
.ajo-footer__small { font-size: 14px; opacity: .85; }
.ajo-footer__col { flex: 1 1 170px; display: flex; flex-direction: column; gap: 10px; }
.ajo-footer__col--wide { flex: 2 1 320px; }
.ajo-footer__col strong { color: #fff; font-family: var(--ajo-font-title); font-size: 17px; }
.ajo-footer__h2 { margin-top: 16px; }
.ajo-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ajo-footer__list--2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 20px; }
.ajo-footer__list a { display: inline-block; padding: 3px 0; }
.ajo-footer__bottom { max-width: 1280px; margin: 0 auto; padding: 16px 24px 32px; border-top: 1px solid #234E60; font-size: 13px; }

/* ===== Mattoncini per le pagine in Elementor ===== */
.ajo-hero { background: var(--ajo-blu); color: #fff; position: relative; overflow: hidden; }
.ajo-hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 560px; height: 560px; background: url("../img/hero-art.svg") no-repeat center / contain; pointer-events: none; }
.ajo-hero > .e-con-inner, .ajo-hero > * { position: relative; z-index: 1; }
.ajo-hero h1, .ajo-hero .elementor-heading-title { color: #fff; }
.ajo-kicker, .ajo-kicker .elementor-heading-title { font-family: var(--ajo-font) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 3px !important; text-transform: uppercase; color: var(--ajo-azzurro-chiaro) !important; }
.ajo-kicker--green .elementor-heading-title { color: var(--ajo-verde) !important; }
.ajo-hero .ajo-popular span { color: #D9E4E8; }
.ajo-hl-a { color: #8CCB6E; }
.ajo-hl-j { color: #F7A65B; }
.ajo-hl-o { color: var(--ajo-azzurro-chiaro); }
.ajo-hero-lead, .ajo-hero-lead p { font-size: 20px; color: #D9E4E8; max-width: 620px; margin: 0; }
.ajo-sec-title .elementor-heading-title { font-weight: 800; letter-spacing: -1px; color: var(--ajo-blu); }
.ajo-dark { background: var(--ajo-blu); color: #fff; }
.ajo-dark .elementor-heading-title { color: #fff; }
.ajo-dark a { color: #fff; }
.ajo-dark .ajo-event { background: transparent; border-color: #2F6690; }
.ajo-dark .ajo-event__title a { color: #fff; }
.ajo-dark .ajo-event__where { color: #D9E4E8; }
.ajo-link-more a, a.ajo-link-more { font-weight: 700; text-decoration: none; }
.ajo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ajo-step { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; background: var(--ajo-grigio); }
.ajo-step__n { font-family: var(--ajo-font-title); font-weight: 800; font-size: 40px; color: var(--ajo-verde); line-height: 1; }
.ajo-step h3 { margin: 0; font-size: 22px; }
.ajo-step p { margin: 0; color: var(--ajo-muted); }
.ajo-band { background: var(--ajo-verde); color: #fff; border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.ajo-band h2 { color: #fff; margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -1px; }
.ajo-band p { margin: 0; font-size: 18px; }
.ajo-band__txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.ajo-band__kicker { font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.ajo-band__btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: #fff; color: var(--ajo-blu) !important; text-decoration: none; font-weight: 800; font-size: 17px; }
.ajo-band__btn:hover { background: var(--ajo-grigio); }
.ajo-faq details { border-bottom: 1px solid var(--ajo-bordo); padding: 16px 0; }
.ajo-faq summary { cursor: pointer; font-family: var(--ajo-font-title); font-weight: 700; font-size: 19px; color: var(--ajo-blu); list-style-position: outside; }
.ajo-faq details p { margin: 10px 0 0; color: var(--ajo-testo); }
.ajo-intro-text { max-width: 860px; }
.ajo-intro-text p { font-size: 18px; }

@media (max-width: 767px) {
	.ajo-hero::after { width: 320px; height: 320px; right: -120px; top: auto; bottom: -80px; opacity: .45; }
	.ajo-band { padding: 32px 24px; }
}

/* Hero con slideshow fotografico */
.ajo-hero--photo::after { display: none; }
.ajo-hero--photo > .elementor-background-slideshow { position: absolute !important; inset: 0; z-index: 0 !important; }
.ajo-hero--photo::before { z-index: 1 !important; }
.ajo-hero--photo > .e-con-inner { position: relative; z-index: 2; }
.ajo-hero--photo .elementor-heading-title, .ajo-hero--photo .ajo-hero-lead p { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.ajo-hero--photo .ajo-kicker .elementor-heading-title { color: #9FD8F5 !important; }
.ajo-hero--photo .ajo-hero-lead p { color: #fff; }
.ajo-hero--photo .ajo-popular a { background: rgba(15, 58, 87, .45); border-color: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .ajo-hero--photo .elementor-ken-burns { animation: none !important; transform: none !important; } }

/* 1.0.2 – menu mobile a fisarmonica */
.ajo-sub-toggle { display: none; }
@media (max-width: 1024px) {
	.ajo-header.is-open .ajo-header__nav { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
	.ajo-menu { gap: 0; }
	.ajo-menu > li { border-bottom: 1px solid var(--ajo-bordo); display: flex; flex-wrap: wrap; align-items: center; }
	.ajo-menu > li > a { flex: 1; min-height: 52px; font-size: 17px; font-weight: 700; padding: 0 4px; border-radius: 0; }
	.ajo-menu > li > a:hover { background: none; }
	.ajo-header .ajo-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ajo-blu); cursor: pointer; }
	.ajo-header .ajo-sub-toggle:hover, .ajo-header .ajo-sub-toggle:focus { background: var(--ajo-grigio); color: var(--ajo-blu); }
	.ajo-sub-toggle::before { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
	.ajo-menu > li.is-open > .ajo-sub-toggle::before { transform: rotate(-135deg) translateY(-3px); }
	.ajo-menu .sub-menu { display: none !important; flex: 1 1 100%; padding: 0 0 12px 8px; columns: 2; column-gap: 12px; }
	.ajo-menu li.is-open > .sub-menu { display: block !important; }
	.ajo-menu .sub-menu li { break-inside: avoid; }
	.ajo-menu .sub-menu a { min-height: 40px; font-size: 15px; font-weight: 500; padding: 0 4px; }
	.ajo-header__tools { padding-top: 12px; }
}
@media (max-width: 420px) { .ajo-menu .sub-menu { columns: 1; } }

/* 1.0.3 – niente colore amaranto del tema base sui pulsanti premuti */
.ajo-header .ajo-burger:hover, .ajo-header .ajo-burger:focus, .ajo-header .ajo-burger:active, .ajo-header.is-open .ajo-burger { background: var(--ajo-grigio); color: var(--ajo-blu); border-color: var(--ajo-bordo); }
.ajo-header .ajo-sub-toggle:active, .ajo-menu li.is-open > .ajo-sub-toggle { background: var(--ajo-grigio); color: var(--ajo-blu); }
.ajo-search .ajo-search__btn:active { background: #2E6B23; color: #fff; }
.ajo-cookie button.ajo-btn--primary:hover, .ajo-cookie button.ajo-btn--primary:focus, .ajo-cookie button.ajo-btn--primary:active { background: #2E6B23; color: #fff; border-color: transparent; }
.ajo-cookie button.ajo-btn--line:focus, .ajo-cookie button.ajo-btn--line:active { background: var(--ajo-blu); color: #fff; }
.ajo-map button.ajo-btn--line:focus, .ajo-map button.ajo-btn--line:active { background: var(--ajo-blu); color: #fff; }
.ajo-footer .ajo-cookie-open:focus, .ajo-footer .ajo-cookie-open:active { background: none; color: #fff; }
button:focus:not(:focus-visible) { outline: none; }
