/* ===================================
   CSS VARIABLES & TYPOGRAPHY
   =================================== */

:root {
    /* Colors */
    --white: #ffffff;
    --violet: #180a2c;
    --darkred: #441c27;
    --darkblue: #111e60;
    --turquoise: #2a596b;
    --lightgrey: #f5f5f5;
    --text-grey: #666666;
    --text-dark: rgba(26, 26, 26, 0.7);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-headline: 'IvyPresto Headline', serif;

    /* Spacing */
    --container-padding: 119px;
    --section-padding: 100px;
    --gap-small: 8px;
    --gap-medium: 22px;
    --gap-large: 60px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--violet);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0; /* Initial state for GSAP fade-in animation */
}

/* Container with max-width */
.container-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    font-family: var(--font-headline);
    font-style: normal;
    max-width: fit-content;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    background: var(--violet);
    color: var(--white);
    padding: 8px 40px 10px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary-white {
    background: var(--white);
    color: var(--darkred);
    padding: 8px 40px 12px;
    border-radius: 100px;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}

.btn-primary-white:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 12px 36px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 300;
    background: transparent;
    transition: background 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-white {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 8px 40px 10px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 300;
    background: transparent;
    transition: background 0.3s;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white)
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    height: 857px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 25%),
        rgba(37, 19, 56, 0.6);
}

/* Navigation */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 40px 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%);
    transition: background 0.3s ease;
}

/* Adjust header position when WordPress admin bar is present */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Header for pages without hero */
.no-hero .site-header {
    position: relative;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-hero .site-header .site-logo {
    filter: brightness(0);
}

.no-hero .main-navigation a {
    color: var(--violet);
}

.no-hero .main-navigation a:hover,
.no-hero .main-navigation a:visited,
.no-hero .main-navigation a:active,
.no-hero .main-navigation a:focus {
    color: var(--violet);
}

.no-hero .main-navigation a:hover {
    border-bottom: 0.5px solid var(--violet);
}

/* Active menu item for no-hero pages */
.no-hero .main-navigation .current-menu-item > a,
.no-hero .main-navigation .current_page_item > a,
.no-hero .main-navigation .current-menu-parent > a,
.no-hero .main-navigation .current_page_parent > a {
    border-bottom: 0.5px solid var(--violet);
}

.no-hero .main-navigation li.border a {
    border: 1px solid var(--violet);
    color: var(--violet);
}

.no-hero .main-navigation li.border a:hover {
    background: rgba(24, 10, 44, 0.05);
    border-bottom: 1px solid var(--violet);
}

/* Active state for border class on no-hero pages */
.no-hero .main-navigation li.border.current-menu-item > a,
.no-hero .main-navigation li.border.current_page_item > a,
.no-hero .main-navigation li.border a:active {
    background: var(--violet);
    color: var(--white);
    border-bottom: 1px solid var(--violet);
}

/* Dropdown styles for no-hero pages - desktop only */
@media (min-width: 993px) {
    .no-hero .main-navigation .sub-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .no-hero .main-navigation .sub-menu a {
        color: var(--violet);
    }

    .no-hero .main-navigation .sub-menu li:hover {
        background: rgba(24, 10, 44, 0.05) !important;
    }
}

.no-hero .language-switcher {
    color: var(--violet);
}

.no-hero .language-switcher a {
    color: var(--violet);
}

.no-hero .site-header .social-links img {
    filter: brightness(0);
}

.no-hero .hamburger-line {
    background: var(--violet);
}

/* Mobile menu items - ensure they're visible when menu is toggled */
@media (max-width: 1024px) {
    .no-hero .main-navigation.toggled ul li a,
    .no-hero .main-navigation.toggled #primary-menu li a {
        color: #ffffff;
    }

    .no-hero .main-navigation.toggled .mobile-language-switcher {
        color: #ffffff;
    }

    .no-hero .main-navigation.toggled .mobile-language-switcher a {
        color: #ffffff;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a {
    display: block;
    line-height: 0;
}

.site-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-branding a:hover .site-logo {
    transform: scale(1.05);
    opacity: 0.85;
}

.main-navigation {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-navigation .menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

.main-navigation ul,
.main-navigation #primary-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.mobile-language-switcher {
    display: none;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 300;
    transition: border-bottom 0.3s;
    padding-bottom: 2px;
}

.main-navigation a:hover,
.main-navigation a:visited,
.main-navigation a:active,
.main-navigation a:focus {
    color: var(--white);
}

.main-navigation a:hover {
    border-bottom: 0.5px solid var(--white);
}

/* Active menu item */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-parent > a,
.main-navigation .current_page_parent > a {
    border-bottom: 0.5px solid var(--white);
}

/* Contact button in menu - add border to items with border class */
.main-navigation li.border a {
    border: 1px solid var(--white);
    padding: 8px 36px;
    border-radius: 100px;
    transition: background 0.3s;
    border-bottom: 1px solid var(--white);
}

.main-navigation li.border a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--white);
}

