/* ==========================================================================
   Sunrise Country — restyle grafico
   Caricato da wp-content/mu-plugins/sunrise-restyle.php dopo il CSS del
   Customizer. Nessuna modifica al database: per annullare basta eliminare
   il mu-plugin.
   ========================================================================== */

:root {
	--sr-navy: #0c2744;
	--sr-navy-2: #12365d;
	--sr-orange: #df8330;
	--sr-orange-dark: #c46b1c;
	--sr-cream: #f8f2e9;
	--sr-sand: #efe4d3;
	--sr-text: #2b3542;
	--sr-muted: #5d6877;
	--sr-radius: 18px;
	--sr-shadow: 0 10px 30px rgba(12, 39, 68, .10);
	--sr-shadow-lg: 0 22px 50px rgba(12, 39, 68, .18);
	--sr-head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
	--sr-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	/* Variabili di Neve */
	--nv-light-bg: var(--sr-cream);
	--bodyfontfamily: var(--sr-body);
	--headingsfontfamily: var(--sr-head);
}

/* ---------- Base ---------- */
body {
	font-family: var(--sr-body);
	color: var(--sr-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.entry-content p,
.entry-content li {
	font-size: 17px;
	line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--sr-head);
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.15;
}

::selection {
	background: var(--sr-orange);
	color: #fff;
}

/* ---------- Header ---------- */
/* Neve mette overflow: hidden sul .wrapper, che impedisce all'header di restare fisso:
   "clip" taglia ugualmente ciò che sborda senza bloccare position: sticky */
.wrapper {
	overflow: clip !important;
}

header.header {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.admin-bar header.header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar header.header {
		top: 0;
	}
}

.header-main-inner,
.header .header--row.header-main .header--row-inner {
	/* Tinta unita identica allo sfondo dell'immagine del logo, così il logo si fonde con l'header */
	background: #0b2744 !important;
	border-bottom: 3px solid var(--sr-orange);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.header-main-inner .container {
	padding-top: 6px;
	padding-bottom: 6px;
}

.site-logo img {
	transition: transform .3s ease;
}

.site-logo a:hover img {
	transform: rotate(-3deg) scale(1.04);
}

.builder-item--primary-menu {
	--color: #fff;
	--hovercolor: var(--sr-orange);
	--activecolor: var(--sr-orange);
}

.header-main .nav-ul > li > a,
.header-main .nav-ul > li > .wrap > a {
	font-family: var(--sr-head);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff !important;
	padding: 6px 2px;
	position: relative;
	transition: color .2s ease;
}

.header-main .nav-ul > li > a::before,
.header-main .nav-ul > li > .wrap > a::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--sr-orange);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .25s ease;
}

.header-main .nav-ul > li:hover > a,
.header-main .nav-ul > li:hover > .wrap > a,
.header-main .nav-ul > li.current-menu-item > a,
.header-main .nav-ul > li.current-menu-item > .wrap > a {
	color: var(--sr-orange) !important;
}

.header-main .nav-ul > li:hover > a::before,
.header-main .nav-ul > li:hover > .wrap > a::before,
.header-main .nav-ul > li.current-menu-item > a::before,
.header-main .nav-ul > li.current-menu-item > .wrap > a::before {
	transform: scaleX(1);
}

/* Menu mobile */
.header-menu-sidebar-bg {
	background: var(--sr-navy) !important;
}

.header-menu-sidebar .nav-ul li a {
	font-family: var(--sr-head);
	font-size: 20px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff !important;
}

.header-menu-sidebar .nav-ul li.current-menu-item a,
.header-menu-sidebar .nav-ul li a:hover {
	color: var(--sr-orange) !important;
}

