/* ============================================================
   PHILOSOPHY PAGE
   ============================================================ */

.filosofia .secondpage-hero-title{
    font-size: clamp(2.8rem,6vw,4.5rem);
}
.filosofia .secondpage-hero-title span{
    display: block;
    color: white;
}
@media(min-width:768px){
    .filosofia .secondpage-hero-title span{
        background: linear-gradient(110deg,#a85500 0%,#e0a35a 28%,#e1c5a1 48%,#b17336 68%,#e5d1b9 100%);
    background-clip: text;
    color: transparent;
    }
}

/* INTRO */

.philosophy-intro-section {
    position: relative;
    padding: 115px 0 110px;
    background: #2d2d27;
    color: #f1ece4;
}

.philosophy-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px,calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,transparent,rgba(205,160,90,.24),transparent);
}

.philosophy-intro {
    max-width: 940px;
}

.philosophy-eyebrow {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.philosophy-intro h2,
.philosophy-copy h2,
.philosophy-formula-heading h2 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: clamp(2.8rem,4.3vw,4.9rem);
    font-weight: 400;
    line-height: 1.03;
    color: #f2ede5;
}

.philosophy-intro h2 span,
.philosophy-copy h2 span,
.philosophy-formula-heading h2 span {
    color: var(--kb-gold);
}

.philosophy-lead {
    margin: 28px 0 0;
    color: rgba(255,255,255,.78);
    font-family: "Playfair Display",serif;
    font-size: clamp(1.3rem,1.8vw,1.65rem);
    line-height: 1.55;
    padding-bottom: 1em;
}

.philosophy-intro > p:last-child {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.56);
    font-size: 1.6rem;
    line-height: 1.4;
}

/* FEATURE SECTIONS */

.philosophy-feature {
    position: relative;
    padding: 115px 0;
    overflow: hidden;
    background: #0c0c09;
    color: #eee9e1;
}

.philosophy-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px,calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,transparent,rgba(205,160,90,.18),transparent);
}

.philosophy-black-section {
    background: radial-gradient(circle at 18% 48%,rgba(168,85,0,.08),transparent 30%),#0c0c09;
}

.philosophy-foam-section {
    background: radial-gradient(circle at 82% 45%,rgba(168,85,0,.07),transparent 30%),#2d2d27;
    background-image: url(../img/pattern-trama.webp);
  background-size: 150px;
}

.philosophy-image {
    position: relative;
    max-width: 570px;
    overflow: hidden;
    background: #11110e;
    box-shadow: 5px 5px 30px #0000004a;
}
.image-signature{
    position: absolute;
    z-index: 3;
    color: white;
    font-size: clamp(1.5rem,7.8vw,3rem);
    width: 100%;
    padding: 20%;
    font-family: "Playfair Display",serif;
    font-style: italic;
    line-height: 1.2;
}
.philosophy-image::before {
    content: "";
    position: absolute;
    inset: 120px;
    z-index: 2;
    border: 2px solid rgba(210,163,94,.90);
    pointer-events: none;
    border-radius: 50%;
    width: 50%;
    height: 50%;
    box-shadow: 5px 5px 30px black;
}
.philosophy-foam-section .philosophy-image::before{
    display: none;
    
}
.philosophy-black-section .philosophy-image::before{
    background-image: url(../img/kalini-shampoo-ayurvedico-lab-dettaglio.webp);
    background-position:center;
    background-size: contain;
    inset: unset;
    top: 25%;
    right: 10%;
}

.philosophy-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,transparent 60%,rgba(5,5,4,.18));
    pointer-events: none;
}

.philosophy-image img {
    display: block;
    width: 100%;
    height: auto;
    #aspect-ratio: 1/1;
    object-fit: cover;
    transform: scale(1.01);
}

.philosophy-copy {
    max-width: 610px;
}

.philosophy-copy > p:not(.philosophy-eyebrow):not(.philosophy-signature) {
    max-width: 570px;
    margin: 25px 0 0;
    color: rgba(255,255,255,.56);
    font-size: .97rem;
    line-height: 1.8;
}

.philosophy-copy > p + p {
    margin-top: 18px;
}

.philosophy-signature {
    position: relative;
    margin: 30px 0 0;
    padding-left: 32px;
    color: #d0a15f;
    font-family: "Playfair Display",serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
}

