/* =========================================================
   HOME STYLE
   Studio Tecnico Maria Sapone
   ========================================================= */


/* =========================================================
   01 — HOME BASE
   ========================================================= */

.home-page {
    width: 100%;

    background: var(--white);
    color: var(--black);
}


/* =========================================================
   02 — HERO
   ========================================================= */

.home-hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 150px 20px 100px;

    color: var(--white-2);

    background-image:
        linear-gradient(
            90deg,
            rgba(36, 32, 32, 0.78) 0%,
            rgba(36, 32, 32, 0.52) 42%,
            rgba(36, 32, 32, 0.20) 72%,
            rgba(36, 32, 32, 0.10) 100%
        ),
        url("../images/background/reggio-calabria-etna.png");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.home-hero-container {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
}


.home-hero-content {
    width: 100%;
    max-width: 1000px;
}


.home-hero-kicker {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;

    color: var(--gold);

    font-size: 22px;
    font-weight: 600;

    line-height: 1.3;
    letter-spacing: 2px;


}

.home-hero-kicker::before {
    content: "";

    display: block;

    width: 42px;
    height: 2px;

    background: var(--gold);
}


.home-hero-title {
    max-width: 1000px;

    margin: 0;

    color: var(--white-2);

    font-size: clamp(52px, 5vw, 72px);
    font-weight: 600;

    line-height: 0.98;
    letter-spacing: -0.025em;
}


.home-hero-title span {
    color: var(--gold);
}


.home-hero-lead {
    max-width: 640px;

    margin: 28px 0 0;

    color: rgba(255, 255, 255, 0.88);

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


.home-hero-actions {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 34px;
}


.home-hero-actions .button-cta {
    min-height: 50px;
}

/* =========================================================
   02 — VIDEO PROMO
   ========================================================= */

.video-promo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.video-promo-link:hover .cercl-figure.three {
    transform: scale(1.08);
}

@keyframes promoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

.video-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--white-2);
  margin-left: 3px;
}


/* =========================================================
   HERO — SCROLL BUTTON
   ========================================================= */

.home-hero-scroll {
    position: absolute;

    left: 50%;
    bottom: 28px;

    z-index: 3;

    display: inline-flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    color: var(--white-2);

    text-decoration: none;

    transform: translateX(-50%);
}

.home-hero-scroll-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.home-hero-scroll-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold);

    font-size: 20px;
    line-height: 1;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.home-hero-scroll:hover .home-hero-scroll-icon {
    color: var(--black);
    background: var(--gold);

    transform: translateY(3px);
}

/* =========================================================
   03 — SECTION HEADINGS
   ========================================================= */

.home-section-heading {
    max-width: 1200px;

    margin-bottom: 55px;
}


.home-section-kicker {
    margin-bottom: 12px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.3;
    letter-spacing: 2px;

    text-transform: uppercase;
}


.home-section-title {
	max-width: 1200px;
	margin: 0;

    color: var(--black);

    font-size: clamp(36px, 3.6vw, 52px);
    font-weight: 600;

    line-height: 1.05;
    letter-spacing: -0.02em;
}


/* =========================================================
   05 — SERVIZI
   ========================================================= */

.home-services {
    padding: 110px 20px 100px;

    background: #f1f1ef;
    color: var(--black);
}

.home-services .container {
    max-width: 1200px;
}

.home-services-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    border-top: 1px solid var(--gainsboro);
    border-left: 1px solid var(--gainsboro);
}

.home-service-card {
    display: flex;
    flex-direction: column;

    min-height: 290px;

    padding: 32px 34px 30px;

    background: var(--white);

    border-right: 1px solid var(--gainsboro);
    border-bottom: 1px solid var(--gainsboro);
}

.home-service-card img {
    width: 52px;
    height: 52px;

    margin-bottom: 24px;

    object-fit: contain;
}

.home-service-card h3 {
    margin: 0 0 14px;

    color: var(--black);

    font-size: 23px;
    font-weight: 600;

    line-height: 1.2;
}

.home-service-card p {
    margin: 0;

    color: #5d5d5d;

    font-size: 15px;
    line-height: 1.7;
}

.home-service-card a {
    display: inline-flex;
    align-items: center;

    margin-top: auto;
    padding-top: 22px;

    color: var(--black);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.25s ease;
}

.home-service-card a:hover {
    color: var(--gold);
}

