:root{
    --danger-primary: #C20330;
    --danger-primary-light: #7a0404;    
    --primary-color: #0067A5;
    --primary-color-dark: #004a73;
}
/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #333;
    background: #fff;
}

/* Smooth scroll: handled by JS with easeInOutCubic; no native CSS smooth */

/* Flash highlight on scroll-to target */
.scroll-flash {
    animation: scrollFlash 1.6s ease;
}

@keyframes scrollFlash {
    0%   { box-shadow: 0 0 0 0 rgba(0, 103, 165, 0); }
    35%  { box-shadow: 0 0 0 10px rgba(0, 103, 165, 0.22); }
    100% { box-shadow: 0 0 0 0 rgba(0, 103, 165, 0); }
}

/* === Header === */
.main-header {
    background: #1a1f2e;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 80px;
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.main-nav > ul > li > a:hover::after {
    transform: scaleX(1);
}

.main-nav a:hover {
    color: #fff;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 2px;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #232a3b;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.dropdown-menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover::after {
    transform: scaleX(1);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-download {
    --btn-hover-bg: var(--danger-primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--danger-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border: 2px solid var(--danger-primary);
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-download:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn-download .arrow {
    font-size: 10px;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-switcher a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher img {
    display: block;
    border-radius: 2px;
}

.lang-switcher .lang-separator {
    color: #555;
    font-size: 14px;
    user-select: none;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}
.user-icon__name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-icon__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 1000;
}
.user-icon--menu.is-open .user-icon__dropdown {
    display: block;
}
.user-icon__dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #1a2740;
    text-decoration: none;
    white-space: nowrap;
}
.user-icon__dropdown li a:hover {
    background: #f0f4fa;
    color: #c0392b;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* === Main content === */
.content {
    width: 100%;
    padding: 0 10%;
}

.content h1 {
    font-size: 32px;
    color: #1a1f2e;
    margin-bottom: 16px;
}

/* === Hero Image (full width background strip) === */
.hero-image {
    width: 100%;
    height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === Hero Section === */
.hero {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 31, 46, 0.75) 0%, rgba(26, 31, 46, 0.3) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

.btn-hero {
    --btn-hover-bg: rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 28px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: border-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.btn-hero .arrow {
    font-size: 10px;
}

/* === Bridge Section === */
.bridge-section {
    background: #fff;
    padding: 80px 60px;
}

/* ---- Pagine "grazie per il download" (Frascati/Oslo) ---- */
.thankyou-body {
    background: #fff;
    padding: 80px 60px;
    max-width: 900px;
}
.thankyou-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 24px;
}
.thankyou-body p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}
.thankyou-body__link {
    text-align: right;
    margin-top: 40px;
}

.bridge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.bridge-left h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2a7ab5;
    line-height: 1.35;
}

.bridge-right p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.bridge-right strong {
    color: #333;
}

.btn-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.btn-link:hover::after {
    transform: scaleX(1);
}

.btn-link:hover {
    color: var(--primary-color-dark);
}

/* === Showcase Section === */
.showcase-section {
    background: linear-gradient(to bottom, #e5e5e5, #fff 70%);
    padding: 60px 80px 80px;
}

.showcase-image {
    margin-bottom: 60px;
}

.showcase-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.showcase-left p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.showcase-left strong {
    color: #333;
}

.showcase-right h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 24px;
}

/* === Garantiamo Section === */
.garant-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.garant-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 31, 46, 0.7);
}

.garant-content {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    max-width: 600px;
}

.garant-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 32px;
}

.garant-light {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.garant-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* === Cert Crediti Section === */
.cert-crediti-section {
    background: #f5f5f5;
    padding: 80px 60px;
}

.cert-crediti-content {
    max-width: 800px;
    margin: 0 auto;
}

.cert-crediti-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
    margin-bottom: 24px;
}

.cert-crediti-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.cert-crediti-content strong {
    color: #222;
}

.cert-crediti-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

/* === Cert Benefici Section === */
.cert-benefici-section {
    background: #f5f5f5;
    padding: 80px 60px;
}

.cert-benefici-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 40px;
}

.cert-benefici-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cert-beneficio {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
}