.header-menu-sidebar .nav-ul li {
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- Pulsanti ---------- */
.wp-block-button__link,
.entry-content .wp-element-button,
.entry-content button[type="submit"],
.entry-content input[type="submit"] {
	font-family: var(--sr-head) !important;
	font-weight: 500;
	font-size: 16px !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	border-radius: 999px !important;
	padding: 14px 30px !important;
	background: var(--sr-orange) !important;
	color: #fff !important;
	border: 2px solid var(--sr-orange) !important;
	box-shadow: 0 8px 20px rgba(223, 131, 48, .35);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wp-block-button__link:hover,
.entry-content .wp-element-button:hover,
.entry-content button[type="submit"]:hover,
.entry-content input[type="submit"]:hover {
	background: var(--sr-orange-dark) !important;
	border-color: var(--sr-orange-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(223, 131, 48, .45);
}

/* Secondo pulsante affiancato: variante blu */
.wp-block-buttons .wp-block-button + .wp-block-button .wp-block-button__link {
	background: var(--sr-navy) !important;
	border-color: var(--sr-navy) !important;
	box-shadow: 0 8px 20px rgba(12, 39, 68, .25);
}

.wp-block-buttons .wp-block-button + .wp-block-button .wp-block-button__link:hover {
	background: var(--sr-navy-2) !important;
	border-color: var(--sr-navy-2) !important;
}

.wp-block-buttons {
	gap: 14px;
}

/* ---------- Titoli di sezione ---------- */
.entry-content h2.wp-block-heading {
	color: var(--sr-navy) !important;
	text-transform: uppercase;
	font-size: clamp(32px, 4.2vw, 50px);
	position: relative;
	padding-bottom: 18px;
	margin-bottom: 26px;
}

.entry-content h2.wp-block-heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 64px;
	height: 4px;
	border-radius: 4px;
	background: var(--sr-orange);
}

.entry-content h2.wp-block-heading.has-text-align-center::after {
	left: 50%;
	transform: translateX(-50%);
}

.entry-content h2.wp-block-heading.has-background {
	background: transparent !important;
}

/* Titolo principale delle pagine interne */
.page:not(.home) .entry-content > h2.wp-block-heading.has-text-align-center:first-child,
.page:not(.home) .entry-content > .wp-block-cover:first-child h2.wp-block-heading.has-text-align-center:first-of-type {
	font-size: clamp(38px, 6vw, 68px);
	margin-top: 40px;
	letter-spacing: .03em;
}

.page:not(.home) .entry-content > h2.wp-block-heading.has-text-align-center:first-child::before,
.page:not(.home) .entry-content > .wp-block-cover:first-child h2.wp-block-heading.has-text-align-center:first-of-type::before {
	content: '★  ★  ★';
	display: block;
	font-size: 14px;
	letter-spacing: .4em;
	color: var(--sr-orange);
	margin-bottom: 10px;
}

/* ---------- Immagini ---------- */
.entry-content .wp-block-image img {
	border-width: 0 !important;
	border-radius: var(--sr-radius) !important;
	box-shadow: var(--sr-shadow-lg);
	transition: transform .35s ease, box-shadow .35s ease;
}

.entry-content .wp-block-image:hover img {
	transform: translateY(-4px);
}

/* Le icone dei contatti non vanno trattate come foto */
.page-id-16 .entry-content .wp-block-image img {
	box-shadow: none;
	border-radius: 0 !important;
}

/* ---------- Homepage ---------- */
.home .nv-content-wrap > .wp-block-spacer:first-child {
	height: 28px !important;
}

/* Slider */
.home .n2-section-smartslider .n2-ss-slider-wrapper-inside {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--sr-shadow-lg);
	border-bottom: 5px solid var(--sr-orange);
}

.home .n2-section-smartslider .nextend-shadow {
	display: none !important;
}

/* Sezioni Corsi / Crociere / Country travel */
.home .wp-block-cover.alignfull {
	min-height: 0 !important;
	padding-top: 90px;
	padding-bottom: 90px;
	overflow: hidden;
}

.home .wp-block-cover.alignfull .wp-block-cover__background.has-nv-light-bg-background-color {
	background: var(--sr-cream) !important;
}

.home .wp-block-cover.alignfull .wp-block-cover__background.has-nv-site-bg-background-color {
	background: #fff !important;
}

.home .wp-block-cover.alignfull .wp-block-group__inner-container > .wp-block-spacer,
.home .wp-block-cover.alignfull .wp-block-column > .wp-block-spacer:first-child {
	height: 0 !important;
}

.home .wp-block-cover.alignfull .wp-block-column .wp-block-spacer {
	height: 18px !important;
}

.home .wp-block-cover .wp-block-columns {
	gap: 64px;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
}

.home .wp-block-cover .wp-block-column p {
	font-size: 18px;
	color: var(--sr-muted) !important;
	max-width: 520px;
}

.home .wp-block-cover .wp-block-image figure {
	position: relative;
}

.home .wp-block-cover .wp-block-image img {
	box-shadow: 18px 18px 0 0 var(--sr-orange), var(--sr-shadow-lg);
}

.home .wp-block-cover + .wp-block-cover .wp-block-image img {
	box-shadow: -18px 18px 0 0 var(--sr-navy), var(--sr-shadow-lg);
}

.home .wp-block-cover + .wp-block-cover + .wp-block-cover .wp-block-image img {
	box-shadow: 18px 18px 0 0 var(--sr-orange), var(--sr-shadow-lg);
}

/* Layout a zig-zag: la sezione centrale ha l'immagine a sinistra */
@media (min-width: 782px) {
	.home .wp-block-cover + .wp-block-cover .wp-block-columns {
		flex-direction: row-reverse;
	}

	.home .wp-block-cover + .wp-block-cover + .wp-block-cover .wp-block-columns {
		flex-direction: row;
	}
}

/* Piccola etichetta sopra ai titoli delle sezioni */
.home .wp-block-cover h2.wp-block-heading::before {
	content: 'Sunrise Country';
	display: block;
	font-family: var(--sr-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .25em;
	color: var(--sr-orange);
	margin-bottom: 8px;
}

/* ---------- Pagine interne: sfondo e spaziature ---------- */
.page:not(.home) .wp-block-cover.alignfull,
.page:not(.home) .wp-block-cover.aligncenter {
	min-height: 0 !important;
}

.page-id-15 .entry-content p,
.page-id-725 .entry-content > .wp-block-group p {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.page-id-15 .entry-content .wp-block-cover p:first-of-type {
	font-size: 20px;
	color: var(--sr-navy) !important;
	font-weight: 500;
}

/* ---------- Card dei corsi / country travel ---------- */
.colonna-travel {
	background: #fff;
	border-width: 6px 0 0 0 !important;
	border-style: solid !important;
	border-radius: 22px !important;
	box-shadow: var(--sr-shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}

.colonna-travel:hover {
	transform: translateY(-6px);
	box-shadow: var(--sr-shadow-lg);
}

.wp-block-columns:has(> .colonna-travel) {
	gap: 32px;
}

.page .entry-content .colonna-travel h2.wp-block-heading {
	font-size: 30px !important;
	margin-top: 0;
	padding-bottom: 14px;
	margin-bottom: 18px;
}

.page .entry-content .colonna-travel h2.wp-block-heading::before {
	content: none;
}

.page .entry-content .colonna-travel h2.wp-block-heading:empty {
	display: none;
}

.colonna-travel .wp-block-image img {
	border-radius: 50% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	max-width: 190px;
	margin: 0 auto;
	display: block;
	border: 5px solid #fff !important;
	box-shadow: 0 0 0 3px var(--sr-orange), var(--sr-shadow);
}

.colonna-travel p.has-text-align-center strong {
	display: inline-block;
	font-family: var(--sr-head);
	font-size: 18px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	background: var(--sr-navy);
	padding: 4px 16px;
	border-radius: 999px;
}

.colonna-travel p:not(.has-text-align-center) {
	color: var(--sr-text) !important;
	font-size: 15px !important;
	line-height: 1.55;
	background: var(--sr-cream);
	border-left: 3px solid var(--sr-orange);
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 10px;
}

.colonna-travel p:not(.has-text-align-center) a {
	color: var(--sr-orange-dark) !important;
}

.colonna-travel p:empty {
	display: none;
}

/* ---------- Contatti ---------- */
.page-id-16 .wp-block-columns {
	gap: 24px;
}

.page-id-16 .wp-block-columns > .wp-block-column {
	background: #fff;
	border-radius: var(--sr-radius);
	box-shadow: var(--sr-shadow);
	padding: 10px 18px 26px;
	border-top: 5px solid var(--sr-orange);
	transition: transform .3s ease, box-shadow .3s ease;
}

.page-id-16 .wp-block-columns > .wp-block-column:hover {
	transform: translateY(-5px);
	box-shadow: var(--sr-shadow-lg);
}

.page-id-16 .wp-block-column h3 {
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--sr-navy) !important;
}

.page-id-16 .wp-block-column p {
	font-size: 15px;
}

.page-id-16 .wp-block-column a {
	color: var(--sr-orange-dark) !important;
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Eventi (blog) ---------- */
.blog .posts-wrapper,
.archive .posts-wrapper {
	gap: 0;
}

.blog .article-content-col,
.archive .article-content-col {
	background: #fff;
	border: 0 !important;
	border-top: 6px solid var(--sr-orange) !important;
	border-radius: 20px !important;
	box-shadow: var(--sr-shadow);
	padding: 28px 30px !important;
	height: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
}

.blog .article-content-col:hover,
.archive .article-content-col:hover {
	transform: translateY(-5px);
	box-shadow: var(--sr-shadow-lg);
}

.blog .posts-wrapper article:nth-child(even) .article-content-col {
	border-top-color: var(--sr-navy) !important;
}

.blog .blog-entry-title,
.archive .blog-entry-title {
	font-size: 26px;
	line-height: 1.2;
}

.blog .blog-entry-title a,
.archive .blog-entry-title a {
	color: var(--sr-navy);
	text-decoration: none;
}

.blog .blog-entry-title a:hover,
.archive .blog-entry-title a:hover {
	color: var(--sr-orange);
}

.blog .entry-summary p {
	color: var(--sr-muted);
}

.blog .archive-container,
.archive .archive-container {
	padding-top: 50px;
	padding-bottom: 60px;
}

.blog .archive-container::before {
	content: 'Eventi';
	display: block;
	text-align: center;
	font-family: var(--sr-head);
	font-weight: 600;
	font-size: clamp(38px, 6vw, 68px);
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--sr-navy);
	margin-bottom: 40px;
}

/* Articolo singolo */
.single-post .nv-single-post-wrap .entry-title {
	color: var(--sr-navy);
	text-transform: uppercase;
}

/* ---------- Form ---------- */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content select,
.entry-content textarea {
	font-family: var(--sr-body);
	border: 1.5px solid #d6dce4 !important;
	border-radius: 12px !important;
	padding: 12px 14px !important;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus {
	outline: none;
	border-color: var(--sr-orange) !important;
	box-shadow: 0 0 0 4px rgba(223, 131, 48, .18);
}

/* Pagina iscrizioni (plugin stage) */
.dance-courses .dc-countdown-title {
	font-family: var(--sr-head);
	color: var(--sr-navy);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.dance-courses #countdown {
	color: var(--sr-orange);
}

.dance-courses .dc-panel-title {
	font-family: var(--sr-head);
}

/* ---------- Footer ---------- */
.site-footer .footer--row-inner {
	background: var(--sr-navy) !important;
	border-top: 4px solid var(--sr-orange);
}

.site-footer .footer-top-inner {
	position: relative;
	background:
		radial-gradient(circle at 50% -40%, rgba(223, 131, 48, .25), transparent 55%),
		var(--sr-navy) !important;
}

.site-footer,
.site-footer p {
	color: rgba(255, 255, 255, .75) !important;
	font-size: 15px;
	letter-spacing: .02em;
}

.site-footer a {
	color: var(--sr-orange) !important;
	text-decoration: none !important;
}

.site-footer a:hover {
	color: #fff !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.home .wp-block-cover.alignfull {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.home .wp-block-cover .wp-block-columns {
		gap: 36px;
	}

	.home .wp-block-cover .wp-block-image img,
	.home .wp-block-cover + .wp-block-cover .wp-block-image img,
	.home .wp-block-cover + .wp-block-cover + .wp-block-cover .wp-block-image img {
		box-shadow: 10px 10px 0 0 var(--sr-orange), var(--sr-shadow);
	}

	.home .n2-section-smartslider .n2-ss-slider-wrapper-inside {
		border-radius: 14px;
	}

	.entry-content p,
	.entry-content li {
		font-size: 16px;
	}

	.colonna-travel {
		margin-bottom: 10px;
	}
}

/* ==========================================================================
   Effetti in movimento (classi aggiunte da restyle.js)
   ========================================================================== */

/* ---------- Comparsa allo scroll ---------- */
.sr-js .sr-reveal {
	opacity: 0;
	transition:
		opacity .8s cubic-bezier(.2, .7, .2, 1) var(--sr-delay, 0ms),
		transform .9s cubic-bezier(.2, .7, .2, 1) var(--sr-delay, 0ms);
	will-change: opacity, transform;
}

.sr-js .sr-reveal--up {
	transform: translateY(46px);
}

.sr-js .sr-reveal--zoom {
	transform: scale(.88) rotate(-2deg);
}

.sr-js .sr-reveal--fade {
	transform: none;
}

.sr-js .sr-reveal.sr-in {
	opacity: 1;
	transform: none;
}

/* La foto nella sezione centrale della home entra ruotando dall'altro lato */
.sr-js .home .wp-block-cover + .wp-block-cover .sr-reveal--zoom:not(.sr-in) {
	transform: scale(.88) rotate(2deg);
}

/* La barretta arancio dei titoli si allunga quando compaiono */
.sr-js .entry-content h2.wp-block-heading.sr-reveal::after {
	width: 0;
	transition: width .9s cubic-bezier(.2, .7, .2, 1) calc(var(--sr-delay, 0ms) + 350ms);
}

.sr-js .entry-content h2.wp-block-heading.sr-reveal.sr-in::after {
	width: 64px;
}

/* Le card mantengono l'effetto hover dopo la comparsa */
.sr-js .colonna-travel.sr-in:hover,
.sr-js .page-id-16 .wp-block-column.sr-in:hover,
.sr-js .blog article.sr-in:hover .article-content-col {
	transition-delay: 0ms;
}

.sr-js .colonna-travel.sr-in {
	transition-property: opacity, transform, box-shadow;
}

/* ---------- Barra di avanzamento e "torna su" ---------- */
.sr-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	z-index: 100000;
	background: linear-gradient(90deg, var(--sr-orange), #ffc06b, var(--sr-orange));
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

.sr-totop {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	display: grid;
	place-items: center;
	color: #fff;
	background: var(--sr-orange);
	box-shadow: 0 10px 24px rgba(223, 131, 48, .45);
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px) scale(.8);
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease, background .2s ease;
}

.sr-totop.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.sr-totop:hover {
	background: var(--sr-navy);
	transform: translateY(-3px);
}

/* ---------- Header durante lo scroll ----------
   Solo l'ombra cambia: modificare l'altezza dell'header sposterebbe la pagina
   e farebbe scattare avanti e indietro la soglia di scroll. */
.site-logo img {
	transition: transform .3s ease;
}

.header-main-inner {
	transition: box-shadow .3s ease;
}

.sr-scrolled .header-main-inner {
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Logo che "saluta" al caricamento */
.sr-ready .header-main .site-logo img {
	animation: sr-swing 1.2s cubic-bezier(.3, 1.6, .5, 1) .2s both;
	transform-origin: 50% 0;
}

@keyframes sr-swing {
	0% { transform: rotate(-12deg) scale(.85); opacity: 0; }
	45% { transform: rotate(6deg) scale(1.03); opacity: 1; }
	70% { transform: rotate(-3deg); }
	100% { transform: none; }
}

/* Voci del menu che scendono una dopo l'altra */
.sr-ready .header-main .nav-ul > li {
	animation: sr-drop .6s cubic-bezier(.2, .7, .2, 1) both;
}

.sr-ready .header-main .nav-ul > li:nth-child(1) { animation-delay: .25s; }
.sr-ready .header-main .nav-ul > li:nth-child(2) { animation-delay: .32s; }
.sr-ready .header-main .nav-ul > li:nth-child(3) { animation-delay: .39s; }
.sr-ready .header-main .nav-ul > li:nth-child(4) { animation-delay: .46s; }
.sr-ready .header-main .nav-ul > li:nth-child(5) { animation-delay: .53s; }
.sr-ready .header-main .nav-ul > li:nth-child(6) { animation-delay: .60s; }
.sr-ready .header-main .nav-ul > li:nth-child(7) { animation-delay: .67s; }
.sr-ready .header-main .nav-ul > li:nth-child(8) { animation-delay: .74s; }

@keyframes sr-drop {
	from { opacity: 0; transform: translateY(-14px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Homepage: hero ---------- */
.home .single-page-container,
.home .nv-single-page-wrap {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.sr-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: linear-gradient(160deg, #081b31 0%, var(--sr-navy) 45%, #163f6b 100%);
	padding: 90px 24px 120px;
	min-height: min(820px, calc(100vh - 100px));
	display: flex;
	align-items: center;
}

/* Puntini a stella in trasparenza */
.sr-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.5px);
	background-size: 26px 26px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* Bordo inferiore ondulato */
.sr-hero::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 70px;
	z-index: 1;
	background: var(--sr-cream);
	clip-path: polygon(0 60%, 10% 45%, 22% 55%, 35% 35%, 50% 55%, 64% 38%, 78% 58%, 90% 42%, 100% 55%, 100% 100%, 0 100%);
}

.sr-hero__bg {
	position: absolute;
	inset: -10% -5%;
	z-index: -2;
	pointer-events: none;
}

/* Macchie di luce: gradienti radiali (niente filter: blur, più leggeri da animare) */
.sr-hero__bg span {
	position: absolute;
	border-radius: 50%;
	opacity: .6;
	will-change: transform;
	animation: sr-blob 14s ease-in-out infinite alternate;
}

.sr-hero__bg span:nth-child(1) {
	width: 760px;
	height: 760px;
	background: radial-gradient(circle, rgba(223, 131, 48, .85) 0%, rgba(223, 131, 48, 0) 65%);
	top: -8%;
	right: 0;
}

.sr-hero__bg span:nth-child(2) {
	width: 620px;
	height: 620px;
	background: radial-gradient(circle, rgba(255, 191, 94, .6) 0%, rgba(255, 191, 94, 0) 65%);
	bottom: -15%;
	left: 25%;
	opacity: .45;
	animation-duration: 18s;
	animation-delay: -5s;
}

.sr-hero__bg span:nth-child(3) {
	width: 680px;
	height: 680px;
	background: radial-gradient(circle, rgba(47, 109, 179, .8) 0%, rgba(47, 109, 179, 0) 65%);
	top: -18%;
	left: -12%;
	opacity: .55;
	animation-duration: 16s;
	animation-delay: -9s;
}

@keyframes sr-blob {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(60px, -40px) scale(1.15); }
	100% { transform: translate(-40px, 30px) scale(.9); }
}

.sr-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 60px;
	align-items: center;
}

.sr-hero__text > * {
	animation: sr-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.sr-hero__text > :nth-child(1) { animation-delay: .2s; }
.sr-hero__text > :nth-child(2) { animation-delay: .35s; }
.sr-hero__text > :nth-child(3) { animation-delay: .5s; }
.sr-hero__text > :nth-child(4) { animation-delay: .65s; }
.sr-hero__text > :nth-child(5) { animation-delay: .8s; }

.sr-hero .sr-hero__kicker {
	display: inline-block;
	font-family: var(--sr-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--sr-orange);
	background: rgba(223, 131, 48, .12);
	border: 1px solid rgba(223, 131, 48, .4);
	border-radius: 999px;
	padding: 8px 18px;
	margin: 0 0 22px;
}

.sr-hero .sr-hero__title {
	font-family: var(--sr-head);
	font-weight: 700;
	font-size: clamp(44px, 6.4vw, 88px);
	line-height: 1.02;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: #fff;
	margin: 0 0 24px;
	text-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}

.sr-rotator {
	display: block;
	position: relative;
	font-size: .7em;
	height: 1.1em;
	overflow: hidden;
}

.sr-rotator__word {
	position: absolute;
	left: 0;
	top: 0;
	white-space: nowrap;
	background: linear-gradient(90deg, var(--sr-orange), #ffc06b, var(--sr-orange));
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	transform: translateY(110%);
	opacity: 0;
	transition: transform .7s cubic-bezier(.7, 0, .2, 1), opacity .7s ease;
	animation: sr-shine 4s linear infinite;
}

.sr-rotator__word.is-active {
	transform: translateY(0);
	opacity: 1;
}

.sr-rotator__word.is-leaving {
	transform: translateY(-110%);
	opacity: 0;
}

@keyframes sr-shine {
	to { background-position: -200% 0; }
}

.sr-hero .sr-hero__lead {
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.7;
	color: rgba(255, 255, 255, .82);
	max-width: 540px;
	margin: 0 0 34px;
}

.sr-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 30px;
}

.sr-btn {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--sr-head);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 999px;
	padding: 16px 32px;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.sr-btn::after {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}

.sr-btn:hover::after {
	left: 130%;
}

.sr-btn:hover {
	transform: translateY(-3px);
}

.sr-btn--primary {
	background: var(--sr-orange);
	color: #fff !important;
	box-shadow: 0 12px 30px rgba(223, 131, 48, .45);
}

.sr-btn--primary:hover {
	background: var(--sr-orange-dark);
}

.sr-btn--ghost {
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, .5);
	background: rgba(255, 255, 255, .06);
	backdrop-filter: blur(4px);
}

.sr-btn--ghost:hover {
	border-color: #fff;
	background: #fff;
	color: var(--sr-navy) !important;
}

.sr-hero__ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
}

.sr-hero__ticks li {
	font-size: 15px;
	color: rgba(255, 255, 255, .75);
	display: flex;
	align-items: center;
	gap: 8px;
}

.sr-hero__ticks li::before {
	content: '✓';
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	color: var(--sr-navy);
	background: var(--sr-orange);
}

.sr-hero__media {
	position: relative;
	animation: sr-slide-in 1.1s cubic-bezier(.2, .7, .2, 1) .4s both;
}

@keyframes sr-slide-in {
	from { opacity: 0; transform: translateX(80px) rotate(4deg); }
	to { opacity: 1; transform: none; }
}

.sr-hero__frame {
	position: relative;
	transform: rotate(2deg);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.sr-hero__media:hover .sr-hero__frame {
	transform: rotate(0deg) scale(1.02);
}

.sr-hero__frame::before {
	content: '';
	position: absolute;
	inset: 18px -18px -18px 18px;
	border: 3px solid var(--sr-orange);
	border-radius: 28px;
	z-index: -1;
}

.home .sr-hero__frame .n2-section-smartslider .n2-ss-slider-wrapper-inside {
	border-radius: 24px;
	overflow: hidden;
	border-bottom: 0;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.sr-hero__frame .nextend-shadow {
	display: none !important;
}

/* Didascalie dello slider: in origine 36px fissi (slider largo 800px),
   qui scalano in proporzione al riquadro più stretto */
.sr-hero__frame .n2-ss-layer[data-sstype="layer"] [class*="n2-font-"] {
	font-size: clamp(15px, 1.9vw, 26px) !important;
	line-height: 1.35 !important;
}










/* La fascia scorrevole si appoggia sotto l'hero */
.home .sr-marquee {
	margin-top: -28px;
}

/* Numerazione delle sezioni: "01 · Sunrise Country" */
.home .entry-content {
	counter-reset: sr-sec;
}

.home .wp-block-cover h2.wp-block-heading {
	counter-increment: sr-sec;
}

.home .wp-block-cover h2.wp-block-heading::before {
	content: '0' counter(sr-sec) '  ·  Sunrise Country';
	white-space: pre;
}

/* ---------- Homepage: fascia dei numeri ---------- */
.sr-stats {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--sr-navy) 0%, #163f6b 100%);
	padding: 80px 24px;
}

.sr-stats::before {
	content: '★';
	position: absolute;
	font-size: 360px;
	line-height: 1;
	color: #fff;
	opacity: .04;
	right: -40px;
	top: -60px;
	animation: sr-spin 60s linear infinite;
}

.sr-stats__inner {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	text-align: center;
}

.sr-stat {
	padding: 10px;
}

.sr-stat + .sr-stat {
	border-left: 1px solid rgba(255, 255, 255, .12);
}

.sr-stat__num {
	display: block;
	font-family: var(--sr-head);
	font-weight: 700;
	font-size: clamp(52px, 6vw, 80px);
	line-height: 1;
	background: linear-gradient(180deg, #ffc06b, var(--sr-orange));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 10px;
}

.sr-stat__label {
	display: block;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
}

/* ---------- Homepage: chiamata finale all'azione ---------- */
.sr-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
	color: #fff;
	padding: 100px 24px;
	background: linear-gradient(120deg, var(--sr-orange-dark), var(--sr-orange) 50%, #f0a24f);
	background-size: 200% 200%;
	animation: sr-gradient 10s ease infinite;
}

.sr-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.5px);
	background-size: 22px 22px;
}

@keyframes sr-gradient {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.sr-cta__inner {
	max-width: 760px;
	margin: 0 auto;
}

.sr-cta .sr-cta__kicker {
	letter-spacing: .5em;
	color: var(--sr-navy);
	margin-bottom: 12px;
	animation: sr-twinkle 2.6s ease-in-out infinite;
}

.sr-cta .sr-cta__title {
	font-family: var(--sr-head);
	font-weight: 700;
	font-size: clamp(36px, 5vw, 64px);
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 16px;
	text-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.sr-cta .sr-cta__text {
	font-size: 19px;
	color: rgba(255, 255, 255, .92);
	margin: 0 0 34px;
}

.sr-cta .sr-hero__cta {
	justify-content: center;
	margin-bottom: 0;
}

.sr-cta .sr-btn--primary {
	background: var(--sr-navy);
	box-shadow: 0 12px 30px rgba(12, 39, 68, .35);
}

.sr-cta .sr-btn--primary:hover {
	background: #081b31;
}

.sr-cta .sr-btn--ghost:hover {
	color: var(--sr-orange-dark) !important;
}

/* Il footer si attacca alla fascia arancio */
.home .site-footer .footer--row-inner {
	border-top-color: var(--sr-navy);
}

@media (max-width: 960px) {
	.sr-hero {
		padding: 60px 20px 110px;
		min-height: 0;
	}

	.sr-hero__inner {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.sr-hero__media {
		max-width: 560px;
		margin: 0 auto;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.sr-stats__inner {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.sr-stat {
		padding: 22px 10px;
	}

	.sr-stat + .sr-stat {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .12);
	}
}

@media (max-width: 520px) {
	.sr-hero .sr-hero__title {
		font-size: 42px;
	}

	.sr-rotator {
		font-size: .8em;
	}

	.sr-hero__frame::before {
		inset: 10px -10px -10px 10px;
	}

	.sr-btn {
		font-size: 15px;
		padding: 14px 24px;
	}

	.sr-cta {
		padding: 70px 20px;
	}
}

@keyframes sr-rise {
	from { opacity: 0; transform: translateY(40px) scale(.97); }
	to { opacity: 1; transform: none; }
}

/* Effetto "Ken Burns" (zoom lento) sulle immagini dello slider */
.home .sr-hero-slider .n2-ss-slide-background-image img {
	animation: sr-kenburns 16s ease-in-out infinite alternate;
	transform-origin: 50% 40%;
}

@keyframes sr-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* ---------- Homepage: fascia scorrevole ---------- */
.sr-marquee {
	position: relative;
	overflow: hidden;
	margin-top: 40px;
	background: var(--sr-navy);
	border-top: 3px solid var(--sr-orange);
	border-bottom: 3px solid var(--sr-orange);
	transform: rotate(-1.2deg) scale(1.03);
	box-shadow: 0 14px 30px rgba(12, 39, 68, .25);
	z-index: 2;
}

.sr-marquee__track {
	display: flex;
	width: max-content;
	align-items: center;
	padding: 16px 0;
	animation: sr-marquee 32s linear infinite;
}

.sr-marquee:hover .sr-marquee__track {
	animation-play-state: paused;
}

.sr-marquee span {
	font-family: var(--sr-head);
	font-size: clamp(18px, 2.2vw, 26px);
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
	padding: 0 26px;
}

.sr-marquee i {
	font-style: normal;
	color: var(--sr-orange);
	font-size: 20px;
	animation: sr-spin 4s linear infinite;
	display: inline-block;
}

@keyframes sr-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes sr-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Homepage: stelle decorative che fluttuano ---------- */
.home .wp-block-cover.alignfull {
	position: relative;
}

.home .wp-block-cover.alignfull::before,
.home .wp-block-cover.alignfull::after {
	content: '★';
	position: absolute;
	z-index: 1;
	color: var(--sr-orange);
	opacity: .12;
	pointer-events: none;
	line-height: 1;
	animation: sr-float 7s ease-in-out infinite;
}

.home .wp-block-cover.alignfull::before {
	font-size: 140px;
	top: 40px;
	left: 3%;
}

.home .wp-block-cover.alignfull::after {
	font-size: 80px;
	bottom: 50px;
	right: 4%;
	color: var(--sr-navy);
	opacity: .08;
	animation-duration: 9s;
	animation-delay: -3s;
}

.home .wp-block-cover + .wp-block-cover::before {
	left: auto;
	right: 4%;
}

.home .wp-block-cover + .wp-block-cover::after {
	right: auto;
	left: 5%;
}

@keyframes sr-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-24px) rotate(14deg); }
}

/* Foto della home: transizione morbida per parallasse e inclinazione 3D */
.home .wp-block-cover .wp-block-image figure {
	will-change: transform;
}

.home .wp-block-cover .wp-block-image img {
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}

.home .wp-block-cover .wp-block-image:hover img {
	box-shadow: 26px 26px 0 0 var(--sr-orange), 0 30px 60px rgba(12, 39, 68, .25);
}

.home .wp-block-cover + .wp-block-cover .wp-block-image:hover img {
	box-shadow: -26px 26px 0 0 var(--sr-navy), 0 30px 60px rgba(12, 39, 68, .25);
}

.home .wp-block-cover + .wp-block-cover + .wp-block-cover .wp-block-image:hover img {
	box-shadow: 26px 26px 0 0 var(--sr-orange), 0 30px 60px rgba(12, 39, 68, .25);
}

/* Etichetta "Sunrise Country" con trattino che si allunga */
.home .wp-block-cover h2.wp-block-heading::before {
	background: linear-gradient(var(--sr-orange), var(--sr-orange)) left center / 0 2px no-repeat;
	transition: background-size .8s ease .5s, padding .8s ease .5s;
}

.home .wp-block-cover h2.wp-block-heading.sr-in::before {
	background-size: 28px 2px;
	padding-left: 38px;
}

/* ---------- Pulsanti: riflesso al passaggio del mouse ---------- */
.wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.wp-block-button__link::after {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}

.wp-block-button__link:hover::after {
	left: 130%;
}

/* "Iscrizione stage" pulsa per attirare l'attenzione */
.home .wp-block-buttons .wp-block-button + .wp-block-button .wp-block-button__link {
	animation: sr-pulse 2.4s ease-out infinite;
}

.home .wp-block-buttons .wp-block-button + .wp-block-button .wp-block-button__link:hover {
	animation: none;
}

@keyframes sr-pulse {
	0% { box-shadow: 0 0 0 0 rgba(12, 39, 68, .45); }
	70% { box-shadow: 0 0 0 16px rgba(12, 39, 68, 0); }
	100% { box-shadow: 0 0 0 0 rgba(12, 39, 68, 0); }
}

/* ---------- Pagine interne ---------- */
/* Stelline del titolo che brillano */
.page:not(.home) .entry-content > h2.wp-block-heading.has-text-align-center:first-child::before,
.page:not(.home) .entry-content > .wp-block-cover:first-child h2.wp-block-heading.has-text-align-center:first-of-type::before {
	animation: sr-twinkle 2.6s ease-in-out infinite;
}

@keyframes sr-twinkle {
	0%, 100% { opacity: 1; letter-spacing: .4em; }
	50% { opacity: .55; letter-spacing: .55em; }
}

/* Foto degli insegnanti: rotazione al passaggio sulla card */
.colonna-travel .wp-block-image img {
	transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease;
}

.colonna-travel:hover .wp-block-image img {
	transform: rotate(-6deg) scale(1.06);
	box-shadow: 0 0 0 5px var(--sr-orange), var(--sr-shadow-lg);
}

/* Icone dei contatti che saltellano */
.page-id-16 .wp-block-column:hover .wp-block-image img {
	animation: sr-bounce .6s ease;
}

@keyframes sr-bounce {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-10px); }
	70% { transform: translateY(-3px); }
}

@media (max-width: 781px) {
	.sr-marquee {
		margin-top: 28px;
	}

	.sr-marquee__track {
		padding: 12px 0;
		animation-duration: 24s;
	}

	.home .wp-block-cover.alignfull::before {
		font-size: 90px;
	}

	.home .wp-block-cover.alignfull::after {
		display: none;
	}

	.sr-totop {
		right: 14px;
		bottom: 14px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}

	.sr-js .sr-reveal {
		opacity: 1;
		transform: none;
	}
}
