﻿:root {
    --bg: #f3f0ea;
    --bg-soft: #edf7fb;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #fffdf9;
    --khaki: #c58a4d;
    --khaki-deep: #8a5d26;
    --peru: #c58a4d;
    --peru-deep: #8a5d26;
    --peru-soft: #ebd1b1;
    --sky: #d3ecf8;
    --sky-strong: #9fcfe9;
    --sky-deep: #5b93b7;
    --ink: #2f3640;
    --muted: #5a6670;
    --white: #fff;
    --shadow: 0 18px 40px rgba(32, 40, 48, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(ellipse at 8% 12%, rgba(197, 138, 77, 0.08), transparent 28rem),
        radial-gradient(ellipse at 94% 38%, rgba(116, 184, 219, 0.1), transparent 30rem),
        linear-gradient(180deg, #f7f1e9 0%, #edf8fd 100%);
    color: var(--ink);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    background: linear-gradient(135deg, rgba(98, 71, 46, 0.96) 0%, rgba(197, 138, 77, 0.96) 38%, rgba(116, 184, 219, 0.96) 100%);
    color: var(--white);
    box-shadow: 0 16px 28px rgba(52, 62, 74, 0.12);
    transition: all 0.25s ease;
}

header.shrink {
    box-shadow: 0 10px 24px rgba(52, 62, 74, 0.16);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.45rem 1.5rem 1.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.96);
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(49, 43, 34, 0.14);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1;
    letter-spacing: 0.03em;
    font-weight: 900;
    text-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

header p {
    margin: 0.3rem 0 0;
    font-size: 1.03rem;
    color: rgba(255,255,255,0.9);
    opacity: 0.95;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

nav li { display: inline-flex; }

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--white);
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    transition: all 0.22s ease;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(49, 63, 71, 0.12), inset 0 -2px 0 rgba(255,255,255,0.72);
}

main {
    width: min(1120px, calc(100% - 2rem));
    margin: 2.2rem auto 4rem;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    align-items: center;
    gap: 1.4rem;
    padding: clamp(1.4rem, 2vw, 2.3rem);
    background:
        radial-gradient(ellipse at 94% 8%, rgba(197, 138, 77, 0.12), transparent 20rem),
        repeating-linear-gradient(0deg, rgba(140, 111, 78, 0.025) 0, rgba(140, 111, 78, 0.025) 1px, transparent 1px, transparent 5px),
        linear-gradient(135deg, rgba(255,255,255,0.94) 0%, rgba(232,243,250,0.96) 100%);
    border: 1px solid rgba(98, 109, 118, 0.08);
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 1.4rem;
}

.hero-panel::after {
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(138, 93, 38, 0.2);
    border-radius: 22px;
    content: "";
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 0.4rem 0.2rem;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(197, 138, 77, 0.12);
    color: var(--khaki-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h2 {
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.1;
    font-weight: 900;
}

.hero-copy p {
    max-width: 52ch;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.3rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 147, 183, 0.3);
    background: rgba(255,255,255,0.72);
    color: var(--ink);
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(91, 147, 183, 0.15);
}

.hero-aside {
    position: relative;
    z-index: 1;
    min-height: 350px;
    isolation: isolate;
}

.hero-photo {
    position: absolute;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(138, 93, 38, 0.15);
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 20px 40px rgba(66, 51, 34, 0.16);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.hero-photo-main {
    inset: 2% 15% 12% 4%;
    transform: rotate(-3deg);
}

.hero-photo-main img {
    object-position: center 47%;
}

.hero-photo-main figcaption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.92);
    color: var(--khaki-deep);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.hero-photo-detail {
    right: 0;
    bottom: 1%;
    width: 45%;
    height: 48%;
    transform: rotate(5deg);
}

.stitch-seal {
    position: absolute;
    top: 3%;
    right: 3%;
    display: grid;
    width: 86px;
    height: 86px;
    place-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    outline: 5px solid rgba(197, 138, 77, 0.9);
    background: var(--khaki);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.1;
    text-align: center;
    transform: rotate(9deg);
    box-shadow: 0 8px 18px rgba(66, 51, 34, 0.16);
}

.craft-note {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.6rem clamp(1.2rem, 2.4vw, 2.4rem);
    border: 1px dashed rgba(138, 93, 38, 0.35);
    border-radius: 26px;
    background: linear-gradient(110deg, rgba(255, 253, 249, 0.92), rgba(250, 241, 228, 0.9));
    box-shadow: 0 12px 28px rgba(66, 51, 34, 0.06);
}

.craft-note .craft-note-mark {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: rgba(197, 138, 77, 0.14);
    color: var(--khaki-deep);
    font-size: 1.7rem;
}

.craft-note .eyebrow {
    margin-bottom: 0.3rem;
}

.craft-note h2 {
    margin-bottom: 0.2rem;
    color: var(--ink);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.craft-note h2::before {
    display: none;
}

.craft-note p {
    color: var(--muted);
}

.photo-ribbon {
    display: grid;
    grid-template-columns: 1fr 0.82fr 1fr;
    align-items: center;
    gap: 1.2rem;
    margin: 1.6rem 0;
    padding: 1rem 0.3rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ribbon-photo,
.story-photo,
.photo-feature-image,
.contact-visual {
    position: relative;
    overflow: hidden;
    border: 8px solid #fffdf9;
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 16px 36px rgba(66, 51, 34, 0.14);
}

.ribbon-photo {
    height: 255px;
    transform: rotate(-2deg);
}

.ribbon-photo-machine {
    height: 220px;
    transform: rotate(2deg);
}

.ribbon-photo-bow {
    transform: rotate(-1deg);
}

.ribbon-photo img,
.story-photo img,
.photo-feature-image img,
.contact-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ribbon-photo-bib img { object-position: center 43%; }
.ribbon-photo-machine img { object-position: center 35%; }
.ribbon-photo-bow img { object-position: center 43%; }

.ribbon-photo figcaption,
.story-photo figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.93);
    color: var(--khaki-deep);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.story-layout,
.intro-prodotti {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.story-copy h2 {
    margin-bottom: 1rem;
}

.story-copy p + p {
    margin-top: 0.9rem;
}

.story-photo {
    height: 420px;
    margin: 0;
    transform: rotate(2deg);
}

.story-photo img { object-position: center 38%; }

.image-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem auto;
    padding: 1.3rem 2rem;
    border: 1px dashed rgba(138, 93, 38, 0.28);
    border-radius: 24px;
    background: rgba(255, 253, 249, 0.7);
}

.image-quote img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.image-quote p {
    max-width: 25ch;
    color: var(--khaki-deep);
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    line-height: 1.35;
}

.intro-prodotti {
    background:
        repeating-linear-gradient(0deg, rgba(140, 111, 78, 0.025) 0, rgba(140, 111, 78, 0.025) 1px, transparent 1px, transparent 5px),
        var(--panel);
}

.product-photo {
    width: min(100%, 360px);
    height: 390px;
    justify-self: center;
}

.photo-feature {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: 1.6rem clamp(1.2rem, 2.4vw, 2.4rem);
    border: 1px dashed rgba(138, 93, 38, 0.3);
    border-radius: 28px;
    background: linear-gradient(110deg, rgba(250, 241, 228, 0.9), rgba(237, 248, 253, 0.92));
    box-shadow: 0 12px 28px rgba(66, 51, 34, 0.06);
}

.photo-feature-image {
    height: 300px;
    margin: 0;
    transform: rotate(-2deg);
}

.photo-feature h2 {
    margin-bottom: 0.7rem;
    color: var(--ink);
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.2;
}

.photo-feature h2::before { display: none; }
.photo-feature p { margin-bottom: 1rem; color: var(--muted); }

.contact-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(1.3rem, 3vw, 2.5rem);
}

.contact-visual {
    width: min(100%, 430px);
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 2rem 0 3rem;
    transform: rotate(-2deg);
}

.contact-visual > img {
    object-fit: contain;
    object-position: center;
}

.contact-visual-copy {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.94);
}

.contact-visual-copy .eyebrow { margin-bottom: 0.4rem; }
.contact-visual-copy p { color: var(--ink); font-weight: 700; }
.contact-visual-copy a {
    display: block;
    color: var(--khaki-deep);
    font-weight: 800;
    text-align: center;
}
.contact-visual-copy a:hover { text-decoration: underline; }
.contact-visual-copy p {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}
.contact-visual-copy p strong { color: var(--khaki-deep); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.4rem;
}

.feature-card {
    background: var(--panel-strong);
    border-radius: 24px;
    padding: 1.4rem 1.2rem;
    border: 1px solid rgba(98, 109, 118, 0.08);
    box-shadow: 0 12px 28px rgba(38, 45, 49, 0.05);
}

.feature-card h3 {
    margin-bottom: 0.6rem;
    color: var(--ink);
    font-size: 1.35rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
}

section,
.contatti {
    background: var(--panel);
    border: 1px solid rgba(98, 109, 118, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 2rem clamp(1.2rem, 2.4vw, 2.4rem);
    margin-bottom: 1.6rem;
    animation: fadeInUp 0.55s ease both;
}

section h2 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
    font-weight: 900;
}

section h2::before {
    content: "";
    width: 6px;
    height: 1.6em;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--khaki) 0%, var(--sky-strong) 100%);
}