.cert-beneficio p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.cert-beneficio strong {
    color: #222;
}

/* === Focus Section === */
.focus-section {
    background: #fff;
    padding: 80px 60px;
}

.focus-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    max-width: 500px;
    margin-bottom: 60px;
}

.focus-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.focus-row:last-child {
    margin-bottom: 0;
}

.focus-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.focus-text strong {
    color: #333;
}

.focus-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* === Master Intro Section === */
.master-intro-section {
    background: #fff;
    padding: 80px 60px;
    text-align: center;
}

.master-intro-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    max-width: 800px;
    margin: 0 auto 32px;
}

.master-intro-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.master-intro-section strong {
    color: #333;
}

/* === Master Card Section === */
.master-card-section {
    background: #fff;
    padding: 0 60px 60px;
}

.master-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.master-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    border-radius: 12px;
}

.master-card-content {
    position: relative;
    z-index: 1;
    padding: 60px;
    max-width: 550px;
}

.master-card-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.master-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #e8791d;
    line-height: 1.3;
    margin-bottom: 16px;
}

.master-card-dept {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

.btn-brochure {
    --btn-hover-bg: #e8791d;
    display: inline-block;
    background: #fff;
    color: #1a1f2e;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 40px;
    border: 2px solid #fff;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-brochure:hover {
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* === Master Description Section === */
.master-desc-section {
    background: #fff;
    padding: 60px 60px 80px;
    text-align: center;
}

.master-desc-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.master-desc-section strong {
    color: #333;
}

/* === FAQ Section === */
.faq-section {
    background: transparent;
    padding: 10px;
    padding-left:60px;
    padding-right: 60px;
}

.faq-title-toggle {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    padding: 20px;
}

.faq-title-toggle h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin: 0;
}

.faq-title-toggle > .faq-icon {
    font-size: 30px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-section.open > .faq-title-toggle > .faq-icon {
    transform: rotate(45deg);
}

.faq-list {
   background-color: #f5f5f5;
   padding: 20px;
    margin-left: auto;
    margin-right: auto;
    max-height: 0px;
    margin-top: 40px;
    visibility: collapse;
    overflow: hidden;
    transition: max-height 0.5s ease, margin 0.5s ease, visibility 0.5s ease;
    margin-top: 0;
}

.faq-section.open .faq-list {
    max-height: 3000px;
    margin-top: -20px;
    visibility: visible;
}

.faq-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0 24px;
    margin-bottom: 16px;
}

.faq-question {
    width: 100%;
    display: block;
    padding: 20px 0 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-align: left;
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-answer {
    padding: 0 0 20px;
}

.faq-answer p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.faq-answer strong {
    color: #222;
}

/* === Cert Form Section === */
.cert-form-section {
    background: #fff;
    padding: 80px 60px;
}

.cert-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cert-form-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
    margin-bottom: 24px;
}

.cert-form-info p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

.cert-form-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-top: 24px;
    margin-bottom: 12px;
}

