@font-face {
    font-family: 'Agdasima';
    src: url('../fonts/Agdasima-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6, .footer-logo {
    font-family: 'Agdasima', sans-serif;
}

/* Material Design Base Variables */
:root {
    --primary-color: #0F4C81;
    --primary-dark: #0B1F3B;
    --primary-light: #2F86C7;
    --accent-color: #CAA127;
    --accent-dark: #B8972C;
    
    --bg-color: #F3EFE6;
    --surface-color: #FFFFFF;
    
    --text-primary: #0B1F3B; 
    --text-secondary: rgba(11, 31, 59, 0.7);
    --text-on-primary: #FFFFFF;
    --text-on-accent: #0B1F3B;
    
    --shadow-1: 0 2px 1px -1px rgba(11, 31, 59, .1), 0 1px 1px 0 rgba(11, 31, 59, .07), 0 1px 3px 0 rgba(11, 31, 59, .06);
    --shadow-2: 0 3px 1px -2px rgba(11, 31, 59, .1), 0 2px 2px 0 rgba(11, 31, 59, .07), 0 1px 5px 0 rgba(11, 31, 59, .06);
    --shadow-3: 0 3px 5px -1px rgba(11, 31, 59, .1), 0 6px 10px 0 rgba(11, 31, 59, .07), 0 1px 18px 0 rgba(11, 31, 59, .06);
    
    --font-family: 'Roboto', sans-serif;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: rgba(11, 31, 59, 0.04);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.125rem;
    font-weight: 400;
    margin-bottom: 48px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .grid-2-form {
        grid-template-columns: 1fr;
    }
}

/* App Bar */
.app-bar {
    background-color: var(--bg-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.15px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-weight: 300;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: var(--surface-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-2);
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(11, 31, 59, 0.1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-btn {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 44px; /* Improved touch target size */
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-family: var(--font-family);
}

.btn-large {
    height: 54px;
    padding: 0 24px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-2);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-1);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    box-shadow: var(--shadow-2);
}

.btn-text {
    background-color: var(--primary-color);
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.3s !important;
    color: var(--text-on-primary);
}

.btn-text:hover {
    background-color: var(--primary-dark) !important;
    opacity: 1 !important;
}

/* Hero */
.hero {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Decorazione */
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -50px;
    width: 400px;
    height: 400px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    width: 100%;
}

.hero-text-actions {
    flex: 1 1 300px;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-on-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.hero-title span {
    font-weight: 500;
    color: var(--accent-color);
}

.hero-logo {
    max-width: 100%;
    height: auto;
    width: 350px; /* Adjust based on preferred size, keeping it responsive */
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero-split {
        gap: 32px;
        flex-direction: column;
        align-items: center;
    }
    .hero-text-actions {
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-text-actions {
        text-align: center;
        flex: 1 1 200px;
    }
}

/* Cards */
.card {
    background-color: var(--surface-color);
    border-radius: 4px;
    padding: 24px;
    box-shadow: var(--shadow-1);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-2);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon i {
    font-size: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Info List */
.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.info-list i {
    color: var(--primary-color);
    font-size: 32px;
    margin-right: 24px;
    margin-top: 4px;
}

.info-list strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.info-list span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Prizes */
.prize-card {
    margin-bottom: 24px;
    border-left: 6px solid var(--accent-color);
}
.secondary-prize {
    border-left-color: var(--primary-light);
}

.prize-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.prize-icon {
    font-size: 32px;
    color: var(--accent-dark);
    margin-right: 16px;
}
.secondary-prize .prize-icon {
    color: var(--primary-color);
}

/* Audio */
.audio-list-container {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    flex-wrap: nowrap;
    gap: 24px;
}

.audio-content-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-grow: 1;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 320px;
}

.audio-icon {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.audio-item .card-title {
    margin-bottom: 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.audio-player-container {
    flex-grow: 1;
    min-width: 250px;
}

.custom-audio-player {
    width: 100%;
    height: 36px;
    outline: none;
}

.btn-download {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .audio-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .audio-item {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    .audio-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 16px;
    }
    .audio-info {
        flex: 1 auto;
    }
    .audio-player-container {
        min-width: 100%;
    }
    .btn-download {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(11, 31, 59, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    color: var(--text-primary);
    outline: none;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: #FFFFFF;
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 500;
}

.footer-logo span {
    font-weight: 300;
    color: var(--accent-color);
}

.footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.footer-text {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-contact {
    display: flex;
    gap: 8px;
    align-items: center;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    font-size: 20px;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .footer-text {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}