/*---------------------------------------
  FONDAZIONE GERMOGLIO CUSTOM STYLES
-----------------------------------------*/

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/*---------------------------------------
  NAVIGATION — fixes brand contrast & makes sticky
-----------------------------------------*/
.navbar {
    position: sticky;
    top: 0;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    color: var(--dark-color, #000) !important;
    font-size: 20px;
    letter-spacing: 0.3px;
}

.navbar-brand strong {
    position: relative;
    padding-left: 14px;
}

.navbar-brand strong::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 22px;
    background: var(--primary-color, #ffc107);
    border-radius: 2px;
}

.navbar-nav .nav-link {
    font-size: 16px;
}

/*---------------------------------------
  HERO — constrain logo size and layout
-----------------------------------------*/
.hero .heroText {
    top: 50% !important;
    max-width: 1100px;
}

.hero .heroText img.portfolio-image {
    max-width: 420px;
    width: 70%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}

@media screen and (max-width: 767px) {
    .hero .heroText img.portfolio-image {
        max-width: 260px;
    }
}

.hero .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.35) 100%);
}

/*---------------------------------------
  SECTION PADDING — reduce excessive whitespace
-----------------------------------------*/
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media screen and (max-width: 991px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/*---------------------------------------
  TYPOGRAPHY — slightly calmer scale
-----------------------------------------*/
h2 {
    font-size: 36px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

p {
    font-size: 17px;
    line-height: 1.7;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Section heading accent */
section > .container > .row > .col-12 > h2:first-child,
section .col-12 > h2.text-center {
    position: relative;
    padding-bottom: 0.8rem;
}

section .col-12 > h2.text-center::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color, #ffc107);
    border-radius: 2px;
    margin: 0.9rem auto 0;
}

/*---------------------------------------
  CUSTOM BLOCKS — cards
-----------------------------------------*/
.custom-block {
    padding: 2rem 1.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.custom-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10) !important;
}

.custom-block i {
    display: block;
    line-height: 1;
}

.custom-block h5 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.custom-block p {
    font-size: 0.98rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.custom-block .fs-1 {
    font-size: 2.5rem !important;
}

/*---------------------------------------
  TIMELINE
-----------------------------------------*/
.timeline {
    position: relative;
}

.timeline .row {
    position: relative;
}

.timeline h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #ffc107) !important;
    letter-spacing: 0.3px;
}

@media screen and (min-width: 992px) {
    .timeline::before {
        content: '';
        position: absolute;
        left: 25%;
        top: 4px;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, #ffc107, rgba(13, 110, 253, 0.4));
        border-radius: 2px;
    }

    .timeline .row::before {
        content: '';
        position: absolute;
        left: calc(25% - 6px);
        top: 6px;
        width: 14px;
        height: 14px;
        background: #ffc107;
        border: 3px solid #fff;
        border-radius: 50%;
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
        z-index: 1;
    }

    .timeline .row .col-lg-9 {
        padding-left: 2.5rem;
    }
}

/*---------------------------------------
  CUSTOM BUTTONS
-----------------------------------------*/
.custom-btn {
    background: var(--dark-color, #000);
    border: 2px solid var(--dark-color, #000);
    border-radius: 100px;
    color: var(--white-color, #fff);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.custom-btn:hover {
    background: var(--primary-color, #ffc107);
    border-color: var(--primary-color, #ffc107);
    color: var(--dark-color, #000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.custom-border-btn {
    background: transparent;
    color: var(--dark-color, #000);
}

.custom-border-btn:hover {
    background: var(--dark-color, #000);
    border-color: var(--dark-color, #000);
    color: var(--white-color, #fff);
}

/*---------------------------------------
  LISTS
-----------------------------------------*/
.list-unstyled li {
    padding: 0.35rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

/*---------------------------------------
  ALERT — support section highlight
-----------------------------------------*/
.alert {
    padding: 1.75rem 2rem;
    border-radius: 12px;
    border: 0;
}

.alert-success {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(25, 135, 84, 0.12));
    color: var(--dark-color, #000);
}

.alert h4 {
    margin-bottom: 0.5rem;
}

.alert p {
    font-size: 1rem;
}

/*---------------------------------------
  NEWS THUMB (project cards)
-----------------------------------------*/
.news-thumb {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.news-thumb .news-image-hover {
    display: block;
    width: 100%;
    padding-bottom: 0;
}

.news-thumb .news-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-category {
    top: 16px !important;
    left: 16px !important;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-text-info {
    margin: 20px !important;
}

.news-title {
    margin-top: 5px !important;
    margin-bottom: 12px !important;
}

.news-title-link {
    font-size: 1.25rem;
    font-weight: 700;
}

/*---------------------------------------
  BACKGROUND SECTIONS
-----------------------------------------*/
#home-intro {
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
}

/*---------------------------------------
  CONTACT
-----------------------------------------*/
.contact-form .form-control {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color, #ffc107);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.15);
}

/*---------------------------------------
  FOOTER — rebuilt so columns align
-----------------------------------------*/
.site-footer {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
}

.site-footer h5 {
    margin-bottom: 0.5rem;
}

.site-footer .custom-link {
    font-size: 1rem;
    display: inline-block;
    margin-top: 0.25rem;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 2rem 0 1.25rem;
}

.site-footer .copyright-text {
    color: rgba(255, 255, 255, 0.55);
}

.site-footer .copyright-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.site-footer .social-icon-link {
    font-size: 1.1rem;
    margin-right: 14px;
}

/*---------------------------------------
  MOBILE
-----------------------------------------*/
@media screen and (max-width: 767px) {
    .custom-block {
        padding: 1.5rem;
    }

    .custom-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin: 6px 4px;
    }

    .timeline .row {
        margin-bottom: 1.5rem;
    }

    .timeline h4 {
        margin-bottom: 0.5rem;
    }
}

/*---------------------------------------
  ICON HELPERS
-----------------------------------------*/
.bi {
    vertical-align: middle;
}