.cert-form-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.cert-form-info a:hover {
    text-decoration: underline;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.cert-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-form-wrap input[type="text"],
.cert-form-wrap input[type="email"],
.cert-form-wrap input[type="tel"],
.cert-form-wrap select {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #f9f9f9;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cert-form-wrap textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f9f9f9;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cert-form-wrap input:focus,
.cert-form-wrap textarea:focus,
.cert-form-wrap select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cert-form-wrap textarea {
    resize: vertical;
    min-height: 100px;
}

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

.form-source-label {
    font-size: 14px;
    color: #555;
    margin: 8px 0 0;
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    cursor: pointer;
}

.form-privacy input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-privacy a {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-submit {
    --btn-hover-bg: var(--primary-color);
    width: 100%;
    padding: 16px;
    background: var(--primary-color-dark);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color-dark);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* ---- Toast alert (riutilizzabile in tutto il sito) ---- */
.ring-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
}

.ring-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 44px 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ring-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.ring-toast--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ring-toast--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ring-toast--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ring-toast__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
    padding: 0;
}

.ring-toast__close:hover {
    opacity: 1;
}

/* ---- Floating label (riutilizzabile in tutto il sito) ---- */
.field-float {
    position: relative;
    display: block;
    --field-float-bg: #fff;
}

.field-float > input,
.field-float > textarea {
    width: 100%;
    box-sizing: border-box;
}

.field-float > span {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 6px;
    font-size: 14px;
    color: #999;
    background: transparent;
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

/* Per textarea la label parte dall'alto, non centrata verticalmente */
.field-float--textarea > span {
    top: 16px;
    transform: none;
}

.field-float > input:focus + span,
.field-float > input:not(:placeholder-shown) + span,
.field-float > textarea:focus + span,
.field-float > textarea:not(:placeholder-shown) + span {
    top: 0;
    font-size: 11px;
    color: #fff;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.field-float--textarea > textarea:focus + span,
.field-float--textarea > textarea:not(:placeholder-shown) + span {
    top: 0;
    transform: translateY(-50%);
}

/* Override bg per contenitori con sfondo diverso dal bianco */
.area-download .field-float {
    --field-float-bg: #ededed;
}

input.field-error,
textarea.field-error,
select.field-error {
    border-color: var(--danger-primary-light) !important;
    background: rgba(194, 3, 48, 0.06) !important;
}

.form-privacy.field-error,
.download-form__privacy.field-error {
    color: var(--danger-primary-light);
}

.form-privacy.field-error input[type="checkbox"],
.download-form__privacy.field-error input[type="checkbox"] {
    outline: 2px solid var(--danger-primary-light);
    outline-offset: 2px;
}

/* === Footer === */
.main-footer {
    background: #1a1f2e;
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    gap: 40px;
    padding: 80px 80px 50px;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-about .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 24px;
}

.footer-about p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col p {
    margin-bottom: 16px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.footer-col a:hover::after {
    transform: scaleX(1);
}

.footer-col a:hover {
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}

.footer-col ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.footer-col ul a:hover::after {
    transform: scaleX(1);
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-social {
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.footer-bottom a:hover::after {
    transform: scaleX(1);
}

.footer-bottom a:hover {
    color: #fff;
}

/* Active language */
.lang-switcher a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.lang-switcher a:not(.active) {
    opacity: 0.6;
}

/* === Responsive === */
@media (max-width: 960px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1a1f2e;
        padding: 16px 24px;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px 24px;
    }

    .footer-bottom {
        padding: 16px 24px;
    }

    .hero {
        min-height: 360px;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .bridge-section {
        padding: 40px 24px;
    }

    .bridge-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .showcase-section {
        padding: 40px 24px 48px;
    }

    .showcase-image img {
        height: 240px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .garant-section {
        min-height: 400px;
    }

    .garant-content {
        padding: 40px 24px;
    }

    .garant-content h2 {
        font-size: 22px;
    }

    .focus-section {
        padding: 40px 24px;
    }

    .focus-row,
    .focus-row-reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr;
    }

    .focus-image img {
        height: 220px;
    }

    .master-card-section {
        padding: 0 24px 40px;
    }

    .master-card {
        min-height: 320px;
    }

    .master-card-content {
        padding: 32px;
    }

    .master-card-content h2 {
        font-size: 28px;
    }

    .master-desc-section {
        padding: 40px 24px 48px;
    }

    .download-section {
        padding: 40px 24px 48px;
    }

    .download-title {
        font-size: 22px !important;
    }

    .download-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .download-card {
        min-height: 220px !important;
        padding: 32px !important;
    }

    .download-card h2 {
        font-size: 24px !important;
    }

    .convegno-banner__inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 40px 24px !important;
    }

    .convegno-banner__title {
        font-size: 24px !important;
    }
}

/* === Download Page === */
.download-section {
    background: #fff;
    padding: 64px 60px 48px;
}

.download-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 40px;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.download-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    padding: 44px 44px 40px;
    border-radius: 6px;
    color: #fff;
    overflow: hidden;
}

.download-card--blue {
    background: var(--primary-color);
}

.download-card--red {
    background: var(--danger-primary);
}

.download-card h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 32px;
}

.btn-download-card {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 14px 34px;
    border: 3px solid #fff;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transform-origin: left center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease;
}

.btn-download-card .arrow {
    font-size: 10px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.35s ease;
}

.btn-download-card:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scaleX(1.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.btn-download-card:hover .arrow,
.btn-download-card:hover span {
    transform: scaleX(0.8333);
}

.btn-download-card:hover .arrow {
    transform: scaleX(0.8333) translateX(6px);
}

.btn-download-card:active {
    transform: scaleX(1.18);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.download-card--red .btn-download-card {
    background: var(--danger-primary);
}

.download-card--red .btn-download-card:hover {
    background: #fff;
    color: var(--danger-primary);
}

.download-notes {
    max-width: 100%;
}

.download-notes p {
    font-size: 13px;
    color: #333;
    line-height: 1.75;
    margin-bottom: 18px;
}

.download-note-link {
    color: var(--primary-color);
}

.download-note-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.download-note-link a:hover {
    color: var(--primary-color-dark);
}

/* === Sezione Contatti === */
.contatti-section {
    background: #fff;
    padding: 80px 60px;
}

.contatti-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contatti-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
    margin: 0 0 40px;
}

.contatti-info__block {
    margin-bottom: 28px;
}

.contatti-info__label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 4px;
}

.contatti-info__value {
    font-size: 16px;
    color: #444;
    text-decoration: none;
    display: block;
    line-height: 1.6;
}

a.contatti-info__value:hover {
    color: var(--primary-color);
}

.contatti-form-col {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 44px;
    background: #fafafa;
}

.contatti-form-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 28px;
}

.contatti-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contatti-form .field-float > input,
.contatti-form .field-float > textarea {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    color: #222;
    transition: border-color 0.2s;
}

.contatti-form .field-float > input:focus,
.contatti-form .field-float > textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contatti-form .field-float {
    --field-float-bg: #fff;
}

/* Media: tablet / mobile */
@media (max-width: 900px) {
    .contatti-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0;
    }

    .contatti-section {
        padding: 60px 24px;
    }

    .contatti-form-col {
        padding: 28px 20px;
    }
}

/* === Convegno Banner === */
.convegno-banner {
    background: var(--danger-primary);
    color: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.convegno-banner__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 60px;
}

.convegno-banner__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}