.home-section-action {
    display: flex;
    justify-content: center;

    margin-top: 45px;
}

/* =========================================================
   06 — PROGETTO IN EVIDENZA
   ========================================================= */

.home-project-feature {
    padding: 120px 20px;
    background: var(--white);
    color: var(--black);
}

.home-project-feature .container {
    max-width: 1200px;
}

.home-project-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(0, 0.75fr);

    gap: 70px;
    align-items: center;
}

.home-project-image {
    min-height: 560px;
    background-image:
        url("../images/project-reference.jpg");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-project-content {
    max-width: 520px;
}

.home-project-kicker {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-project-title {
    max-width: 100%;
    margin: 0 0 22px;

    color: var(--black);

    font-size: clamp(38px, 3.8vw, 54px);
    font-weight: 600;

    line-height: 1.05;
    letter-spacing: -0.02em;
}

.home-project-text {
    margin: 0;
    color: #5d5d5d;
    font-size: 16px;
    line-height: 1.8;
}

.home-project-text strong {
    color: var(--black);
    font-weight: 600;
}

.home-project-content .button-cta {
    margin-top: 30px;
}


/* =========================================================
   08 — EXPERIENCE / APPROCCIO
   ========================================================= */

.home-experience {
    padding: 110px 20px 500px;

    background: var(--black);
    color: var(--white-2);
}

.home-experience .container {
    max-width: 1200px;
}

.home-experience .home-section-kicker {
    color: var(--gold);
}

.home-experience .home-section-title {
    max-width: 900px;
    color: var(--white-2);
}


/* ---------------------------------------------------------
   STACK
   --------------------------------------------------------- */

.home-experience-stack {
    position: relative;

    max-width: 1100px;

    margin: 60px auto 0;

    display: flex;
    flex-direction: column;
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.home-experience-card {
    position: sticky;
    bottom: 30vh;

    width: 100%;
    min-height: 500px;

    display: grid;
    grid-template-columns: 58% 42%;

    overflow: hidden;

    margin-bottom: -80px;

    background: #242020;
    color: var(--white-2);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 3px;

    box-shadow: 0 40px 20px -20px #0000008f;

    box-sizing: border-box;

    transform: translateY(80px);
}


/* ---------------------------------------------------------
   ORDINE DELLE CARD
   --------------------------------------------------------- */

.home-experience-card:nth-child(1) {
    z-index: 4;
    transform: none;
}

.home-experience-card:nth-child(2) {
    z-index: 3;
}

.home-experience-card:nth-child(3) {
    z-index: 2;
    transform: translateY(160px);
}

.home-experience-card:nth-child(4) {
    z-index: 1;
    transform: translateY(240px);
}

.home-experience-card:hover .home-experience-image img {
    transform: scale(1.28);
}

/* ---------------------------------------------------------
   CONTENUTO
   --------------------------------------------------------- */

.home-experience-content {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    padding: 48px;

    box-sizing: border-box;
}

.home-experience-meta {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 35px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;
    letter-spacing: 2px;
}

.home-experience-meta span:first-child {
    font-size: 14px;
}

.home-experience-content h3 {
    max-width: 560px;

    margin: 0 0 20px;

    color: var(--white-2);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;

    line-height: 1.04;
    letter-spacing: -0.02em;
}

.home-experience-content p {
    max-width: 560px;

    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 15px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   BENEFIT
   --------------------------------------------------------- */

.home-experience-label {
    margin-top: auto;
    padding-top: 40px;

    color: var(--gold);

    font-size: clamp(32px, 4vw, 54px);
    font-weight: 700;

    line-height: 1;
    letter-spacing: -0.03em;

    transform: scaleY(0.82);
    transform-origin: bottom left;
}


/* ---------------------------------------------------------
   IMMAGINE
   --------------------------------------------------------- */

.home-experience-image {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 500px;

    overflow: hidden;
}

.home-experience-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04),
            rgba(0, 0, 0, 0.14)
        );
}

.home-experience-image img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    transform: scale(1);
    transform-origin: center center;

    transition: transform 0.8s ease;
}

/* =========================================================
   09 — TEAM
   ========================================================= */

.home-team {
    padding: 110px 20px 120px;

    background: var(--white);
    color: var(--black);
}

.home-team .container {
    max-width: 1200px;
}

.home-team-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;
}

