/* ============================================================
   Cook Your Care — Landing istituzionale
   Palette:
     --cream          #F8F5F0
     --sage-dark      #1E3A2F
     --sage           #7A9E87
     --blue           #3B7DD8
     --peach          #E8C4B0
     --white          #FFFFFF
     --muted-text     #5A6B63
     --caption        #8A9990
   ============================================================ */

:root {
    --cream: #F8F5F0;
    --cream-2: #F1ECE3;
    --sage-dark: #1E3A2F;
    --sage: #7A9E87;
    --sage-soft: #A8C1B1;
    --blue: #3B7DD8;
    --peach: #E8C4B0;
    --white: #FFFFFF;
    --muted-text: #5A6B63;
    --caption: #8A9990;

    --font-serif: "Crimson Text", Georgia, "Times New Roman", serif;
    --font-sans: "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container: 1160px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(30, 58, 47, 0.04), 0 2px 8px rgba(30, 58, 47, 0.04);
    --shadow-md: 0 4px 16px rgba(30, 58, 47, 0.06), 0 12px 40px rgba(30, 58, 47, 0.06);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--sage-dark);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover,
a:focus-visible {
    color: var(--sage);
}

a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--sage-dark);
    margin: 0;
}

p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sage);
    margin: 0 0 20px;
}

.eyebrow--light {
    color: var(--peach);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 245, 240, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(30, 58, 47, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--cream);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.brand__mark--light {
    background: var(--peach);
    color: var(--sage-dark);
}

.brand__name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--sage-dark);
}

.site-nav {
    display: flex;
    gap: 32px;
}

.site-nav a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--muted-text);
}

.site-nav a:hover {
    color: var(--sage-dark);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 120px 0 140px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background:
        radial-gradient(circle at 85% 20%, rgba(122, 158, 135, 0.08), transparent 55%),
        radial-gradient(circle at 10% 80%, rgba(232, 196, 176, 0.18), transparent 50%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    max-width: 820px;
}

.hero__title {
    font-size: clamp(54px, 9vw, 120px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 0.98;
    margin: 0 0 24px;
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--sage);
    margin: 0 0 40px;
    line-height: 1.3;
}

.hero__lead {
    max-width: 640px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted-text);
}

.hero__decor {
    position: absolute;
    top: -20px;
    right: -40px;
    width: 260px;
    height: 260px;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    display: block;
}

.hero__shape--circle {
    top: 40px;
    right: 40px;
    width: 180px;
    height: 180px;
    border: 1px solid var(--sage-soft);
    border-radius: 50%;
    opacity: 0.6;
}

.hero__shape--line {
    top: 130px;
    right: 20px;
    width: 80px;
    height: 1px;
    background: var(--peach);
}

.hero__shape--dot {
    top: 70px;
    right: 120px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

/* ---------- Generic section ---------- */
.section {
    padding: 120px 0;
}

.section--muted {
    background: var(--cream-2);
    border-top: 1px solid rgba(30, 58, 47, 0.05);
    border-bottom: 1px solid rgba(30, 58, 47, 0.05);
}

.section__header {
    max-width: 680px;
    margin: 0 0 72px;
}

.section__title {
    font-size: clamp(32px, 4.5vw, 52px);
    margin: 0 0 20px;
}

.section__intro {
    font-size: 18px;
    color: var(--muted-text);
    line-height: 1.7;
}

/* ---------- Cards (cosa facciamo) ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid rgba(30, 58, 47, 0.06);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(122, 158, 135, 0.3);
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(122, 158, 135, 0.12);
    color: var(--sage);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.card:hover .card__icon {
    background: var(--sage);
    color: var(--cream);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

.card__title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 16px;
}

.card__text {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--muted-text);
}

/* ---------- Project (Cookit) ---------- */
.project {
    position: relative;
    padding: 120px 0;
    background: var(--sage-dark);
    color: var(--cream);
    overflow: hidden;
}

.project::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 50%, rgba(232, 196, 176, 0.08), transparent 40%),
        radial-gradient(circle at 5% 100%, rgba(59, 125, 216, 0.08), transparent 45%);
    pointer-events: none;
}