.convegno-banner__cta p {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 20px;
}

.btn-convegno {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s, opacity 0.2s;
}

.btn-convegno:hover {
    border-bottom-color: #fff;
    opacity: 0.9;
}

.btn-convegno .arrow {
    font-size: 10px;
    line-height: 1;
}

/* === Manual Page (Frascati / Oslo) === */
.manual-hero {
    background: #fff;
    padding: 60px 60px 40px;
}

.manual-hero__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

.manual-cover {
    border: 1px solid #e5e5e5;
    padding: 14px;
    background: #fff;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.manual-cover img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.manual-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 0 0 24px;
}

.manual-lead {
    font-size: 18px;
    color: #444;
    line-height: 1.75;
    margin: 0 0 28px;
}

.manual-lead strong {
    color: #222;
}

.manual-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 14px;
}

.manual-caption {
    font-size: 13px;
    letter-spacing: 1px;
    color: #555;
    margin: 0 0 32px;
}

.manual-list {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin: 0 0 28px;
    padding-left: 20px;
}

.manual-list li {
    margin-bottom: 6px;
}

.manual-list strong {
    color: #222;
}

.manual-source {
    font-size: 13px;
    color: #777;
    margin: 0 0 24px;
}

.manual-source a {
    color: var(--primary-color);
    text-decoration: underline;
}

.manual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-share {
    margin-left: auto;
}

/* Share dropdown */
.share-wrapper {
    position: relative;
    display: inline-block;
}

.share-toggle {
    font: inherit;
}

.share-wrapper.open .share-toggle .arrow {
    transform: rotate(180deg);
}

.share-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding: 8px;
    z-index: 50;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-menu[hidden] {
    display: none;
}

.share-wrapper.open .share-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.share-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 28px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1f2e;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-item:hover {
    background: #f3f5f8;
    transform: translateX(2px);
}