.philosophy-signature::before {
    content: "";
    position: absolute;
    top: .85em;
    left: 0;
    width: 20px;
    height: 1px;
    background: #b9803e;
}

/* TEXT LINK */

.filosofia .btn-gold {
    margin-top: 28px;
}

.philosophy-text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,#a85500,#e0a35a,#e1c5a1);
    transform-origin: left;
    transition: transform .3s ease;
}

.philosophy-text-link span {
    font-size: 1rem;
    transition: transform .3s ease;
}

.philosophy-text-link:hover {
    color: #efd19b;
}

.philosophy-text-link:hover::after {
    transform: scaleX(.72);
}

.philosophy-text-link:hover span {
    transform: translateX(5px);
}

/* MANIFESTO BREAK */

.philosophy-manifesto-section {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%,rgba(168,85,0,.09),transparent 34%),#070706;
    color: #0c0c09;
    background-image: url(../img/ingredients-grid.webp);
}
.philosophy-manifesto-section::before,
.philosophy-manifesto-section::after {
    content: "";
    position: absolute;
    left: 50%;
    width: min(1180px,calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,transparent,rgba(205,160,90,.24),transparent);
}

.philosophy-manifesto-section::before {
    top: 0;
}

.philosophy-manifesto-section::after {
    bottom: 0;
}

.philosophy-manifesto {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: 50px;
    background: var(--kb-gold);
    border-radius: 14px;
    box-shadow: 5px 5px 30px black;
    opacity: .8 ;
}

.philosophy-manifesto blockquote {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: clamp(1.5rem,2.3vw,4rem);
    font-weight: 400;
    line-height: .96;
    color: #0c0c09;
}

.philosophy-manifesto blockquote span {
    color: white;
}

/* FORMULA */

.philosophy-formula-section {
    position: relative;
    padding: 120px 0 125px;
    background: #0c0c09;
    
}

.philosophy-formula-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px,calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,transparent,rgba(205,160,90,.18),transparent);
}

.philosophy-formula-heading {
    max-width: 500px;
}

.philosophy-formula-copy {
    max-width: 720px;
    padding-top: 8px;
}

.philosophy-formula-copy p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.56);
    font-size: .98rem;
    line-height: 1.82;
}

.philosophy-formula-copy p:last-child {
    margin-bottom: 0;
}

.philosophy-formula-copy .philosophy-lead {
    margin: 0 0 24px;
    color: rgba(255,255,255,.80);
    font-size: clamp(1.3rem,1.8vw,1.65rem);
    line-height: 1.55;
}

.philosophy-principles {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-top: 115px;
    gap: 20px
}

.philosophy-principle {
    min-height: 155px;
    padding: 52px 30px 32px;
    border: 3px solid rgba(205,160,90,.16);
    text-align: center;
    position: relative;
    border-radius: 8px;
    background: var(--kb-gold);
}
.philosophy-principle p{
    color: #6e3a0c;
}
.fp-icon-container{
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: center;
    position: absolute;
    top: -45px;
    left: 0;
}
.fp-icon-container .icon-circle{
    background-color: black;
    padding: 15px;
    width: 90px;
    height:90px;
    border-top-left-radius: 0;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border: 3px solid rgb(222, 189, 149);
    overflow: hidden;
    transform: rotate(45deg);
}
.fp-icon-container .icon-circle img{
    width: auto;
    height: 100%;
    transform: rotate(-45deg);
}


.philosophy-principle span {
    display: block;
    margin-bottom: 12px;
    color: #0c0c09;
    font-family: "Playfair Display",serif;
    font-size: 2.2rem;
}

.philosophy-principle p {
    margin: 0;
    font-size: 1.44rem;
    line-height: 1.2;
}

/* SCALP */

.philosophy-scalp-section {
    position: relative;
    padding: 115px 0 120px;
    overflow: hidden;
    background: radial-gradient(circle at 18% 45%,rgba(168,85,0,.08),transparent 29%),#2d2d27;
    color: #eee9e1;
    background-image: url(../img/pattern-trama.webp);
  background-size: 150px;
}

.philosophy-scalp-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px,calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,transparent,rgba(205,160,90,.19),transparent);
}

