/* ============================================================
   Fratelli di Avellino – Elementor Plugin CSS
   Weblandia v1.0.0
   ============================================================ */

/* ── Variabili colore (allineate al Figma) ── */
:root {
    --fda-blue-900: #1e3a5f;
    --fda-blue-600: #2563eb;
    --fda-blue-100: #dbeafe;
    --fda-blue-200: #bfdbfe;
    --fda-gray-50:  #f9fafb;
    --fda-gray-700: #374151;
    --fda-white:    #ffffff;
}

/* ── NAVBAR ── */
.fda-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--fda-bg, #f9fafb);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .3s;
}
.fda-navbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--fda-navbar-h, 80px);
}
.fda-navbar__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}
.fda-navbar__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.fda-navbar__brand-name {
    font-size: var(--fda-brand-size, 1.25rem);
    font-weight: 700;
    color: var(--fda-brand-color, #1e3a5f);
    font-family: var(--fda-font-heading, inherit);
}
.fda-navbar__menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.fda-navbar__menu a {
    text-decoration: none;
    color: var(--fda-link-color, #374151);
    font-size: var(--fda-link-size, 1rem);
    font-family: var(--fda-font-body, inherit);
    transition: color .2s;
}
.fda-navbar__menu a:hover { color: var(--fda-link-hover, #2563eb); }
.fda-navbar__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.fda-navbar__mobile {
    display: none;
    flex-direction: column;
    padding-bottom: 1rem;
}
.fda-navbar__mobile.open { display: flex; }
.fda-navbar__mobile a {
    padding: .6rem 1rem;
    text-decoration: none;
    color: var(--fda-link-color, #374151);
    font-family: var(--fda-font-body, inherit);
    transition: background .15s;
}
.fda-navbar__mobile a:hover { background: #eff6ff; }
@media (max-width: 768px) {
    .fda-navbar__menu     { display: none; }
    .fda-navbar__hamburger { display: flex; align-items: center; }
}

/* ── HERO ── */
.fda-hero {
    position: relative;
    height: var(--fda-hero-h, 600px);
    overflow: hidden;
    margin-top: 80px;
}
.fda-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fda-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--fda-overlay, linear-gradient(90deg, rgba(30,58,95,.9) 0%, rgba(37,99,235,.7) 100%));
    display: flex;
    align-items: center;
}
.fda-hero__content {
    max-width: 1280px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
    padding-left: var(--fda-hero-offset, 2rem);
}
.fda-hero__title {
    font-size: var(--fda-hero-title-size, 4rem);
    font-weight: var(--fda-hero-title-weight, 700);
    color: var(--fda-hero-title-color, #ffffff);
    font-family: var(--fda-font-heading, inherit);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.fda-hero__sub {
    font-size: var(--fda-hero-sub-size, 1.35rem);
    color: rgba(255,255,255,.9);
    font-family: var(--fda-font-body, inherit);
    margin-bottom: 2rem;
    max-width: 560px;
}
.fda-hero__btn {
    display: inline-block;
    background: var(--fda-btn-bg, #ffffff);
    color: var(--fda-btn-color, #1e3a5f);
    padding: 1rem 2rem;
    border-radius: var(--fda-btn-radius, .5rem);
    font-size: var(--fda-btn-size, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    font-family: var(--fda-font-body, inherit);
}
.fda-hero__btn:hover {
    background: var(--fda-btn-hover-bg, #eff6ff);
    color: var(--fda-btn-hover-color, #1e3a5f);
    text-decoration: none;
}
@media (max-width: 768px) {
    .fda-hero__title  { font-size: 2.2rem; }
    .fda-hero__sub    { font-size: 1.05rem; }
    .fda-hero__content{ padding-left: 1.5rem; }
}

/* ── PROGRAMMA ── */
.fda-programma {
    padding: var(--fda-prog-padding, 5rem 1.5rem);
    background: var(--fda-prog-bg, #ffffff);
}
.fda-programma__inner { max-width: 1280px; margin: 0 auto; }
.fda-programma__title {
    text-align: center;
    font-size: var(--fda-prog-title-size, 2.75rem);
    color: var(--fda-prog-title-color, #1e3a5f);
    font-family: var(--fda-font-heading, inherit);
    font-weight: var(--fda-prog-title-weight, 700);
    margin-bottom: 3rem;
}
.fda-programma__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fda-prog-gap, 2rem);
}
@media (max-width: 900px) {
    .fda-programma__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .fda-programma__grid { grid-template-columns: 1fr; }
}
.fda-card {
    background: #ffffff;
    border-radius: var(--fda-card-radius, .75rem);
    padding: var(--fda-card-padding, 2rem);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: box-shadow .25s;
}
.fda-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.16); }
.fda-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--fda-blue-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}
.fda-card__heading {
    font-size: var(--fda-card-h-size, 1.35rem);
    color: var(--fda-card-h-color, #1e3a5f);
    font-family: var(--fda-font-heading, inherit);
    font-weight: 600;
    margin-bottom: .75rem;
}
.fda-card__text {
    color: var(--fda-card-text-color, #374151);
    font-size: var(--fda-card-text-size, 1rem);
    font-family: var(--fda-font-body, inherit);
    line-height: 1.65;
}

/* ── LOGO SEZIONE ── */
.fda-logo-section {
    padding: var(--fda-logosec-padding, 5rem 1.5rem);
    background: var(--fda-logosec-bg, #1e3a5f);
    text-align: center;
}
.fda-logo-section__logo {
    width: var(--fda-logosec-logo-size, 192px);
    height: var(--fda-logosec-logo-size, 192px);
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}
.fda-logo-section__title {
    font-size: var(--fda-logosec-title-size, 2rem);
    font-family: var(--fda-font-heading, inherit);
    font-weight: 700;
    color: var(--fda-logosec-title-color, #ffffff);
    margin-bottom: .75rem;
}
.fda-logo-section__tagline {
    font-size: var(--fda-logosec-tag-size, 1.5rem);
    font-style: italic;
    font-family: Georgia, serif;
    color: var(--fda-logosec-tag-color, #ffffff);
    margin-bottom: 1rem;
}
.fda-logo-section__desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--fda-logosec-desc-size, .9rem);
    color: var(--fda-logosec-desc-color, #bfdbfe);
    font-family: var(--fda-font-body, inherit);
    line-height: 1.7;
    text-align: left;
}

/* ── SQUADRA ── */
.fda-squadra {
    padding: var(--fda-sq-padding, 5rem 1.5rem);
    background: var(--fda-sq-bg, #f9fafb);
}
.fda-squadra__inner { max-width: 1280px; margin: 0 auto; }
.fda-squadra__title {
    text-align: center;
    font-size: var(--fda-sq-title-size, 2.75rem);
    color: var(--fda-sq-title-color, #1e3a5f);
    font-family: var(--fda-font-heading, inherit);
    font-weight: 700;
    margin-bottom: .75rem;
}
.fda-squadra__sub {
    text-align: center;
    font-size: var(--fda-sq-sub-size, 1.2rem);
    color: var(--fda-sq-sub-color, #6b7280);
    font-family: var(--fda-font-body, inherit);
    margin-bottom: 3.5rem;
}
.fda-squadra__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fda-sq-gap, 2rem);
}
@media (max-width: 900px) {
    .fda-squadra__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .fda-squadra__grid { grid-template-columns: 1fr; }
}
.fda-candidate {
    background: #ffffff;
    border-radius: var(--fda-card-radius, .75rem);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: box-shadow .25s, transform .25s;
}
.fda-candidate:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.16);
    transform: translateY(-3px);
}
.fda-candidate__img-wrap {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #e5e7eb;
}
.fda-candidate__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.fda-candidate:hover .fda-candidate__img { transform: scale(1.06); }
.fda-candidate__name {
    background: var(--fda-sq-name-bg, #1e3a5f);
    padding: var(--fda-sq-name-padding, .85rem 1rem);
    text-align: center;
    font-size: var(--fda-sq-name-size, 1rem);
    color: var(--fda-sq-name-color, #ffffff);
    font-family: var(--fda-font-body, inherit);
    font-weight: 600;
    margin: 0;
}

/* ── TRASPARENZA ── */
.fda-trasparenza {
    padding: var(--fda-tr-padding, 5rem 1.5rem);
    background: var(--fda-tr-bg, #ffffff);
}
.fda-trasparenza__inner { max-width: 860px; margin: 0 auto; }
.fda-trasparenza__title {
    text-align: center;
    font-size: var(--fda-tr-title-size, 2.75rem);
    color: var(--fda-tr-title-color, #1e3a5f);
    font-family: var(--fda-font-heading, inherit);
    font-weight: 700;
    margin-bottom: 2.5rem;
}
.fda-trasparenza__box {
    background: #ffffff;
    border-radius: .75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    border-left: 4px solid var(--fda-tr-accent, #2563eb);
    padding: var(--fda-tr-box-padding, 3rem);
}
.fda-trasparenza__box-title {
    font-size: var(--fda-tr-box-h-size, 1.4rem);
    color: var(--fda-tr-title-color, #1e3a5f);
    font-family: var(--fda-font-heading, inherit);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.fda-trasparenza__intro {
    color: var(--fda-gray-700);
    font-family: var(--fda-font-body, inherit);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: var(--fda-tr-text-size, 1rem);
}
.fda-trasparenza__list-wrap {
    background: #eff6ff;
    border-radius: .5rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.fda-trasparenza__list-label {
    font-weight: 600;
    color: var(--fda-blue-900);
    font-family: var(--fda-font-heading, inherit);
    margin-bottom: .75rem;
    font-size: 1rem;
}
.fda-trasparenza__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.fda-trasparenza__list li {
    display: flex;
    gap: .5rem;
    color: var(--fda-gray-700);
    font-family: var(--fda-font-body, inherit);
    font-size: var(--fda-tr-text-size, 1rem);
    line-height: 1.5;
}
.fda-trasparenza__list li::before {
    content: '✓';
    color: var(--fda-blue-600);
    font-weight: 700;
    flex-shrink: 0;
}
.fda-trasparenza__note {
    font-size: .875rem;
    color: #6b7280;
    font-style: italic;
    font-family: var(--fda-font-body, inherit);
    line-height: 1.6;
}

/* ── FOOTER ── */
.fda-footer {
    background: var(--fda-footer-bg, #1e3a5f);
    color: var(--fda-footer-color, #ffffff);
    padding: var(--fda-footer-padding, 3rem 1.5rem);
}
.fda-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
}
.fda-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .fda-footer__grid { grid-template-columns: 1fr; }
}
.fda-footer__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}
.fda-footer__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.fda-footer__brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--fda-font-heading, inherit);
}
.fda-footer__tagline {
    color: var(--fda-blue-200);
    font-size: var(--fda-footer-text-size, .95rem);
    font-family: var(--fda-font-body, inherit);
    line-height: 1.6;
}
.fda-footer__col-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--fda-font-heading, inherit);
}
.fda-footer__contact-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .5rem;
}
.fda-footer__contact-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--fda-blue-200);
    font-size: var(--fda-footer-text-size, .95rem);
    font-family: var(--fda-font-body, inherit);
}
.fda-footer__contact-list a {
    color: inherit;
    text-decoration: none;
}
.fda-footer__contact-list a:hover { text-decoration: underline; }
.fda-footer__socials {
    display: flex;
    gap: .75rem;
}
.fda-footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    transition: background .2s;
    font-size: 1.1rem;
}
.fda-footer__social-link:hover {
    background: rgba(255,255,255,.25);
    color: #ffffff;
    text-decoration: none;
}
.fda-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--fda-blue-200);
    font-size: var(--fda-footer-text-size, .9rem);
    font-family: var(--fda-font-body, inherit);
}

/* ── SQUADRA: card linkabile ── */
a.fda-candidate {
    display: block;
    text-decoration: none;
    color: inherit;
}
a.fda-candidate--linked .fda-candidate__name::after {
    content: ' →';
    opacity: .7;
}

/* ── TRASPARENZA: link in fondo al box ── */
.fda-trasparenza__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,.08);
}
.fda-trasparenza__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--fda-blue-600, #2563eb);
    font-weight: 600;
    text-decoration: none;
    font-size: .95rem;
    transition: color .2s;
}
.fda-trasparenza__link::before {
    content: '↗';
    font-size: .85em;
}
.fda-trasparenza__link:hover {
    color: var(--fda-blue-900, #1e3a5f);
    text-decoration: underline;
}

/* ── FOOTER: pulsante torna su ── */
.fda-footer__backtop-col {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.fda-footer__backtop {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    color: #ffffff;
    padding: .65rem 1.5rem;
    border-radius: .5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, transform .2s;
    margin-top: .25rem;
    border: 1px solid rgba(255,255,255,.2);
}
.fda-footer__backtop:hover {
    background: rgba(255,255,255,.3);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}