.share-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.share-item--whatsapp .share-icon { background: #25D366; }
.share-item--linkedin .share-icon { background: #0A66C2; }
.share-item--twitter  .share-icon { background: #000; }
.share-item--telegram .share-icon { background: #229ED9; }
.share-item--email    .share-icon { background: #555; }

/* Dark pill button */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease,
                border-color 0.3s ease, transform 0.3s ease,
                box-shadow 0.3s ease;
}

.btn-pill .arrow {
    font-size: 10px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-pill--dark {
    --btn-hover-bg: var(--primary-color);
    background: #162238;
    color: #fff;
    border-color: #162238;
}

.btn-pill--dark:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.btn-pill--dark:hover .arrow {
    transform: translateX(5px);
}

.btn-pill--light {
    --btn-hover-bg: #d6d6d6;
    background: #e9e9e9;
    color: #1a1f2e;
    border-color: #e9e9e9;
}

.btn-pill--light:hover {
}

.btn-pill--light:hover .arrow {
    transform: translateX(5px);
}

.btn-pill--block {
    width: 100%;
}

/* Manual details */
.manual-details {
    background: #fff;
    padding: 20px 60px 60px;
}

.manual-details__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

.manual-meta {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
    font-size: 15px;
    color: #444;
}

.manual-meta dl {
    margin: 0 0 24px;
    line-height: 1.6;
}

.manual-meta dt {
    font-weight: 700;
    color: #222;
    margin-top: 10px;
}

.manual-meta dt:first-child {
    margin-top: 0;
}

.manual-meta dd {
    margin: 0;
    color: #555;
}

.manual-meta__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.manual-body {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
}

.manual-body p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 20px;
}

.manual-body p:last-child {
    margin-bottom: 0;
}

.manual-body strong {
    color: #222;
}

.manual-body__note a {
    color: var(--primary-color);
    text-decoration: underline;
}

.manual-body__errata {
    background: #f8f8f8;
    padding: 16px 20px;
    border-radius: 6px;
}

.manual-legal {
    max-width: 100%;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.manual-legal p {
    font-size: 13px;
    color: #666;
    line-height: 1.75;
    margin: 0 0 16px;
}

.manual-legal strong {
    color: #333;
}

.manual-legal a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cofanetto */
.cofanetto-section {
    display: none; /* nascosta temporaneamente */
    background: #fff;
    padding: 40px 60px 60px;
}

.cofanetto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.cofanetto-left h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin: 0;
}

.cofanetto-right p {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
    margin: 0 0 20px;
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-link-arrow .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.btn-link-arrow:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color-dark);
}

.btn-link-arrow:hover .arrow {
    transform: translateX(4px);
}

.btn-link-arrow--small {
    font-size: 12px;
    margin-top: 16px;
}

/* Area Download */
.area-download {
    background: #ededed;
    padding: 60px 60px 80px;
}

.area-download h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 40px;
}

.area-download__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.area-download__logged {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 0;
}
.area-download__logged-msg {
    font-size: 16px;
    color: #333;
    margin: 0;
}
.btn-pill--download {
    font-size: 15px;
    padding: 14px 28px;
}


.area-download__col h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0 0 24px;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.download-form[hidden] {
    display: none;
}

.download-form input[type="text"],
.download-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.download-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.download-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin: 4px 0 8px;
    cursor: pointer;
}

.download-form__privacy input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.download-form__privacy a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Banner informativo (es. "Token inviato, hai 10 minuti...") */
.form-info-banner {
    margin: 0 0 6px;
    padding: 14px 16px;
    background: #eaf4ff;
    border: 1px solid #c5ddf5;
    border-radius: 8px;
    color: #103a63;
    font-size: 13px;
    line-height: 1.5;
}
.form-info-banner strong {
    color: #0b2a48;
}

/* Manual CTA */
.manual-cta {
    background: #fff;
    padding: 60px 60px 80px;
    text-align: center;
}

.manual-cta__divider {
    width: 100%;
    max-width: 640px;
    height: 2px;
    background: #222;
    margin: 0 auto 40px;
}

.manual-cta h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.45;
    margin: 0 0 24px;
}