.project__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.project__content {
    max-width: 520px;
}

.project__title {
    font-size: clamp(48px, 6vw, 80px);
    color: var(--cream);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.project__text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(248, 245, 240, 0.75);
    margin: 0 0 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--blue);
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.button:hover,
.button:focus-visible {
    background: #2E6AC0;
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(59, 125, 216, 0.3);
}

.project__visual {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232, 196, 176, 0.35);
    width: 220px;
    height: 220px;
}

.project__ring--2 {
    width: 300px;
    height: 300px;
    border-color: rgba(122, 158, 135, 0.35);
    border-style: dashed;
}

.project__ring--3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(232, 196, 176, 0.25), transparent 70%);
    border: none;
}

.project__visual::after {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--peach);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 6px rgba(232, 196, 176, 0.15);
}

/* ---------- Info startup ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.info-block {
    background: var(--white);
    border: 1px solid rgba(30, 58, 47, 0.06);
    border-radius: var(--radius-md);
    padding: 32px;
}

.info-block--wide {
    grid-column: 1 / -1;
}

.info-block__title {
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(30, 58, 47, 0.08);
}

.info-block__text {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--muted-text);
}

.info-list {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    font-size: 15px;
}

.info-list dt {
    font-weight: 500;
    color: var(--caption);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-top: 4px;
}

.info-list dd {
    margin: 0;
    color: var(--sage-dark);
    line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--sage-dark);
    color: rgba(248, 245, 240, 0.75);
    padding: 80px 0 40px;
    font-size: 14.5px;
    line-height: 1.7;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(248, 245, 240, 0.1);
    margin-bottom: 48px;
}

.site-footer__tag {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--peach);
}

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col__title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--peach);
    margin: 0 0 16px;
}

.footer-col__body {
    font-style: normal;
    color: rgba(248, 245, 240, 0.7);
}

.footer-col__body strong {
    color: var(--cream);
    font-weight: 500;
}

.footer-col__body small {
    color: rgba(248, 245, 240, 0.5);
    font-size: 12.5px;
}

.footer-col__body a {
    color: var(--cream);
    border-bottom: 1px solid rgba(248, 245, 240, 0.25);
    transition: border-color 0.2s var(--ease);
}

.footer-col__body a:hover {
    color: var(--peach);
    border-color: var(--peach);
}

.site-footer__bottom {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(248, 245, 240, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12.5px;
    color: rgba(248, 245, 240, 0.5);
    line-height: 1.65;
}

.site-footer__bottom a {
    color: var(--peach);
}

.site-footer__bottom a:hover {
    color: var(--cream);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero {
        padding: 90px 0 100px;
    }

    .hero__decor {
        display: none;
    }

    .section {
        padding: 90px 0;
    }

    .section__header {
        margin-bottom: 56px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project {
        padding: 90px 0;
    }

    .project__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project__visual {
        height: 240px;
    }

    .project__ring {
        width: 180px;
        height: 180px;
    }

    .project__ring--2 {
        width: 240px;
        height: 240px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    .site-header__inner {
        height: 64px;
    }

    .site-nav {
        display: none;
    }

    .hero {
        padding: 64px 0 80px;
    }

    .hero__lead {
        font-size: 16.5px;
    }

    .section {
        padding: 72px 0;
    }

    .card {
        padding: 32px 24px;
    }

    .info-block {
        padding: 26px 22px;
    }

    .info-list {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .info-list dt {
        padding-top: 16px;
    }

    .info-list dt:first-of-type {
        padding-top: 0;
    }

    .site-footer {
        padding: 60px 0 32px;
    }

    .site-footer__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .site-footer__cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
