/* ==========================================================================
   1. VARIABLES, ROOT & GLOBAL TYPOGRAPHY
   ========================================================================== */
:root {
	--color-white: rgba(255, 255, 255, 1);
	--color-dark-text: rgba(51, 51, 51, 1);
	--color-muted-text: rgba(119, 119, 119, 1);
	--color-error: rgba(192, 8, 31, 0.99);
	--hero-bg-overlay: rgba(0, 0, 0, 0.2);
	--primary-btn-bg: rgba(28, 70, 70, 0.95);
	--primary-btn-hover: rgba(47, 111, 107, 1);
	--primary-btn-border: rgba(168, 195, 193, 1);
	--shadow-black-soft: rgba(0, 0, 0, 0.3);
	--text-shadow-heavy: rgba(0, 0, 0, 0.9);
	--text-shadow-medium: rgba(0, 0, 0, 0.8);
	--text-shadow-light: rgba(0, 0, 0, 0.6);
	--search-bg: rgba(255, 255, 255, 0.95);
	--search-icon-color: rgba(47, 111, 107, 1);
}
html { scroll-behavior: smooth; }
p { font-size: 18px; line-height: 28px; }

/* ==========================================================================
   1.1. HEADER FIX & STICKY NAV
   ========================================================================== */
#main-nav-cont { position: sticky; top: 0; width: 100%; z-index: 999; box-sizing: border-box; }
body.sticky-active #main-nav-cont { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
body.hide-nav #main-nav-cont { transform: translateY(-100%); }

/* ==========================================================================
   2. SEZIONE HERO FULL PAGE (#hero-full-cont)
   ========================================================================== */
#hero-full-cont { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden; width: 100%; height: calc(100vh - 80px); min-height: 650px; margin: 0; padding: 40px 0 30px 0; z-index: 1; box-sizing: border-box; }
#hero-full-cont::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.75) 100%), url('/img/bk_home_2026.webp') center top / cover no-repeat; content: ""; transform-origin: center center; animation: zoomSfondo 20s ease-in-out infinite alternate; z-index: 1; }
#hero-full-cont::before { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; background: var(--hero-bg-overlay); content: ""; z-index: 2; }

/* ==========================================================================
   VARIANTE HERO CON VIDEO BACKGROUND (body.video-bkg)
   ========================================================================== */
body.video-bkg #hero-full-cont .hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; }
body.video-bkg #hero-full-cont::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.75) 100%); animation: none; z-index: 2; pointer-events: none; }
body.video-bkg #hero-full-cont::before { pointer-events: none; }