/* Artist acknowledgment box (Oslo) */
.manual-artist {
    margin-top: 24px;
    padding: 20px 24px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.manual-artist p {
    margin: 0 0 10px;
}

.manual-artist p:last-of-type {
    margin-bottom: 16px;
}

@media (max-width: 960px) {
    .manual-hero,
    .manual-details,
    .cofanetto-section,
    .area-download,
    .manual-cta {
        padding-left: 24px;
        padding-right: 24px;
    }

    .manual-hero__grid,
    .manual-details__grid,
    .cofanetto-grid,
    .area-download__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .manual-title {
        font-size: 26px;
    }

    .btn-share {
        margin-left: 0;
    }
}

/* ---- Shared wipe hover effect (tutti i bottoni del sito) ---- */
.btn-pill,
.btn-submit,
.btn-download,
.btn-hero,
.btn-brochure {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-pill::before,
.btn-submit::before,
.btn-download::before,
.btn-hero::before,
.btn-brochure::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--btn-hover-bg, transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s ease;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

.btn-pill:hover::before,
.btn-submit:hover::before,
.btn-download:hover::before,
.btn-hero:hover::before,
.btn-brochure:hover::before {
    transform: scaleX(1);
}

/* === Generic Modal === */
.ring-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ring-modal[hidden] {
    display: none;
}

.ring-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.ring-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 10px;
    width: 80vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: modalIn 0.22s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

.ring-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a2740;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 24px;
    flex-shrink: 0;
}
.ring-modal__header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ring-modal__header-sub {
    font-size: 11px;
    font-weight: 400;
    color: #b0bfd4;
    line-height: 1.3;
}

.ring-modal__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.ring-modal__close:hover {
    opacity: 1;
}

.ring-modal__body {
    padding: 28px 28px 24px;
    flex: 1;
    overflow-y: auto;
}

.ring-modal__book-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 14px;
}

.ring-modal__body > p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 14px;
}

.ring-modal__errata-label {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 6px 0 12px !important;
}

.ring-modal__accordion {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ring-modal__acc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fa;
    border: none;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.ring-modal__acc-toggle:hover {
    background: #eaf0f8;
}

.ring-modal__acc-arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.ring-modal__acc-toggle[aria-expanded="true"] .ring-modal__acc-arrow {
    transform: rotate(90deg);
}

.ring-modal__acc-body {
    padding: 14px 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    border-top: 1px solid #ddd;
}

.ring-modal__acc-body[hidden] {
    display: none;
}

.ring-modal__acc-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ring-modal__acc-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.ring-modal__acc-link:hover {
    color: var(--primary-color-dark);
}

.ring-modal__footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ring-modal__footer-row > p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0;
    max-width: 200px;
}

/* Citation modal */
.ring-modal__body--citation {
    padding-bottom: 32px;
}

.ring-modal__cite-label {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px !important;
}

.ring-modal__cite-copy {
    font-size: 14px;
    color: #333;
    line-height: 1.75;
    margin: 0 0 20px !important;
}

.ring-modal__cite-edition {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 !important;
}

/* === Homepage Hero (split layout) === */
.home-hero {
    background: #1a1f2e;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.home-hero__content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero__content h1 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.home-hero__sub {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    line-height: 1.7;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.home-hero__image {
    overflow: hidden;
}

.home-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Homepage Mission Section === */
.home-mission {
    background: var(--primary-color);
    color: #fff;
}

.home-mission__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 60px;
}

.home-mission__left h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}

.home-mission__right p {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 24px;
}

.home-mission__links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* === Homepage Cards Section === */
.home-cards-section {
    background: #f0f0f0;
    padding: 64px 60px;
}

.home-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.home-cards-grid .download-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.home-cards-grid .download-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0;
}

.home-cards-grid .download-card strong {
    color: #fff;
}

.home-cards-grid .download-card .btn-hero {
    align-self: flex-start;
}

/* === Responsive Homepage === */
@media (max-width: 960px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero__image {
        height: 260px;
    }

    .home-hero__content {
        padding: 48px 24px 40px;
    }

    .home-hero__content h1 {
        font-size: 28px;
    }

    .home-mission__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px;
    }

    .home-mission__right p {
        font-size: 18px;
    }

    .home-mission__links {
        gap: 24px;
    }

    .home-cards-section {
        padding: 48px 24px;
    }

    .home-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* === Preview Modal === */