.philosophy-scalp-section .philosophy-image::before{
    background-image: url(../img/kalini-cura-cuoio-capelluto-dettaglio.webp);
    background-position:center;
    background-size: contain;
    top: 10%;
    right: 10%;
}

.philosophy-scalp-image::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 2;
    border: 1px solid rgba(210,163,94,.18);
    pointer-events: none;
}

.philosophy-scalp-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* CLOSING */

.philosophy-closing-section {
    position: relative;
    padding: 125px 0 135px;
    overflow: hidden;
    background: radial-gradient(circle at 72% 48%,rgba(168,85,0,.10),transparent 30%),#070706;
    color: #f2ede5;
}

.philosophy-closing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px,calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,transparent,rgba(205,160,90,.25),transparent);
}

.philosophy-closing {
    max-width: 900px;
}

.philosophy-closing h2 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: clamp(3.4rem,6vw,6.7rem);
    font-weight: 400;
    line-height: .97;
    color: #f2ede5;
}

.philosophy-closing h2 span {
    color: var(--kb-gold);
}

.philosophy-closing > p:not(.philosophy-eyebrow) {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.52);
    font-size: .98rem;
    line-height: 1.75;
}

.philosophy-closing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 36px;
}

.philosophy-closing-actions .philosophy-text-link {
    margin-top: 0;
}

/* HOVER */

@media (hover:hover) {
    .philosophy-image img,
    .philosophy-scalp-image img {
        transition: transform .8s cubic-bezier(.22,.61,.36,1);
    }

    .philosophy-feature:hover .philosophy-image img,
    .philosophy-scalp-section:hover .philosophy-scalp-image img {
        transform: scale(1.035);
    }
}

/* TABLET */

@media (max-width: 991.98px) {
    .philosophy-intro-section {
        padding: 90px 0 88px;
    }

    .philosophy-feature {
        padding: 88px 0 95px;
    }

    .philosophy-image,
    .philosophy-scalp-image {
        max-width: 560px;
        margin: 0 auto 20px;
    }

    .philosophy-copy {
        max-width: 700px;
        margin: 0 auto;
    }

    .philosophy-manifesto-section {
        padding: 100px 0;
    }

    .philosophy-formula-section {
        padding: 90px 0 100px;
    }

    .philosophy-formula-copy {
        margin-top: 15px;
    }

    .philosophy-principles {
        grid-template-columns: 1fr;
        margin-top: 65px;
    }

    .philosophy-principle {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(205,160,90,.16);
    }

    .philosophy-principle:last-child {
        border-bottom: 0;
    }

    .philosophy-scalp-section {
        padding: 88px 0 95px;
    }

    .philosophy-closing-section {
        padding: 95px 0 105px;
    }
}

/* MOBILE */

@media (max-width: 575.98px) {
    .philosophy-intro-section {
        padding: 68px 0 72px;
    }

    .philosophy-intro h2,
    .philosophy-copy h2,
    .philosophy-formula-heading h2 {
        font-size: clamp(2.45rem,11.5vw,3.5rem);
    }

    .philosophy-intro > p:last-child,
    .philosophy-copy > p:not(.philosophy-eyebrow):not(.philosophy-signature),
    .philosophy-formula-copy p {
        font-size: .92rem;
        line-height: 1.75;
    }

    .philosophy-feature {
        padding: 72px 0 78px;
    }

    .philosophy-image::before,
    .philosophy-scalp-image::before {
        inset: 8px;
    }

    .philosophy-signature {
        padding-left: 27px;
        font-size: 1.05rem;
    }

    .philosophy-manifesto-section {
        padding: 78px 0;
    }

    .philosophy-manifesto blockquote {
        font-size: clamp(3rem,14vw,4.8rem);
    }

    .philosophy-formula-section {
        padding: 72px 0 78px;
    }

    .philosophy-principles {
        margin-top: 90px;
        gap: 80px;
    }

    .philosophy-principle {
        padding: 53px 4px;
    }

    .philosophy-scalp-section {
        padding: 72px 0 78px;
    }

    .philosophy-closing-section {
        padding: 78px 0 88px;
    }

    .philosophy-closing h2 {
        font-size: clamp(3rem,14vw,4.8rem);
    }

    .philosophy-closing-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .philosophy-closing-actions .btn {
        width: 100%;
    }
}