:root {
    --eu-blue: #003399;
    --eu-yellow: #FFCC00;
    --text-dark: #222222;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-section: #f4f7f6;
    --eu-blue-light: #ffffff;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    padding-top: 56px; /* Offset per navbar fissa */
}


/* cinzel-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/cinzel-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-500 - latin */
@font-face {
    font-display: swap;
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/cinzel-v26-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/cinzel-v26-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/cinzel-v26-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/lato-v25-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/lato-v25-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-700italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/lato-v25-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}





/* Tipografia Formale */
h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', serif;
    /*text-transform: uppercase;*/
    letter-spacing: 0.05em;
    color: var(--eu-blue);
}

.title-promoter {
    font-size: 2.5rem;
}

/* Navbar */
.navbar {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: larger;
    font-weight: 700;
    color: var(--eu-blue) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link,
.back-to-top-link {
    color: var(--eu-blue) !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 1rem;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--eu-yellow);
    transition: width .3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
header.masthead {
    position: relative;
    background-color: var(--eu-blue);
    /*background: linear-gradient(135deg, var(--eu-blue) 0%, #002266 100%);*/
    background: linear-gradient(135deg, var(--eu-blue) 0%, #003388  100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

/* Simulazione stelle cerchio europeo in background */
.stars-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: radial-gradient(var(--eu-yellow) 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.masthead-content {
    position: relative;
    z-index: 1;
}

.masthead-title {
    /* border: 1px solid var(--eu-yellow); */
    border-radius: 100px;
    background-color: white;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.first {
    color: #d40000;
    font-size: larger;
}

.masthead h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--eu-blue);
    margin: 2.5rem;
    border-bottom: 3px solid var(--eu-yellow);
    display: inline-block;
    padding-bottom: 10px;
}

.masthead p.lead {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    text-align: justify;
}

.btn-eu {
    background-color: var(--eu-yellow);
    color: var(--eu-blue);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 40px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-eu:hover {
    background-color: #e6b800;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.logo-hero {
    max-width: 150px;
    margin: 1rem 2rem 1rem 1rem;
    /*filter: drop-shadow(2px 6px 10px rgba(255,204,0,0.9));*/
    filter: drop-shadow(0px 0px 11px rgba(255,255,255,0.8));
}

/* Sections */


section {
    padding: 100px 0;
    min-height: 100vh;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    display: block;
    width: 150px;
    height: 4px;
    background: var(--eu-yellow);
    margin: 15px auto 0;
}

.mappa-hero {
    margin: 1rem 0;
    border: 1px solid var(--eu-blue);
}

#promoter {
    background-color: var(--bg-section);
}

#manifesto ol {
    text-align: justify;
}

#manifesto ol.first-list { list-style: none; counter-reset: item; padding-left: 0; }
#manifesto ol.second-list { list-style: none; counter-reset: 4; padding-left: 0; }
#manifesto ol > li { counter-increment: item; margin: 1rem 0; position: relative; padding-left: 2rem; }
#manifesto ol > li::before {
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    content: counter(item) ")";
    position: absolute;
    left: 0;
    width: 1rem;
    text-align: right;
    color:  var(--eu-blue);
    /*background: #eef6ff;
    border-radius: 4px;
    padding: .2em .4em;*/
}


.contact-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-container .form-label {
    color: var(--eu-blue);
    margin-bottom: .3rem;
}

/* Modern Standard */
.contact-container input,
.contact-container textarea {
    border-color: #0d6efd;
}

.contact-container input::placeholder,
.contact-container textarea::placeholder{
    color: gray;
    opacity: 1; /* Ensures full opacity in Firefox */
    font-style: italic;
}

.policy-card {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background: var(--bg-light);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.policy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--eu-blue);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--eu-blue);
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--eu-blue);
    border-bottom: 2px solid var(--eu-yellow);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Call to Action */
#contatti {
    background-color: var(--eu-blue);
    color: var(--text-light);
}

#contatti h2 {
    color: var(--text-light);
}

#contatti .privacy {
    color: var(--text-dark);
    font-size: small;
}

.modal-header {
    padding-left: 2rem;
    padding-right: 2rem;
}
.modal-body {
    padding: 2rem;
}
.modal-body h6 {
    font-weight: 700;
    margin-bottom: 0;
    font-style: italic;
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--eu-yellow);
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .masthead h1 {
        font-size: 2.5rem;
    }
    .masthead p.lead {
        font-size: 1.2rem;
    }
    section {
        padding: 60px 0;
    }
}