section p,
.contatti p {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.8;
}

section ul {
    list-style: none;
    display: grid;
    gap: .8rem;
    margin-top: .6rem;
}

section li {
    position: relative;
    padding-left: 2rem;
    font-weight: 700;
    color: var(--ink);
}

section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sky-deep);
    font-weight: 900;
}

.btn-primary, .btn-invia, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .92rem 1.7rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--sky-strong) 0%, var(--sky-deep) 100%);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(79, 131, 167, 0.18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-primary:hover, .btn-invia:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(79, 131, 167, 0.22);
}

.contatti {
    max-width: 760px;
    margin: 2rem auto 3rem;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: var(--khaki-deep);
}
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1.5px solid rgba(111, 99, 69, 0.18);
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky-deep);
    box-shadow: 0 0 0 4px rgba(91, 147, 183, 0.08);
}
.form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 800;
    color: var(--sky-deep);
}

footer {
    background: linear-gradient(180deg, #62563e 0%, #453b2d 100%);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 1.1rem 1rem;
    font-size: 0.95rem;
}

@keyframes fadeInUp {
    from { opacity:0; transform: translateY(20px); }
    to { opacity:1; transform: translateY(0); }
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 1.2rem;
    }
    .brand-block { align-items: center; }
    .brand-copy { align-items: center; }
    .brand-mark { width: 54px; height: 54px; }
    nav ul { gap: 0.5rem; }
    nav a { padding: 0.7rem 1rem; }
    .hero-panel { grid-template-columns: 1fr; }
    .hero-aside { min-height: 300px; margin: 0 0.25rem; }
    .hero-photo-main { inset: 2% 17% 12% 2%; }
    .hero-photo-main figcaption {
        right: 48px;
        left: 8px;
        padding: 0.55rem 0.45rem;
        font-size: 0.72rem;
        line-height: 1.25;
    }
    .hero-photo-detail { right: 0; width: 44%; height: 45%; }
    .stitch-seal { width: 72px; height: 72px; font-size: 0.78rem; }
    .craft-note { align-items: flex-start; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions a, .btn-primary, .btn-invia { width: 100%; }
    section, .contatti { border-radius: 22px; padding: 1.3rem 1rem; }
    .photo-ribbon {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    .ribbon-photo,
    .ribbon-photo-machine {
        height: 210px;
    }
    .ribbon-photo-machine { margin-top: 1rem; }
    .ribbon-photo-bow {
        grid-column: 1 / -1;
        width: 72%;
        height: 230px;
        justify-self: center;
    }
    .story-layout,
    .intro-prodotti,
    .photo-feature,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .story-photo { width: min(100%, 420px); height: 360px; justify-self: center; }
    .product-photo { width: min(100%, 340px); height: 340px; }
    .photo-feature-image { width: min(100%, 380px); height: 280px; justify-self: center; }
    .image-quote { gap: 0.7rem; padding: 1rem; }
    .image-quote img { width: 82px; height: 82px; }
    .contact-visual { width: min(100%, 360px); margin: 0 auto; }
    .contact-layout .contatti { width: 100%; max-width: none; margin: 0; }
}
