/* ============================================================
   GIUSEPPE GILBERTI — custom overrides on top of the template
   ============================================================ */

/* ---------- Language switch (header) ---------- */
.header-wrap .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}
.lang-switch {
    color: #fff;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-decoration: none;
    opacity: .7;
    transition: opacity .3s ease;
}
.lang-switch:hover {
    color: #fff;
    opacity: 1;
}

/* ---------- Company logo tiles (featured cards) ----------
   Brand-colored gradients with a slow wave motion. */
.featured-card {
    /* the SVG logos have intrinsic widths (up to ~700px): without this the
       grid column can't shrink below them and overflows small screens */
    min-width: 0;
}
.featured-card .img-box.logo-tile-box {
    background-size: 300% 300%;
    animation: tileWave 11s ease-in-out infinite;
    position: relative;
}
.featured-card .img-box.logo-tile-box img {
    /* absolutely positioned box of fixed proportions, logo contained inside:
       geometrically impossible to overflow the tile in any browser */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    height: 42%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .95;
}
.featured-card:hover .img-box.logo-tile-box img {
    transform: translate(-50%, -50%) scale(1.08);
}
/* 3 ventures on a single row (desktop/tablet) */
@media (min-width: 810px) {
    .featured-work-lists {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 809px) {
    /* guard against intrinsic-width grid track expansion */
    .featured-work-lists {
        grid-template-columns: minmax(0, 1fr);
    }
}
@keyframes tileWave {
    0%   { background-position: 0% 40%; }
    50%  { background-position: 100% 60%; }
    100% { background-position: 0% 40%; }
}
/* Gilberti Group — graphite */
.logo-tile-box.tile-gilberti {
    background-image: linear-gradient(115deg, #141418, #34343e, #1b1b21, #141418);
}
/* GILBI — deep navy / blue (brand: #060D2F, #1C75BC, #F9BC2F) */
.logo-tile-box.tile-gilbi {
    background-image: linear-gradient(115deg, #060d2f, #14418a, #1c75bc, #060d2f);
}
/* Accessibi — petrol blue (brand: #1c3d53 / #143852) */
.logo-tile-box.tile-accessibi {
    background-image: linear-gradient(115deg, #0f2b3f, #1c5a86, #143852, #0f2b3f);
}
/* Behindy — black / steel */
.logo-tile-box.tile-behindy {
    background-image: linear-gradient(115deg, #010101, #23232b, #0d0d11, #010101);
}
@media (prefers-reduced-motion: reduce) {
    .featured-card .img-box.logo-tile-box { animation: none; }
}

/* Company short description on the companies page cards */
.featured-card .content .company-desc {
    color: rgba(214, 214, 215, 0.55);
    font-size: 15px;
    line-height: 1.5;
    margin: 10px 0 0;
    max-width: 520px;
}

/* ---------- Client logos marquee: seamless loop for 12-logo set ----------
   (template keyframe is tuned to its own 7-logo strip: 280px pitch x 12 = 3360px) */
@keyframes partnerAnim {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-3360px); }
}
.partner-sec ul {
    animation-duration: 43s;
}

/* ---------- Client logos strip: perfectly centered ---------- */
.partner-box .partner-box-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-box .partner-box-inner img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: .9;
    transition: opacity .3s ease;
}
.partner-box:hover .partner-box-inner img {
    opacity: 1;
}
/* Logos too dark to read on the dark tile get a white treatment */
.partner-box .partner-box-inner img.logo-white {
    filter: brightness(0) invert(1);
}

/* ---------- Preloader: black background + brand text ---------- */
.preloader-wrap {
    background: #000;
}
.preloader-wrap .loader.loader-brand {
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-text {
    color: #fff;
    font-family: 'Inter Tight', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
    animation: loaderPulse 1.6s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: .3; }
    50%      { opacity: 1; }
}

/* ---------- Full-width video section ---------- */
.full-image-box video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Ventures page: card text needs breathing room ----------
   (.featured-card .content has a fixed 100px height in the template;
    with the added description the text overflows the box) */
.work-page .featured-card .content {
    height: auto;
    padding: 24px 26px;
    align-items: flex-start;
}

/* ---------- Signature (motivation section) ---------- */
.signature-img {
    width: 220px;
    max-width: 60%;
    height: auto;
    margin-top: 18px;
    display: block;
}

/* ---------- Keep the subject visible in the about photo ---------- */
.about-sec .about-bottom-content-wrap .img-box img {
    object-position: center top;
}

/* ---------- Testimonials without photos ---------- */
.testimonial-author-box .testimonial-author-content:only-child {
    margin-left: 0;
}

/* ---------- Contact page: centered content ---------- */
.contact-sec {
    justify-content: center;
    max-width: 1500px;
    margin: 0 auto;
}
.contact-sec .contact-form-wrap {
    width: 100%;
    max-width: 620px;
}
.contact-infos-wrap {
    max-width: 1500px;
    margin: 0 auto;
}
.contact-infos-wrap .contact-infos {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    text-align: center;
}

/* ---------- Contact form alerts ---------- */
#result {
    margin: 0;
}
#result .alert {
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
}
#result .alert h3 {
    font-size: 18px;
    margin: 0 0 6px;
}
#result .alert p {
    margin: 0;
}
#result .alert-success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #7bd8a5;
}
#result .alert-success h3 {
    color: #8ff0b8;
}
#result .alert-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #f1948a;
}

/* ---------- Honeypot field ---------- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- 404 ---------- */
.notfound-sec {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
    padding: 60px 20px;
}
.notfound-sec h2 {
    color: #fff;
    font-size: clamp(32px, 6vw, 72px);
    letter-spacing: 2px;
}
.notfound-sec p {
    color: rgba(214, 214, 215, 0.7);
}
