/* Disco Napoli — vestito del sito (tema Astra): fondo bianco, rifiniture azzurre, accenti della notte.
   Si accende dal pannello "Stile e SEO" e si spegne con "Ripristina". */
html, body { overflow-x: clip; }
body {
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	background: #FFFFFF;
	color: #10202A;
}
h1, h2, h3, h4, .entry-title, .site-title { font-family: 'DM Sans', system-ui, sans-serif; letter-spacing: -.02em; color: #09344A; }
a { color: #0C657E; }
a:hover { color: #1FB5E9; }

/* ---------- Barra in alto ---------- */
.ast-above-header-bar, .ast-above-header-bar.ast-above-header {
	background: linear-gradient(90deg, #0C657E, #138BB0 50%, #5A3BE8) !important;
	border: 0 !important;
	min-height: 36px;
}
.ast-above-header-bar, .ast-above-header-bar a, .ast-above-header-bar .ast-header-html { color: #FFFFFF !important; font-size: 13px; font-weight: 500; }
.ast-above-header-bar a:hover { color: #EAF7FD !important; text-decoration: underline; }

/* ---------- Intestazione principale ---------- */
.ast-primary-header-bar, .main-header-bar, .ast-mobile-header-wrap .ast-primary-header-bar {
	background: rgba(255, 255, 255, .96) !important;
	border-bottom: 1px solid #E3EBF0 !important;
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
}
.ast-below-header-bar { display: none !important; }
.main-header-menu .menu-item > .menu-link, .ast-builder-menu-1 .menu-item > .menu-link {
	color: #09344A !important;
	font-weight: 700;
	font-size: 15px;
	border-radius: 999px;
	padding-left: 14px !important;
	padding-right: 14px !important;
	transition: background .15s, color .15s;
}
.main-header-menu .menu-item > .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
	color: #0C657E !important;
	background: #EAF7FD;
}
.ast-builder-button-wrap .ast-custom-button, .ast-header-button-1 .ast-custom-button {
	background: linear-gradient(135deg, #0C657E, #7B5CFF) !important;
	color: #FFFFFF !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	padding: 11px 22px !important;
	box-shadow: 0 6px 18px rgba(123, 92, 255, .3);
}
.ast-builder-button-wrap .ast-custom-button:hover { background: linear-gradient(135deg, #09344A, #0C657E) !important; }
.ast-button-wrap .menu-toggle, .ast-mobile-menu-trigger-minimal { color: #0C657E !important; }
.ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg { fill: #0C657E !important; }

/* Intestazione che resta in alto scorrendo (prima la dava Astra Pro) */
#masthead { position: sticky; top: 0; z-index: 99; }
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 0; } }

/* Logo più piccolo: l'intestazione fissa non deve mangiare lo schermo */
.site-header .custom-logo-link img, .site-header .site-logo-img img { max-height: 64px !important; width: auto !important; }
.ast-primary-header-bar .site-primary-header-wrap { min-height: 84px !important; }
@media (max-width: 921px) {
	.site-header .custom-logo-link img, .site-header .site-logo-img img { max-height: 52px !important; }
	.ast-mobile-header-wrap .ast-primary-header-bar .site-primary-header-wrap { min-height: 68px !important; }
}

/* ---------- Menu da telefono: pannello colorato, voci grandi che entrano una alla volta ---------- */
.ast-mobile-header-content, .ast-mobile-header-content .main-header-menu,
.ast-header-break-point .main-header-bar-navigation, .ast-header-break-point .main-navigation ul {
	background: transparent !important;
}
.ast-mobile-header-content {
	position: relative; overflow: hidden;
	background: linear-gradient(160deg, #09344A 0%, #0C657E 50%, #5A3BE8 100%) !important;
	padding: 12px 0 26px !important;
	box-shadow: 0 24px 40px -20px rgba(9, 20, 40, .6);
	border-radius: 0 0 28px 28px;
}
.ast-mobile-header-content::before {
	content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 79, 163, .55), transparent 65%); pointer-events: none;
}
.ast-mobile-header-content .menu-item .menu-link, .ast-header-break-point .main-navigation .menu-item .menu-link {
	position: relative;
	color: #FFFFFF !important;
	background: transparent !important;
	font-size: 1.3rem !important;
	font-weight: 800 !important;
	letter-spacing: -.01em;
	padding: 15px 26px !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
}
.ast-mobile-header-content .menu-item .menu-link::after { content: "→"; position: absolute; right: 26px; color: #7FE0FF; transition: transform .2s; }
.ast-mobile-header-content .menu-item .menu-link:hover, .ast-mobile-header-content .current-menu-item > .menu-link {
	color: #7FE0FF !important; background: rgba(255, 255, 255, .06) !important;
}
.ast-mobile-header-content .menu-item .menu-link:hover::after { transform: translateX(4px); }
.ast-mobile-header-content .menu-item { animation: dn-voce .45s cubic-bezier(.2, .7, .2, 1) both; }
.ast-mobile-header-content .menu-item:nth-child(2) { animation-delay: .05s; }
.ast-mobile-header-content .menu-item:nth-child(3) { animation-delay: .1s; }
.ast-mobile-header-content .menu-item:nth-child(4) { animation-delay: .15s; }
.ast-mobile-header-content .menu-item:nth-child(5) { animation-delay: .2s; }
.ast-mobile-header-content .menu-item:nth-child(6) { animation-delay: .25s; }
@keyframes dn-voce { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.ast-mobile-header-content .ast-builder-button-wrap { padding: 20px 26px 4px !important; }
.ast-mobile-header-content .ast-custom-button {
	display: block; text-align: center; width: 100%;
	background: #FFFFFF !important; color: #0C657E !important; font-size: 1.05rem !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .25) !important;
}
.ast-mobile-header-content .menu-toggle, .ast-mobile-header-content .ast-menu-toggle { color: #fff !important; }

/* ---------- Contenuto ---------- */
.site-content { background: #FFFFFF; }
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post { background: #FFFFFF; }
.ast-plain-container .site-content > .ast-container { max-width: 1200px; }
.page .ast-single-post-featured-section { display: none !important; }
.dn-pagina h1, .dn-pagina h2, .dn-pagina h3, .dn-box h2, .dn-box h3 { font-family: 'DM Sans', system-ui, sans-serif !important; }

/* Pagine nostre: niente spazio sopra, l'apertura parte subito sotto l'intestazione */
.dn-pieno #primary, .dn-pieno .site-main, .dn-pieno .entry-content, .dn-pieno article.page { margin-top: 0 !important; padding-top: 0 !important; }
.dn-pieno .entry-header { display: none !important; }

/* Pulsanti generici del tema e di WooCommerce */
.ast-button, .button, button.button, input[type=submit].button, .wp-block-button__link { border-radius: 999px; }

/* ---------- Piè di pagina colorato con onda ---------- */
.site-footer { position: relative; margin-top: 90px; border: 0 !important; color: #D6EEF7 !important; background: transparent !important; }
/* In cima al piè di pagina una barra di luci che corrono, come le strisce LED dei locali */
.site-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; z-index: 3; pointer-events: none;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .95) 0 8px, transparent 8px 26px),
		linear-gradient(90deg, #1FB5E9, #7B5CFF, #FF4FA3, #FFC23D, #1FB5E9);
	background-size: 26px 100%, 300% 100%;
	box-shadow: 0 0 18px rgba(123, 92, 255, .8), 0 0 40px rgba(31, 181, 233, .45);
	animation: dn-led-corre 1.2s linear infinite, dn-led-colore 8s linear infinite;
}
@keyframes dn-led-corre { to { background-position: 26px 0, 0 0; } }
@keyframes dn-led-colore { to { background-position: 0 0, 300% 0; } }
/* Fasci di luce che si muovono sullo sfondo del piè di pagina */
.site-primary-footer-wrap::before, .site-primary-footer-wrap::after {
	content: ""; position: absolute; top: -10%; width: 30%; height: 130%; pointer-events: none; z-index: 0;
	transform-origin: 50% 0; clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); mix-blend-mode: screen; opacity: .22;
	animation: dn-faro-piede 10s ease-in-out infinite alternate;
}
.site-primary-footer-wrap::before { left: 12%; background: linear-gradient(180deg, #7FE0FF, transparent 80%); }
.site-primary-footer-wrap::after { right: 10%; background: linear-gradient(180deg, #FF8BC6, transparent 80%); animation-delay: -5s; animation-duration: 12s; }
@keyframes dn-faro-piede { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.site-primary-footer-wrap > * { position: relative; z-index: 1; }
.site-primary-footer-wrap, .site-above-footer-wrap {
	position: relative; overflow: hidden;
	background:
		radial-gradient(40% 70% at 90% 10%, rgba(255, 79, 163, .28), transparent 60%),
		radial-gradient(40% 70% at 5% 90%, rgba(31, 181, 233, .25), transparent 60%),
		linear-gradient(180deg, #09344A 0%, #0B4A62 55%, #2C2A7A 100%) !important;
	color: #D6EEF7 !important;
	border: 0 !important;
}
.site-footer .widget-title, .site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5,
.site-footer [style*="color"] { color: #FFFFFF !important; }
.site-footer h5 { position: relative; padding-bottom: 10px; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1FB5E9, #7B5CFF, #FF4FA3); }
.site-footer p, .site-footer li, .site-footer span { color: #D6EEF7 !important; }
.site-footer a { color: #7FE0FF !important; text-decoration: none; }
.site-footer a:hover { color: #FFE08A !important; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul li a::before { content: "♪ "; color: #FF8BC6; }
.site-below-footer-wrap {
	background: #071F2C !important;
	border-top: 1px solid rgba(255, 255, 255, .08) !important;
}
.site-below-footer-wrap, .site-below-footer-wrap span, .ast-footer-copyright, .site-below-footer-wrap p { color: #9FC3D2 !important; font-size: 14px; }
.site-below-footer-wrap .menu-link { color: #D6EEF7 !important; }
.ast-footer-social-wrap .ast-builder-social-element { background: rgba(255, 255, 255, .1) !important; border-radius: 999px; transition: background .2s, transform .2s; }
.ast-footer-social-wrap .ast-builder-social-element:hover { background: linear-gradient(135deg, #7B5CFF, #FF4FA3) !important; transform: translateY(-3px); }
.ast-footer-social-wrap .ast-builder-social-element svg { fill: #FFFFFF !important; }
#ast-scroll-top { background: linear-gradient(135deg, #0C657E, #7B5CFF) !important; border-radius: 12px; }

/* ---------- Pulsante WhatsApp ---------- */
.ht-ctc.ht-ctc-chat { z-index: 999 !important; left: auto !important; right: 18px !important; bottom: 76px !important; }
body:has(.cky-consent-container:not(.cky-hide)) .ht-ctc { bottom: 190px !important; }
@media (max-width: 640px) {
	body:has(.cky-consent-container:not(.cky-hide)) .ht-ctc { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ast-mobile-header-content .menu-item { animation: none; }
}

/* Il tema lascia 40px sotto la testata: nelle nostre pagine l'apertura parte attaccata */
.dn-pieno #masthead { margin-bottom: 0 !important; }

/* ---------- Traduttore nostro nella barra in alto e nel menu del telefono ---------- */
.ast-above-header-bar .md24h-trad, .ast-above-header-bar [class*="md24h-trad"] { font-size: 13px; }
.ast-mobile-header-content .ast-header-html-2, .ast-mobile-popup-content .ast-header-html-2 { padding: 16px 26px 6px; }
@media (prefers-reduced-motion: reduce) {
	.site-footer::before, .site-primary-footer-wrap::before, .site-primary-footer-wrap::after { animation: none; }
}

/* Pulsante "Registrati" accanto ad "Accedi" (voce di menu disegnata come pulsante) */
.main-header-menu .dn-voce-registrati > .menu-link {
	border: 2px solid #7B5CFF !important; color: #5A3BE8 !important; background: #fff !important;
	padding: 6px 18px !important; line-height: 1.6 !important; margin-left: 8px;
}
.main-header-menu .dn-voce-registrati > .menu-link:hover { background: #F1EDFF !important; }
.logged-in .dn-voce-registrati { display: none !important; }
.ast-mobile-header-content .dn-voce-registrati > .menu-link { color: #FFE08A !important; }
.main-header-menu .dn-voce-registrati { display: flex; align-items: center; }
.main-header-menu .dn-voce-registrati > .menu-link { height: auto !important; min-height: 0 !important; padding: 8px 20px !important; line-height: 1.2 !important; }