/* Active state for border class (contact button) */
.main-navigation li.border.current-menu-item > a,
.main-navigation li.border.current_page_item > a,
.main-navigation li.border a:active {
    background: var(--white);
    color: var(--violet);
    border-bottom: 1px solid var(--white);
}

/* Dropdown Menu Styles - Desktop */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(24, 10, 44, 0.95);
    backdrop-filter: blur(10px);
    min-width: max-content;
    padding: 16px 0 !important;
    margin: 0 !important;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.main-navigation li {
    position: relative;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li.focus > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li,
.main-navigation .sub-menu .menu-item {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 18px !important;
    border-bottom: none !important;
    transition: background 0.3s, opacity 0.3s;
    box-sizing: border-box !important;
    white-space: nowrap;
    width: 100%;
}

.main-navigation .sub-menu li:hover,
.main-navigation .sub-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.main-navigation .sub-menu li a:hover,
.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu .menu-item a:hover {
    background: transparent !important;
    border-bottom: none !important;
}


.btn-contact {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 12px 36px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 300;
    background: transparent;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-contact:active,
.btn-contact.active {
    background: rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.language-switcher {
    color: var(--white);
    font-size: 20px;
    font-weight: 300;
}

.language-switcher a {
    font-family: Inter, sans-serif;
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.3s;
}

.language-switcher a:hover {
    opacity: 0.7;
}

.language-switcher .active {
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    width: 20px;
    height: 20px;
}

.social-links img {
    width: 100%;
    height: 100%;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.social-links a:hover img {
    opacity: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.hero-title {
    font-size: 84px;
    line-height: 80px;
    letter-spacing: 3px;
    color: var(--white);
    font-weight: 300;
}

.hero-subtitle {
    font-size: 32px;
    line-height: 23px;
    color: var(--white);
    font-weight: 300;
    margin: 0;
}

/* MIUR Badge */
.miur-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    border: 0.5px solid var(--white);
    border-radius: 12px;
    padding: 12px;
}

.badge-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge-icon {
    width: 28px;
    height: 28px;
}

.badge-content p {
    font-family: "IvyPresto Text";
    color: var(--white);
    font-size: 13px;
    max-width: 318px;
    font-weight: 300;
    padding: 0;
    margin: 0;
}

/* ===================================
   PARTNERS SECTION
   =================================== */

.partners {
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0) 22.747%, #f5f5f5);
    padding: 28px 0;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 130px;
}

.partner-logo {
    max-height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    padding: var(--section-padding) 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-large);
}

.about-content {
    flex: 1;
    max-width: 636px;
    display: flex;
    flex-direction: column;
}

.about-content h2 {
    font-size: 50px;
    line-height: 60px;
    font-weight: 300;
    color: var(--violet);
    margin-bottom: 32px;
}

.about-content p {
    font-size: 18px;
    line-height: 30px;
    color: var(--text-grey);
    margin-bottom: 16px;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

.about-content .btn-primary {
    margin-top: 32px;
}

.about-image {
    width: 510px;
    height: 510px;
    flex-shrink: 0;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.08);
}

/* ===================================
   AGE GROUPS SECTION
   =================================== */

.age-groups {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-width: 2500px;
    margin: 0 auto;
}

.age-groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 2500px;
    margin: 0 auto;
}

.age-card {
    position: relative;
    height: 377px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    overflow: hidden;
    text-decoration: none;
}

.age-card h3,
.age-card p {
    color: #ffffff;
}

.age-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.age-card:hover .age-card-bg {
    transform: scale(1.08);
}

.age-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.age-card.children .age-card-overlay {
    background: rgba(42, 89, 107, 0.8);
}

.age-card.teens .age-card-overlay {
    background: rgba(68, 28, 39, 0.8);
}

.age-card.adults .age-card-overlay {
    background: rgba(25, 37, 101, 0.8);
}

.age-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.age-badge {
    font-family: var(--font-primary);
    background: rgba(19, 61, 77, 0.7);
    color: var(--white);
    font-size: 14px;
    padding: 2px 10px;
    display: inline-block;
    width: fit-content;
}

.age-card.teens .age-badge {
    background: #3f1621;
}

.age-card.adults .age-badge {
    background: #091551;
}

.age-card h3 {
    font-size: 36px;
    font-weight: 300;
    color: var(--white);
}

.age-card p {
    font-size: 18px;
    font-family: Inter, sans-serif;
    line-height: 30px;
    color: var(--white);
    margin: 0;
}

/* Professional Training */
.professional-training {
    position: relative;
    height: 358px;
    padding: 60px 40px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 2500px;
    margin: 0 auto;
}

.professional-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.professional-training:hover .professional-bg {
    transform: scale(1.08);
}

.professional-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.professional-content h2 {
    font-size: 50px;
    line-height: 60px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 10px;
}

.professional-content p {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 30px;
    color: var(--white);
}

/* ===================================
   DISCIPLINES SECTION
   =================================== */

.disciplines-section {
	background: #ffffff;
	padding: 100px 0;
}

.disciplines-section-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.disciplines-header {
	text-align: center;
	margin-bottom: 60px;
}

.disciplines-header h2 {
	font-size: 50px;
	line-height: 60px;
	color: #180a2c;
	margin: 0 0 8px 0;
}

.disciplines-header p {
    margin-bottom: 0px;
    font-size: 22px;
}

.disciplines-header .subheading {
	font-size: 22px;
	line-height: 34px;
	color: #666666;
	margin: 0;
}

.disciplines-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.discipline-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	text-decoration: none;
	cursor: pointer;
	height: 100%;
	width: 100%;
	min-width: 100%;
}