.ring-modal--preview .ring-modal__box--preview {
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Controls bar: paginator + zoom — sticky below header */
.ring-preview__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #1a2740;
    flex-shrink: 0;
}

/* Scrollable image area */
.ring-modal__preview-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: auto;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ring-modal__preview-img {
    display: block;
    width: 100%;
    height: auto;
    transition: width 0.2s ease;
    transform-origin: top center;
}

/* Paginator (inside controls) */
.ring-preview__paginator {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1;
}

.ring-preview__nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
}

.ring-preview__nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.ring-preview__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.ring-preview__pages {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.ring-preview__page {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ccc;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ring-preview__page:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.ring-preview__page.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Zoom control */
.ring-preview__zoom {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ring-preview__zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.ring-preview__zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.ring-preview__zoom-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.ring-preview__zoom-val {
    font-size: 12px;
    color: #ccc;
    min-width: 36px;
    text-align: right;
}

.ring-preview__nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
}

.ring-preview__nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.ring-preview__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.ring-preview__pages {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.ring-preview__page {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ccc;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ring-preview__page:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.ring-preview__page.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* === Manuali OCSE page === */
.manuali-favoriamo {
    background: #fff;
    padding: 80px 60px;
}

.manuali-favoriamo .bridge-left p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.manuali-favoriamo .bridge-right h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2a7ab5;
    line-height: 1.35;
    margin: 0;
}

.manuali-team {
    position: relative;
    background-image: url('../images/ring-lavori-traduzione.webp');
    background-size: cover;
    background-position: center;
    padding: 80px 60px;
    color: #fff;
}

.manuali-team::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 31, 46, 0.78);
}

.manuali-team__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.manuali-team h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 28px;
}

.manuali-team p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
}

.manuali-team p strong {
    color: #fff;
}

.manuali-team a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

.btn-link-arrow--white {
    color: #fff;
    border-bottom-color: transparent;
    margin-top: 12px;
}

.btn-link-arrow--white:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.home-cards-section__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin: 0 0 40px;
}

.manuali-cards-footer {
    margin-top: 36px;
}

.manuali-cards-footer p {
    font-size: 13px;
    color: #555;
    line-height: 1.75;
    margin: 0 0 14px;
}

.manuali-cards-footer strong {
    color: #333;
}

@media (max-width: 960px) {
    .manuali-favoriamo {
        padding: 48px 24px;
    }

    .manuali-team {
        padding: 56px 24px;
    }

    .home-cards-section__title {
        font-size: 20px;
    }
}

/* === Convegno page === */
.convegno-dettagli {
    background: #f5f5f5;
    padding: 60px 60px;
}

.convegno-dettagli__card {
    background: #fff;
    border-radius: 10px;
    padding: 48px 56px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.convegno-dettagli__card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2740;
    margin: 0 0 28px;
}

.convegno-dettagli__card p {
    font-size: 18px;
    color: #444;
    line-height: 1.8;
    margin: 0 0 18px;
}

.convegno-dettagli__card p:last-child {
    margin-bottom: 0;
}

.convegno-dettagli__card strong {
    color: #222;
}

@media (max-width: 960px) {
    .convegno-dettagli {
        padding: 40px 24px;
    }

    .convegno-dettagli__card {
        padding: 32px 24px;
    }
}

.convegno-link-bold {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #1a2740;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin: 12px 0 20px;
}

.convegno-link-bold:hover {
    color: var(--primary-color);
}

.convegno-sponsor {
    background: #fff;
    padding: 56px 60px;
}

.convegno-sponsor h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2740;
    margin: 0 0 36px;
    text-align: center;
}

.convegno-sponsor__logos {
    display: block;
}

.convegno-sponsor__logos img {
    max-width: 680px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.55;
    filter: grayscale(40%);
}

.convegno-materiale {
    background: #f5f5f5;
    padding: 48px 60px;
}

.convegno-materiale__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.convegno-materiale__inner p {
    font-size: 20px;
    font-weight: 700;
    color: #1a2740;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .convegno-sponsor {
        padding: 40px 24px;
    }

    .convegno-sponsor__logos {
        gap: 24px;
    }

    .convegno-materiale {
        padding: 40px 24px;
    }

    .convegno-materiale__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}