#hero-full { position: relative; display: block; width: 100%; max-width: 100%; margin: 0 auto; padding: 0; text-align: center; z-index: 3; }
.hero-content { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; margin: 0 auto; padding: 0; }
#hero-full h1 { position: relative; display: block; margin: 0 0 50px 0; padding: 0 20px; }
#hero-full h1 strong { position: relative; display: block; margin-bottom: 12px; font-weight: 700; font-size: 40px; line-height: 46px; text-decoration: none; color: var(--color-white); text-shadow: 2px 2px 8px var(--text-shadow-medium); }
#hero-full h1 em { position: relative; display: inline-block; padding: 6px 20px; font-weight: 400; font-size: 20px; line-height: 26px; font-style: normal; text-decoration: none; background: rgba(0, 0, 0, 0.45); color: var(--color-white); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 30px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); backdrop-filter: blur(4px); }
#hero-full a, #hero-full a:hover, #hero-full h1 strong, #hero-full h1 em, #hero-full .aree .area-cont, #hero-full .aree .area-cont .area h2 { text-decoration: none; border: none; border-bottom: none; box-shadow: none; }
@keyframes zoomSfondo { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

/* ==========================================================================
   2.1. BLOCCO 5 AREE FORMATIVE (.aree)
   ========================================================================== */
#hero-full .aree { position: relative; display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 14px; width: 100%; max-width: 1300px; margin: 0 auto 25px auto; padding: 0 15px; text-align: center; box-sizing: border-box; }
#hero-full .aree .area-cont { position: relative; display: block; flex: 1 1 0; width: auto; max-width: 240px; margin: 0; padding: 0 0 10px 0; text-decoration: none; border: none; box-shadow: none; cursor: pointer; box-sizing: border-box; }
#hero-full .aree .area-cont .action { position: absolute; top: -20px; right: 0; left: 0; display: block; width: 100%; font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; color: var(--color-white); text-shadow: 1px 1px 3px var(--text-shadow-heavy); opacity: 0; pointer-events: none; transition: all 0.3s ease; }
#hero-full .aree .area-cont .action p { position: relative; display: block; width: 100%; margin: 0 auto; padding: 0; text-decoration: none; }
#hero-full .aree .area-cont:hover .action { top: -25px; opacity: 1; }
#hero-full .aree .area-cont:hover .area { animation-name: scalaImmagine; animation-duration: 0.8s; animation-fill-mode: forwards; }
#hero-full .aree .area-cont .area { position: relative; display: block; overflow: hidden; width: 100%; max-width: 215px; height: auto; margin: 0 auto 20px; padding: 0; background: transparent; border: none; border-radius: 0; box-shadow: none; }
#hero-full .aree .area-cont .area img { display: block; width: 100%; height: auto; margin: 0; padding: 0; border: none; border-radius: 0; box-shadow: none; }
#hero-full .aree .area-cont .area h2 { position: absolute; top: auto; right: 0; bottom: 14px; left: 0; display: block; width: 100%; height: auto; margin: 0; padding: 0 6px; font-weight: 700; font-size: 15px; line-height: 17px; text-transform: uppercase; text-decoration: none; text-align: center; background: transparent; color: var(--color-white); text-shadow: 1px 1px 3px var(--text-shadow-light); border: none; border-bottom: none; box-shadow: none; pointer-events: none; z-index: 10; }
#hero-full .aree .area-cont p { position: relative; display: block; width: 100%; max-width: 215px; margin: 0 auto; padding: 0; font-weight: 400; font-size: 14px; line-height: 17px; text-decoration: none; color: var(--color-white); text-shadow: 1px 1px 4px var(--text-shadow-heavy); }
@keyframes scalaImmagine { 0% { transform: translateY(0); } 100% { transform: translateY(10px); } }

/* ==========================================================================
   2.2. HERO ACTIONS (.hero-actions)
   ========================================================================== */
.hero-actions { position: relative; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 15px; width: 100%; max-width: 750px; margin: 0; padding: 0; z-index: 10; }
#hero-full .hero-actions a.btn-richiedi-info { position: relative; display: inline-flex; justify-content: center; align-items: center; height: 42px; margin: 0; padding: 0 22px; font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none; white-space: nowrap; background: var(--primary-btn-bg); color: var(--color-white); border: 2px solid #ffffff; border-radius: 12px; cursor: pointer; box-shadow: 0 4px 10px var(--shadow-black-soft); transition: background 0.3s; box-sizing: border-box; }
#hero-full .hero-actions a.btn-richiedi-info:hover { background: var(--primary-btn-hover); border-color: #ffffff; }

/* ==========================================================================
   3. SEZIONE PRESENTAZIONE ECAMPUS & CERFAS (#presentazione-home)
   ========================================================================== */
#presentazione-home { position: relative; display: block; width: 100%; padding: 80px 20px; background: #fbfcfc; box-sizing: border-box; }
#presentazione-home .container-presentazione { position: relative; display: block; width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
#presentazione-home .intro-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; margin-bottom: 70px; }
#presentazione-home .sub-title { display: block; margin-bottom: 8px; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--search-icon-color); }
#presentazione-home h2 { margin: 0 0 16px 0; font-weight: 700; font-size: 30px; line-height: 38px; color: #1a202c; }
#presentazione-home p { margin: 0 0 16px 0; font-weight: 400; font-size: 18px; line-height: 28px; color: #4a5568; }
#presentazione-home p.lead-text { font-weight: 600; font-size: 18px; line-height: 28px; color: #2d3748; }
#presentazione-home .intro-badge-card { padding: 30px 25px; text-align: center; background: #ffffff; border: 1px solid #e2e8f0; border-top: 4px solid var(--search-icon-color); border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04); }
#presentazione-home .intro-badge-card .badge-icon { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; margin-bottom: 15px; background: rgba(28, 70, 70, 0.08); color: var(--search-icon-color); border-radius: 50%; }
#presentazione-home .intro-badge-card .badge-icon svg { width: 24px; height: 24px; }
#presentazione-home .intro-badge-card h3 { margin: 0 0 10px 0; font-weight: 700; font-size: 18px; color: #1a202c; }
#presentazione-home .intro-badge-card p { margin: 0; font-size: 18px; line-height: 26px; }

/* ==========================================================================
   3.1 PROVIDER BLOCK
   ========================================================================== */
#presentazione-home .provider-block { margin-top: 60px; }
#presentazione-home .provider-card { display: flex; align-items: flex-start; gap: 35px; padding: 40px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04); }
#presentazione-home .provider-badge { display: flex; justify-content: center; align-items: center; flex-shrink: 0; width: 240px; max-width: 240px; }
#presentazione-home .provider-badge img { display: block; width: 100%; height: auto; object-fit: contain; }
#presentazione-home .provider-content h2 { margin-bottom: 12px; font-size: 24px; }
#presentazione-home .provider-content p { margin-bottom: 10px; font-size: 18px; line-height: 28px; }
#presentazione-home .provider-content p:last-child { margin-bottom: 0; }

/* ==========================================================================
   3.2 GRID OFFERTA FORMATIVA
   ========================================================================== */
#presentazione-home .offerta-block { margin: 70px 0 0; }
#presentazione-home .section-title { margin-bottom: 45px; text-align: center; }
#presentazione-home .section-title h2 { margin-bottom: 8px; font-size: 28px; }
#presentazione-home .aree-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; width: 100%; }
#presentazione-home .area-card { position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 0 calc(33.333% - 16px); max-width: calc(33.333% - 16px); padding: 32px 24px; text-align: center; text-decoration: none; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); cursor: pointer; transition: all 0.25s ease; box-sizing: border-box; }
#presentazione-home .area-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }
#presentazione-home .card-master { border-left: 5px solid #d97706; }
#presentazione-home .card-ecm { border-left: 5px solid #65a30d; }
#presentazione-home .card-prof { border-left: 5px solid #2563eb; }
#presentazione-home .card-perf { border-left: 5px solid #0d9488; }
#presentazione-home .card-manag { border-left: 5px solid #9333ea; }
#presentazione-home .area-card .card-icon { display: flex; justify-content: center; align-items: center; flex-shrink: 0; width: 90px; height: 90px; margin-bottom: 16px; box-sizing: border-box; }
#presentazione-home .area-card .card-icon img { display: block; width: 100%; max-height: 100%; height: auto; object-fit: contain; }
#presentazione-home .area-card h3 { margin: 0 0 12px 0; font-weight: 700; font-size: 20px; line-height: 26px; color: #1e293b; }
#presentazione-home .area-card p { margin: 0; font-size: 18px; line-height: 26px; color: #64748b; }

/* ==========================================================================
   4. SEZIONE FORM DI CONTATTO (#form-contatto)
   ========================================================================== */
#form-contatto.form-section-cont { position: relative; display: block; width: 100%; padding: 60px 20px; background: rgba(222,231,231,1.00); border-top: 1px solid rgba(230, 235, 235, 1); }
#form-contatto .form-section { position: relative; display: block; width: 100%; max-width: 820px; margin: 0 auto; padding: 40px 35px; text-align: center; background: var(--color-white); border: 1px solid rgba(220, 228, 228, 1); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow-black-soft); box-sizing: border-box; }
#form-contatto .form-section h2 { margin: 0 0 10px 0; font-weight: 700; font-size: 28px; line-height: 34px; color: var(--search-icon-color); }
#form-contatto .form-section p { margin: 0 0 30px 0; font-size: 18px; line-height: 26px; color: var(--color-dark-text); }
#info { padding: 0; }
#form-contatto fieldset input, #form-contatto fieldset select { background-color: #f2f6f6; border: 1px solid rgba(28, 70, 70, 0.18); border-bottom: 2px solid rgba(28, 70, 70, 0.4); border-radius: 4px; }
#form-contatto fieldset input:focus, #form-contatto fieldset select:focus { background-color: #ffffff; border-color: rgba(28, 70, 70, 0.6); }
#form-contatto .select { background: #f2f6f6 url(/img/select-arrow.png) no-repeat 97% 50%; }
#form-contatto #privacy_box, #form-contatto #campi-obbligatori label { font-size: 13px; line-height: 20px; text-align: left; color: var(--color-dark-text); }
#form-contatto #privacy_box { position: relative; display: block; width: 100%; max-width: 100%; margin: 20px 0 10px 0; padding: 0; box-sizing: border-box; }
#form-contatto #privacy_box a { font-weight: 600; text-decoration: underline; color: var(--search-icon-color); transition: color 0.2s; }
#form-contatto #privacy_box a:hover { color: var(--primary-btn-bg); }
#form-contatto #privacy_box span { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 13px; white-space: nowrap; }
#form-contatto #privacy_box input[type="checkbox"] { width: 16px; height: 16px; margin: 0; padding: 0; cursor: pointer; }
#form-contatto #privacy_box strong { font-weight: 700; font-size: 13px; color: var(--color-dark-text); }
#form-contatto #campi-obbligatori label { display: block; width: 100%; margin-top: 10px; padding: 0; font-size: 12px; font-style: italic; text-align: left; color: var(--color-muted-text); }

/* ==========================================================================
   5. MEDIA QUERIES & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 1024px) {
	#hero-full-cont { height: auto; min-height: 580px; padding: 40px 0 30px 0; }
	#hero-full h1 strong { font-size: 32px; line-height: 38px; }
	#hero-full h1 em { font-size: 20px; line-height: 26px; }
	#hero-full .aree { flex-wrap: nowrap; justify-content: space-between; gap: 8px; width: 100%; max-width: 100%; margin-bottom: 25px; padding: 0 15px; }
	#hero-full .aree .area-cont { flex: 1 1 0; width: 20%; max-width: none; cursor: default; }
	#hero-full .aree .area-cont:hover .area { transform: none; animation: none; }
	#hero-full .aree .area-cont .action { display: none; }
	#hero-full .aree .area-cont .area { width: 100%; max-width: 100%; height: 90px; border-radius: 8px; }
	#hero-full .aree .area-cont .area img { display: none; }
	#hero-full .aree .area-cont .area.master { background: #d97706; }
	#hero-full .aree .area-cont .area.corsi { background: #65a30d; }
	#hero-full .aree .area-cont .area.corsi-specializzazione { background: #2563eb; }
	#hero-full .aree .area-cont .area.perfezionamento { background: #0d9488; }
	#hero-full .aree .area-cont .area.accreditati { background: #9333ea; }
	#hero-full .aree .area-cont .area h2 { position: relative; top: 50%; bottom: auto; display: flex; justify-content: center; align-items: center; height: 100%; padding: 0 4px; font-size: 12px; line-height: 14px; transform: translateY(-50%); pointer-events: auto; }
	#hero-full .aree .area-cont p { display: none; }
	.hero-actions { flex-direction: row; gap: 15px; width: 100%; max-width: 700px; }
	.btn-richiedi-info { flex: 0 0 auto; }
	#presentazione-home .intro-grid { grid-template-columns: 1fr; gap: 30px; }
	#presentazione-home .intro-badge-card { max-width: 480px; margin: 0 auto; }
	#presentazione-home .aree-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	#presentazione-home .area-card:hover { transform: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }
	#presentazione-home .area-card p { font-size: 16px; line-height: 24px; }
}

@media screen and (max-width: 768px) {
	#hero-full-cont { min-height: 560px; padding: 35px 0 25px 0; }
	#hero-full h1 { margin-bottom: 25px; }
	#hero-full h1 strong { font-size: 26px; line-height: 32px; }
	#hero-full h1 em { font-size: 16px; line-height: 22px; }
	#hero-full .aree { gap: 6px; margin-bottom: 20px; padding: 0 10px; }
	#hero-full .aree .area-cont { flex: 1 1 0; width: 20%; max-width: none; }
	#hero-full .aree .area-cont .area { width: 100%; max-width: 100%; height: 75px; }
	#hero-full .aree .area-cont .area h2 { font-size: 11px; line-height: 13px; }
	.hero-actions { flex-direction: row; gap: 10px; width: 100%; max-width: 95%; padding: 0 10px; box-sizing: border-box; }
	.btn-richiedi-info { flex: 0 0 auto; height: 40px; padding: 0 14px; font-size: 12px; }
	#presentazione-home { padding: 50px 16px; }
	#presentazione-home h2 { font-size: 24px; line-height: 30px; }
	#presentazione-home p.lead-text { font-size: 16px; line-height: 24px; }
	#presentazione-home .aree-grid { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 20px; }
	#presentazione-home .area-card { flex: 0 0 100%; width: 100%; max-width: 100%; margin: 0 0 20px 0; padding: 18px 16px; box-sizing: border-box; text-decoration: none; }
	#presentazione-home .provider-card { flex-direction: column; align-items: center; gap: 20px; padding: 25px 20px; text-align: center; }
	#presentazione-home .provider-badge { width: 160px; max-width: 160px; }
	#form-contatto .form-section { padding: 40px 15px 20px; }
}

@media screen and (max-width: 564px) {
	#hero-full-cont { height: auto; min-height: 600px; padding: 20px 0 20px 0; }
	#hero-full h1 { margin-bottom: 12px; padding: 0 10px; }
	#hero-full h1 strong { margin-bottom: 6px; font-size: 26px; line-height: 26px; }
	#hero-full h1 em { padding: 5px 14px; font-size: 12px; line-height: 16px; }
	#hero-full .aree { flex-direction: column; align-items: center; gap: 14px; margin-bottom: 20px; padding: 0 15px; }
	#hero-full .aree .area-cont { width: 100%; max-width: 280px; margin: 0; padding: 0; text-decoration: none; }
	#hero-full .aree .area-cont .action, #hero-full .aree .area-cont p { display: none; }
	#hero-full .aree .area-cont .area { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; height: 42px; margin: 0 auto; padding: 0; border-radius: 10px; text-decoration: none; border: none; box-shadow: none; }
	#hero-full .aree .area-cont .area img { display: none; }
	#hero-full .aree .area-cont .area.master { background: rgba(217, 119, 6, 0.99); }
	#hero-full .aree .area-cont .area.corsi { background: rgba(101, 163, 13, 0.99); }
	#hero-full .aree .area-cont .area.corsi-specializzazione { background: rgba(37, 99, 235, 0.99); }
	#hero-full .aree .area-cont .area.perfezionamento { background: rgba(13, 148, 136, 0.99); }
	#hero-full .aree .area-cont .area.accreditati { background: rgba(147, 51, 234, 0.99); }
	#hero-full .aree .area-cont .area h2 { position: static; top: auto; bottom: auto; left: auto; right: auto; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; margin: 0; padding: 0 8px; font-weight: 700; font-size: 13px; line-height: 1; text-align: center; color: var(--color-white); white-space: normal; text-decoration: none; border: none; border-bottom: none; box-shadow: none; transform: none; }
	#hero-full .aree .area-cont .area h2 br { display: none; }
	.hero-actions { flex-direction: column; gap: 8px; width: 100%; max-width: 280px; }
	#hero-full .hero-actions a.btn-richiedi-info { display: flex; justify-content: center; align-items: center; width: 100%; height: 38px; font-size: 12px; text-decoration: none; border: 1px solid #ffffff; box-shadow: 0 4px 10px var(--shadow-black-soft); }
	#presentazione-home { padding: 25px 16px; }
	#presentazione-home .intro-badge-card { padding: 14px 12px; }
	#presentazione-home .area-card { flex: 0 0 100%; width: 100%; max-width: 100%; margin: 0 0 20px 0; padding: 14px 12px; box-sizing: border-box; text-decoration: none; }
	#form-contatto .form-section { padding: 30px 6px; }
	#form-contatto .form-section p { margin: 0; }
}