.discipline-card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
}

.discipline-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
}

.discipline-card:hover .discipline-card-image img {
	transform: scale(1.08);
}

.discipline-card-content {
	background: linear-gradient(180deg, rgba(245, 245, 245, 0) 22.747%, #f5f5f5 100%);
	padding: 28px 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex: 1;
}

.discipline-card-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.age-group-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.age-group-tag {
    font-family: Inter, sans-serif;
	background: #2a596b;
	color: #ffffff !important;
	font-size: 14px;
	line-height: 26px;
	padding: 0 8px;
	display: inline-block;
	text-decoration: none;
	transition: opacity 0.3s;
	position: relative;
	z-index: 2;
}

.age-group-tag:hover {
	opacity: 0.85;
	color: #ffffff !important;
}

.age-group-tag:visited {
	color: #ffffff !important;
}

/* Different colors for age groups */
.age-group-tag:nth-child(2) {
	background: #441c27;
}

.age-group-tag:nth-child(3) {
	background: #111e60;
}

.discipline-card h3 {
	font-size: 36px;
	line-height: 1.2;
	color: #180a2c;
	margin: 6px 0 0 0;
}

.discipline-card-info p {
    font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 26px;
	color: rgba(26, 26, 26, 0.7);
	margin: 0;
}

.discipline-card-link {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
}

.discipline-card-link svg {
	display: block;
	transition: transform 0.3s;
}

.discipline-card:hover .discipline-card-link svg {
	transform: translateX(5px);
}

/* Responsive Design for Disciplines Section */
@media (max-width: 1200px) {
	.disciplines-section-inner {
		padding: 0 40px;
	}
}

@media (max-width: 992px) {
	.disciplines-section {
		padding: 80px 0;
	}

	.disciplines-section-inner {
		padding: 0 30px;
	}

	.disciplines-header h2 {
		font-size: 40px;
		line-height: 50px;
	}

	.disciplines-header .subheading {
		font-size: 20px;
		line-height: 30px;
	}

	.disciplines-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.disciplines-section {
		padding: 60px 0;
	}

	.disciplines-section-inner {
		padding: 0 20px;
	}

	.disciplines-header h2 {
		font-size: 36px;
		line-height: 44px;
	}

	.disciplines-header .subheading {
		font-size: 18px;
		line-height: 28px;
	}

	.disciplines-grid {
		grid-template-columns: 1fr;
	}

	.discipline-card h3 {
		font-size: 32px;
	}
}

@media (max-width: 480px) {
	.disciplines-section {
		padding: 50px 0;
	}

	.disciplines-section-inner {
		padding: 0 20px;
	}

	.disciplines-header {
		margin-bottom: 40px;
	}

	.disciplines-header h2 {
		font-size: 32px;
		line-height: 40px;
	}

	.disciplines-header .subheading {
		font-size: 16px;
		line-height: 26px;
	}

	.disciplines-grid {
		grid-template-columns: 1fr;
	}

	.discipline-card h3 {
		font-size: 28px;
	}
}

/* ===================================
   STUDIOS SECTION
   =================================== */

.studios {
    position: relative;
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.studios-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 50%;
}

.studios-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.studios-content .studios-text {
    max-width: 655px;
}

.studios-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studios-stats {
    color: var(--white);
    padding-bottom: 24px;
}

.stat-number {
    font-size: 80px;
    font-weight: 400;
    line-height: 1;
}

.stat-label {
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
}

.studios-text p {
    font-size: 18px;
    line-height: 30px;
    color: var(--white);
}

/* ===================================
   TEACHERS SECTION
   =================================== */

.teachers {
    padding: var(--section-padding) 0;
}

.teachers-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-medium);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.all-teachers-button {
    margin-top: 100px;
}