.home-team-card {
    display: grid;

    grid-template-columns: 220px minmax(0, 1fr);

    min-height: 220px;

    background: var(--white);

    border: 1px solid var(--gainsboro);
}

.home-team-image {
    height: 100%;
    min-height: 220px;

    overflow: hidden;
}

.home-team-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.home-team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 32px;
}

.home-team-info h3 {
    margin: 0 0 12px;

    color: var(--black);

    font-size: 28px;
    font-weight: 600;

    line-height: 1.1;
}

.home-team-info p {
    margin: 0;

    color: #5d5d5d;

    font-size: 15px;
    line-height: 1.6;
}

.home-team-info p + p {
    margin-top: 4px;
}

.home-team-description {
    max-width: 900px;

    margin-top: 45px;
}

.home-team-description p {
    margin: 0;

    color: #5d5d5d;

    font-size: 16px;
    line-height: 1.8;
}

/* =========================================================
   10 — COLLABORAZIONI
   ========================================================= */

.home-collaborations {
    padding: 85px 20px 90px;

    background: #f1f1ef;
    color: var(--black);
}

.home-collaborations .container {
    max-width: 1200px;
}

.home-collaborations .home-section-heading {
    max-width: 850px;
    margin-bottom: 45px;
}

.home-collaborations-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    align-items: center;

    border-top: 1px solid var(--gainsboro);
    border-left: 1px solid var(--gainsboro);
}

.home-collaborations-grid img {
    display: block;

    width: 100%;
    height: 110px;

    padding: 24px 35px;

    object-fit: contain;

    background: var(--white);

    border-right: 1px solid var(--gainsboro);
    border-bottom: 1px solid var(--gainsboro);

    opacity: 0.72;

    transition:
        opacity 0.25s ease;
}

.home-collaborations-grid img:hover {
    opacity: 1;
}

/* =========================================================
   11 — APPROFONDIMENTI
   ========================================================= */

.home-articles {
    padding: 110px 20px 120px;

    background: var(--white);
    color: var(--black);
}

.home-articles .container {
    max-width: 1200px;
}

.home-articles .home-section-heading {
    max-width: 850px;
    margin-bottom: 50px;
}

.home-section-lead {
    max-width: 700px;

    margin: 22px 0 0;

    color: #5d5d5d;

    font-size: 16px;
    line-height: 1.8;
}

.home-articles-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}

.home-article-card {
    display: flex;
    flex-direction: column;

    background: var(--white);

    border: 1px solid var(--gainsboro);
}

.home-article-card > img {
    display: block;

    width: 100%;
    height: 240px;

    object-fit: cover;
}

.home-article-content {
    display: flex;
    flex-direction: column;

    min-height: 240px;

    padding: 28px 30px 30px;
}

.home-article-content > span {
    margin-bottom: 14px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 600;

    line-height: 1.4;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.home-article-content h3 {
    margin: 0;

    color: var(--black);

    font-size: 24px;
    font-weight: 600;

    line-height: 1.2;
}

.home-article-content a {
    margin-top: auto;
    padding-top: 24px;

    color: var(--black);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.25s ease;
}

.home-article-content a:hover {
    color: var(--gold);
}

/* =========================================================
   12 — CTA FINALE
   ========================================================= */

.home-cta {
    padding: 20px;

    background: #f1f1ef;
    color: var(--black);

    border-top: 1px solid var(--gainsboro);
    border-bottom: 1px solid var(--gainsboro);
}

.home-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    min-height: 140px;

    max-width: 1200px;
}

.home-cta-copy {
    max-width: 850px;
}

.home-cta-kicker {
    display: block;

    margin-bottom: 6px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 600;

    line-height: 1.3;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.home-cta-title {
    margin: 0;

    color: var(--black);

    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 600;

    line-height: 1.05;
    letter-spacing: -0.02em;
}

.home-cta-action {
    flex-shrink: 0;
}

/* =========================================================
   13 — PULSANTI HOME
   ========================================================= */

.home-page a.button-cta {
    color: var(--black) !important;
    border-color: var(--gold);
    background: transparent;
}

.home-page a.button-cta:hover {
    color: var(--white-2) !important;
    background: var(--gold);
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.home-page .home-hero a.button-cta {
    color: var(--white-2) !important;
    border-color: var(--gold);
    background: transparent;
}

.home-page .home-hero a.button-cta:hover {
    color: var(--black) !important;
    background: var(--gold);
}
