:root {
    --primary: #B58271;
    --body-text: #414042;
    --line: #F1E9E4;
    --card-bg: #FBF8F5;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--body-text);
    font-family: "Montserrat", sans-serif;
    -webkit-font-smoothing: antialiased;
}

main {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    overflow: hidden;
}

/* FOTO */

.hero {
    width: 100%;
    max-height: 560px;
    overflow: hidden;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
}

/* CONTENUTO */

.content {
    padding: 42px 28px 46px;
    text-align: center;
}

h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(25px, 7vw, 39px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.15;
}

.role {
    margin: 14px auto 0;
    max-width: 500px;
    color: var(--body-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.role .divider {
    color: var(--primary);
    padding: 0 4px;
}

.location {
    margin: 10px 0 0;
    color: var(--primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

h2 {
    max-width: 480px;
    margin: 30px auto 0;
    color: var(--primary);
    font-size: clamp(20px, 5.5vw, 27px);
    font-weight: 500;
    line-height: 1.35;
}

.contact-title {
    margin: 40px 0 20px;
    color: var(--body-text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

/* CARD */

.cards {
    display: grid;
    gap: 12px;
}

.card {
    display: grid;
    grid-template-columns: 46px 1fr 20px;
    align-items: center;
    min-height: 82px;
    padding: 14px 19px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: inherit;
    text-align: left;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(65, 64, 66, 0.08);
    background: #FFFDFC;
}

.card:active {
    transform: translateY(0);
}

.icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.icon img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.text h3 {
    margin: 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.text p {
    margin: 5px 0 0;
    color: var(--body-text);
    font-size: 11px;
    font-weight: 400;
}

.arrow {
    color: var(--primary);
    font-size: 29px;
    font-weight: 300;
    line-height: 1;
    text-align: right;
}

/* FOOTER */

footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.leaf {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-text {
    max-width: 410px;
    margin: 15px auto;
    color: var(--body-text);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}
@media (min-width: 621px) {
    .footer-text {
        white-space: nowrap;
        font-size: 11px;
    }
}

/* TABLET E DESKTOP */

@media (min-width: 621px) {
    body {
        padding: 30px 0;
        background: #F6F4F2;
    }

    main {
        background: var(--white);
        box-shadow: 0 12px 45px rgba(65, 64, 66, 0.08);
    }

    .content {
        padding: 48px 46px 52px;
    }
}

/* MOBILE PICCOLI */

@media (max-width: 380px) {
    .content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .card {
        grid-template-columns: 42px 1fr 18px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .text h3 {
        font-size: 13px;
    }
}

/* PRIVACY LINK (sulla pagina index)*/

.privacy-link {
    margin: 10px auto 0;
    text-align: center;
}

.privacy-link a {
    color: #B8B3B0;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.privacy-link a:hover {
    color: var(--primary);
}

/* PRIVACY PAGE */

.privacy-page {
    text-align: left;
    padding-top: 55px;
    padding-bottom: 55px;
}

.privacy-page h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: clamp(22px, 6vw, 32px);
}

.privacy-page h2 {
    margin: 0 0 20px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.privacy-page p {
    
    margin: 0 auto 18px;
    color: var(--body-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.9;
    text-align: left;
}

.privacy-page a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-page a:hover {
    opacity: 0.75;
}

.privacy-back {
    text-align: center !important;
    margin-top: 45px !important;
    font-size: 10px !important;
    letter-spacing: 0.05em;
}

.privacy-back a {
    color: #B8B3B0;
    text-decoration: none;
}

.privacy-back a:hover {
    color: var(--primary);
}

/* =========================
   SERVICES PAGE
========================= */

.services-page {
    text-align: left;
}

/* TOP */

.services-top {
    position: relative;
    min-height: 32px;
    margin-bottom: 10px;
}

.services-back {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    color: var(--primary);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
}

.leaf-head {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    object-fit: contain;
}

/* HEADER */

.services-header {
    margin-bottom: 30px;
    text-align: center;
}

.services-name {
    margin: 0;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    opacity: 0.5;
}

.services-quote {
    margin: 22px auto 0;
    color: var(--primary);
    font-size: 13px;
    font-weight: 300;
    font-family: "Montserrat", sans-serif;
    font-style: italic;
    line-height: 1.5;
}


/* INTRO */

.services-intro {
    margin-bottom: 30px;
}

.services-intro h2 {
    font-size: clamp(12px, 5vw, 19px);
    margin-top: 0;
    margin-left: 0;
    text-align: left;
}

.services-intro p {    
    color: var(--body-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.8;
}

/* PHASE */

.service-phase {
    margin-bottom: 30px;
}

.service-phase h2 {
    margin: 0 0 12px;
    font-size: clamp(12px, 5vw, 19px);
    font-weight: 500;
}

.phase-description {
    margin: 0 0 25px;
    color: var(--body-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.8;
}

/* SERVICE LIST */

.service-list {
    display: grid;
    gap: 9px;
}

/* SHORT HOMEPAGE-STYLE CARD */

.service-item {
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 3px;
}

/* BUTTON */

.service-button {
    display: grid;
    grid-template-columns: 38px 1fr 20px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px 19px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: "Montserrat", sans-serif;
    text-align: left;
    cursor: pointer;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--primary);
    line-height: 1;
}

.service-icon img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.service-title {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.service-arrow {
    color: var(--primary);
    font-size: 29px;
    font-weight: 300;
    line-height: 1;
    text-align: right;
    transition: transform 0.2s ease;
}

/* DESCRIPTION */

.service-description {
    max-height: 0;
    padding: 0 19px;
    overflow: hidden;
    color: var(--body-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease,
        opacity 0.25s ease;
}

/* OPEN */

.service-item.active .service-description {
    max-height: 150px;
    padding-bottom: 16px;
    opacity: 1;
}

.service-item.active .service-arrow {
    transform: rotate(90deg);
}

/* JOURNEY */

.journey {
    margin-top: 40px;
}

.journey h2 {
    margin-top: 0;
    margin-left: 0;
    font-size: clamp(12px, 5vw, 19px);
    text-align: left;
}

.journey p {
    
    margin: 10px 0 0;
    color: var(--body-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.9;
}

.courses {
    margin-top: 10px;
    text-align: left;
}

.courses p {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.7;
}
.courses p:not(:last-child)::after {
    content: "";
    display: block;
    width: 35px;
    height: 1px;
    margin-top: 10px;
    background: var(--primary);
}
.courses em {
    color: var(--body-text);
    font-weight: 600;
}

.courses span {
    color: var(--primary);
    font-size: 11px;
}

/* CONTACT */

.services-contact {
    margin-top: 40px;
}

.services-contact h2 {
    margin-top: 0;
    margin-left: 0;
    font-size: clamp(12px, 5vw, 19px);
    text-align: left;
}

.services-contact p {
    margin: 16px 0 0;
    color: var(--body-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.9;
}

.services-contact-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 20px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.services-contact-link:hover {
    background: var(--primary);
    color: var(--white);
}