.teachers-column {
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
}

.teacher-card {
    display: contents;
}

.teacher-card:hover {
    transform: translateY(-4px);
}

.teacher-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.teacher-card:hover img {
    transform: scale(1.08);
}

/* Teacher Card - Background Image Style (for template-teachers.php & single-discipline.php) */
.teacher-card-image {
    width: 100%;
    height: 386px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0px 3px 20px 0px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.teacher-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.6s ease;
}

.teacher-card:hover .teacher-card-bg {
    transform: scale(1.08);
}

.teacher-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 41.8%, #000000 100%);
    pointer-events: none;
    z-index: 1;
}

/* Teacher gradient - for img tag version (frontpage) */
.teacher-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 225px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
    pointer-events: none;
}

/* Teacher card content - unified class for all teacher cards */
.teacher-card-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 24px;
    text-align: left;
}

.teacher-card-content h3 {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    color: var(--white);
    margin: 0;
    margin-bottom: 10px;
    width: 100%;
}

.teacher-card-content p {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 30px;
    color: var(--white);
    margin: 0;
    width: 100%;
}

/* ===================================
   GALLERY SECTION
   =================================== */

.gallery {
    background: var(--lightgrey);
    padding: 0;
    max-width: 2500px;
    margin: 0 auto;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.gallery-grid-item {
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    display: flex;
}

.gallery-grid-item a {
    display: contents;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    z-index: 1;
    flex: 1;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
    pointer-events: none;
}

.gallery-grid-item:hover img {
    transform: scale(1.08);
}

.gallery-content {
    max-width: 465px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-content h2 {
    font-size: 50px;
    line-height: 60px;
    font-weight: 300;
    color: var(--violet);
}

.gallery-content .subtitle {
    font-size: 22px;
    line-height: 34px;
    color: var(--text-grey);
    margin-bottom: 10px;
}

.gallery-content .description {
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    color: var(--text-grey);
}

/* ===================================
   AWARDS SECTION
   =================================== */

.awards {
    padding: var(--section-padding) 0;
}

.awards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-large);
}

.awards-container h2 {
    font-size: 50px;
    font-weight: 300;
    color: var(--violet);
    text-align: center;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-medium);
    width: 100%;
}

.award-card {
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0) 22.747%, #f5f5f5);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
    min-height: 100%;
}

.award-card h3 {
    font-size: 28px;
    font-weight: 300;
    color: var(--violet);
}

.award-card p {
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 26px;
    color: var(--text-grey);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: #180a2c;
    color: #ffffff;
    padding: 32px 119px;
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
    justify-content: center;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.footer-column {
    width: 386px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column:first-child {
    justify-content: space-between;
}

.footer-column h3,
.footer-column h4 {
    font-size: 28px;
    font-weight: 300;
    line-height: normal;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-column p {
    font-size: 16px;
    line-height: 26px;
    color: #ffffff;
    margin-bottom: 4px;
}

.footer-column:first-child p {
    width: 330.297px;
}

.social-links {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.social-links a {
    display: block;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-column ul,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-column li,
.footer-menu li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column li::before,
.footer-menu li::before {
    content: '';
    width: 3.321px;
    height: 3.321px;
    background: #ffffff;
    display: block;
    flex-shrink: 0;
}

.footer-column a {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-divider {
    height: 1px;
    background: #ffffff;
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s;
    font-family: var(--font-primary);
}

.footer-bottom a:hover {
    opacity: 0.7;
}

/* Footer Responsive Design */
@media (max-width: 1600px) {
    .partners-container {
        gap: 60px;
        padding: 0 40px;
    }
}

@media (max-width: 1400px) {
    .site-footer {
        padding: 32px 60px;
    }

    .partners-container {
        gap: 40px;
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {
    .site-footer {
        padding: 32px 40px;
    }

    .partners-container {
        flex-wrap: wrap;
        gap: 24px 36px;
        padding: 0 32px;
    }

    .partner-logo {
        max-height: 44px;
    }

    .footer-column {
        width: 30%;
    }

    .footer-column:first-child p {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .site-footer {
        padding: 32px 30px;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-column {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 32px 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
    }

    .footer-column h3,
    .footer-column h4 {
        font-size: 24px;
    }

    .site-footer .footer-container {
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 32px 16px;
    }

    .footer-column h3,
    .footer-column h4 {
        font-size: 22px;
    }

    .footer-column p {
        font-size: 15px;
        line-height: 24px;
    }

    .footer-column a {
        font-size: 15px;
        line-height: 24px;
    }

    .footer-bottom {
        font-size: 15px;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 60px;
        --section-padding: 80px;
    }

    .hero-title {
        font-size: 60px;
        line-height: 60px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .main-navigation {
        gap: 24px;
    }

    .main-navigation a {
        font-size: 18px;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        max-width: 510px;
    }

    .age-groups-grid {
        grid-template-columns: 1fr;
    }

    .disciplines-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teachers {
        padding-left: 20px;
        padding-right: 20px;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teachers-column {
        display: contents;
    }

    .studios {
        padding-left: 20px;
        padding-right: 20px;
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-container {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .gallery-grid {
        width: 100%;
        order: 1;
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-content {
        order: 2;
        max-width: 100%;
        padding: 0 20px 80px 20px;
    }

    .gallery-button {
        align-self: center;
    }
}

/* Tablet - Show mobile menu (992px and below) */
@media (max-width: 992px) {
    .partners-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 28px 60px;
        padding: 0 32px;
    }

    .partner-logo {
        max-height: 42px;
    }

    /* Show hamburger menu */
    .main-navigation .menu-toggle {
        display: flex;
    }

    /* Move hamburger to far right */
    .header-actions {
        order: 1;
    }

    .main-navigation {
        order: 2;
    }

    /* Mobile menu wrapper */
    .nav-menu-wrapper {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        height: 100vh;
        background: var(--violet);
        flex-direction: column;
        gap: 0;
        padding: 80px 40px 40px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 99;
        transition: transform 0.3s ease;
    }

    /* Show menu when toggled */
    .main-navigation.toggled .nav-menu-wrapper {
        display: flex;
    }

    /* Reset menu styles for mobile */
    .main-navigation ul,
    .main-navigation #primary-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    /* Mobile menu items */
    .main-navigation ul li,
    .main-navigation #primary-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul li a,
    .main-navigation #primary-menu li a {
        display: block;
        padding: 18px 0;
        width: 100%;
        font-size: 18px;
        border: none !important;
    }

    /* Border menu item (contact button) in mobile */
    .main-navigation li.border {
        border-bottom: none;
    }

    .main-navigation li.border a {
        border: none !important;
        border-radius: 0;
        padding: 18px 0 !important;
        background: transparent !important;
        color: var(--white) !important;
    }

    .main-navigation li.border.current-menu-item > a,
    .main-navigation li.border.current_page_item > a,
    .main-navigation li.border a:active {
        background: transparent !important;
        color: var(--white) !important;
    }

    /* Mobile Dropdown Styles */
    .main-navigation .sub-menu {
        position: static;
        display: none;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none;
        min-width: 100%;
        background: transparent;
    }

    .main-navigation li.focus > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu li {
        border-bottom: none;
    }

    .main-navigation .sub-menu a {
        padding: 6px 0 6px 30px !important;
        font-size: 15px !important;
        font-weight: 300 !important;
        opacity: 0.85;
    }

    .main-navigation .sub-menu a:hover {
        opacity: 1;
    }

    /* Mobile language switcher */
    .mobile-language-switcher {
        display: block;
        color: var(--white);
        font-size: 18px;
        font-weight: 300;
        line-height: 1;
        text-align: center;
        padding: 30px 0 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 20px;
        white-space: nowrap;
    }

    .mobile-language-switcher a,
    .mobile-language-switcher span {
        display: inline !important;
        vertical-align: middle;
        width: auto !important;
        padding: 0 !important;
    }

    .mobile-language-switcher a {
        color: var(--white);
        text-decoration: none;
        font-weight: 300;
        transition: opacity 0.3s;
    }

    .mobile-language-switcher a:hover {
        opacity: 0.7;
    }

    .mobile-language-switcher .active {
        font-weight: 500;
    }

    /* Hide desktop language switcher on mobile */
    .desktop-language-switcher {
        display: none;
    }

    /* Hamburger animation when menu is open */
    .main-navigation.toggled .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .main-navigation.toggled .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .main-navigation.toggled .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Menu overlay */
    .main-navigation::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 98;
    }

    .main-navigation.toggled::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --section-padding: 60px;
    }

    .hero {
        height: auto;
        min-height: 600px;
        padding-top: 120px;
    }

    .hero-title {
        font-size: 42px;
        line-height: 48px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .hero-content {
        gap: 20px;
    }

    .founders-banner {
        align-items: flex-end !important;
        padding-bottom: 50px;
    }

    .founders-banner-content-title {
        margin-bottom: 0 !important;
    }

    .all-teachers-button {
        margin-top: 50px;
    }

    .btn-primary-white {
        font-size: 18px;
        padding: 8px 24px 12px;
    }

    /* Navigation - Mobile menu */
    .site-header {
        padding: 20px;
    }

    .site-branding h1,
    .site-title {
        font-size: 32px;
    }

    .site-description {
        font-size: 14px;
    }

    /* Narrower menu on smaller screens */
    .nav-menu-wrapper {
        width: 280px;
        padding: 70px 30px 30px;
    }

    .main-navigation ul li a,
    .main-navigation #primary-menu li a {
        padding: 16px 0;
        font-size: 17px;
    }

    .mobile-language-switcher {
        font-size: 17px;
        padding: 24px 0 16px;
    }

    /* Keep social icons visible */
    .header-actions {
        gap: 16px;
        order: 1;
    }

    .main-navigation {
        order: 2;
    }

    .miur-badge {
        position: static;
        margin-top: 40px;
        z-index: 1;
    }

    .partners-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px 48px;
        padding: 0 24px;
    }

    .partner-logo {
        max-height: 36px;
        flex: 0 0 auto;
    }

    .about-content h2,
    .section-header h2,
    .gallery-content h2,
    .awards-container h2,
    .professional-content h2 {
        font-size: 36px;
        line-height: 42px;
    }

    .professional-training::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
    }

    .studios::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
    }

    .teachers {
        padding-left: 20px;
        padding-right: 20px;
    }

    .disciplines-grid,
    .teachers-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }

    .teachers-column {
        display: contents;
    }

    .teacher-card-content h3 {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid-item {
        height: 250px;
    }

    .studios {
        padding: 60px 24px;
    }

    .stat-number {
        font-size: 60px;
    }

    .stat-label {
        font-size: 32px;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .partners-container {
        gap: 24px 32px;
    }

    .partner-logo {
        max-height: 28px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .gallery-content {
        padding-bottom: 60px;
    }

    .gallery-button {
        align-self: center;
        margin-top: 15px;
    }

    .btn-primary-white {
        font-size: 16px;
        padding: 6px 20px 10px;
    }

    .about-content,
    .gallery-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-content h2,
    .section-header h2,
    .gallery-content h2,
    .professional-content h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .age-card,
    .professional-training {
        padding: 40px 20px;
    }

    .awards-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .discipline-content h3,
    .age-card h3 {
        font-size: 28px;
    }

    .teacher-card-content h3 {
        font-size: 28px;
    }

    .teacher-card-content p {
        font-size: 16px;
        line-height: 26px;
    }

    /* Full-width menu on very small screens */
    .nav-menu-wrapper {
        width: 100%;
        max-width: 280px;
        padding: 60px 24px 24px;
    }

    .main-navigation ul li a,
    .main-navigation #primary-menu li a {
        font-size: 16px;
    }

    .mobile-language-switcher {
        font-size: 16px;
        padding: 20px 0 12px;
    }

    .hamburger-line {
        width: 24px;
    }

    .header-actions .social-links {
        gap: 12px;
    }

    .header-actions .social-links a {
        width: 18px;
        height: 18px;
    }
}

/* Floating Appointment Button */
.floating-appointment {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.floating-appointment-link {
    display: flex;
    align-items: center;
    background-color: #1a0a2e;
    color: white;
    text-decoration: none;
    padding: 8px 19px;
    border-radius: 50px 0 0 50px;
    position: relative;
    transition: transform 0.8s ease;
    white-space: nowrap;
    transform: translateX(calc(100% - 50px));
}

.floating-appointment-link .floating-icon {
    width: 17px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.floating-appointment-link .floating-text {
    font-size: 16px;
    margin-left: 16px;
    color: #fff;
    font-family: var(--font-primary);
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .floating-appointment-link.whatsapp-link {
        display: none;
    }

    .floating-appointment-link:hover {
        transform: translateX(0);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .floating-appointment {
        right: 0;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .floating-appointment-link {
        border-radius: 50px 0 0 50px;
        padding: 14px 18px;
        min-width: auto;
        transform: translateX(0);
    }

    .floating-appointment-link:not(.whatsapp-link) {
        display: none;
    }

    .floating-appointment-link .floating-text {
        display: none;
    }

    .floating-appointment-link.whatsapp-link {
        display: flex;
    }

    .floating-appointment-link .floating-icon {
        width: 22px;
        height: 22px;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
