:root{--cream:#f7f2e9;--paper:#fffaf2;--ink:#201816;--wine:#651927;--green:#064d3d;--line:#d5c9bc}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Georgia,'Times New Roman',serif}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}.nav{height:78px;background:#0d0b0b;color:white;display:flex;align-items:center;gap:38px;padding:0 max(5vw,22px);position:sticky;top:0;z-index:40}.brand,.footer-brand{font-size:39px;font-style:italic;line-height:.8;min-width:160px}.brand small,.footer-brand small{display:block;font-size:11px;font-style:normal;margin-top:10px;letter-spacing:.03em}.nav nav{display:flex;align-items:center;gap:30px;margin:auto;font-size:13px}.nav nav a:hover,.nav nav a:first-child{color:#c26976}.nav-right{display:flex;align-items:center;gap:8px}.nav-right button,.menu-toggle{background:none;color:white;border:0;cursor:pointer}.nav-right button{font-size:12px}.nav-right button.active{color:#e1a0aa}.nav-right #searchToggle{font-size:26px;margin-left:12px}.menu-toggle{display:none;font-size:24px}.search-panel{display:none;position:fixed;top:78px;left:0;right:0;z-index:50;background:#191515;padding:15px 8%;gap:15px}.search-panel.open{display:flex}.search-panel input{width:100%;padding:13px;background:#fff;border:0}.search-panel button{background:none;color:#fff;border:0;font-size:28px;cursor:pointer}.hero{min-height:630px;position:relative;color:white;display:flex;align-items:center;background:#100e0c url('assets/photos/tagliatelle.jpg') center 53%/cover no-repeat}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.91),rgba(0,0,0,.60) 39%,rgba(0,0,0,.08) 80%)}.hero-content{position:relative;max-width:650px;margin-left:9%;padding:80px 0}.eyebrow{font-size:12px;letter-spacing:.14em;font-weight:bold}.eyebrow.light{color:#e4d6cc}.hero h1{font-size:clamp(57px,7vw,106px);font-weight:normal;line-height:.96;margin:25px 0}.hero h1 em{font-weight:normal}.hero-content>p:not(.eyebrow){font-size:23px;max-width:370px;line-height:1.4}.button{display:inline-block;padding:16px 27px;color:white;font-size:14px;margin-top:18px}.wine{background:var(--wine)}.wine:hover{background:#882e40}.down{position:absolute;bottom:22px;left:50%;font-size:40px}.category-strip{display:grid;grid-template-columns:repeat(3,1fr);background:#f8f0e6;padding:28px 7%;border-bottom:1px solid var(--line)}.category-strip a{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;color:#632332;font-size:17px}.category-strip a+a{border-left:1px solid #c9b9ad}.category-icon{font-size:43px;line-height:1}.section{padding:95px max(8%,24px)}.story{display:grid;grid-template-columns:1fr 1fr;gap:9%;align-items:center;min-height:610px}.story-copy h2,.catalog-intro h2{font-size:clamp(52px,6vw,84px);line-height:1.02;color:var(--wine);font-weight:normal;font-style:italic;margin:16px 0 25px}.story-copy p:not(.eyebrow){font-size:19px;line-height:1.7;max-width:500px}.story-photo{height:530px;border-radius:14px;background:url('assets/photos/tortelloni-di-ricotta.jpg') center/cover}.favorites{text-align:center;padding-top:65px;padding-bottom:75px}.favorites h2{font-size:43px;font-weight:normal;font-style:italic;color:var(--wine);margin:10px 0 36px}.fav-grid{display:grid;grid-template-columns:repeat(3,1fr);max-width:1150px;margin:auto}.fav-grid a{display:flex;flex-direction:column;align-items:center;padding:0 22px}.fav-grid a+a{border-left:1px solid var(--line)}.fav-grid img{width:100%;height:205px;object-fit:contain;mix-blend-mode:multiply;border-radius:8px}.fav-grid strong{font-size:23px;margin-top:15px}.fav-grid span{color:var(--wine);font-size:20px;font-weight:bold;margin-top:8px}.catalog-banner{min-height:340px;background:linear-gradient(90deg,rgba(0,0,0,.92),rgba(0,0,0,.2)),url('assets/photos/lasagne.jpg') center/cover;display:flex;align-items:center;color:white;padding:40px 8%}.catalog-banner h2{font-size:49px;line-height:1.05;font-style:italic;font-weight:normal;margin:8px 0}.catalog-banner p:not(.eyebrow){font-size:16px}.catalog-intro{text-align:center;padding-bottom:48px}.catalog-intro h2{font-size:57px}.catalog-intro>p:last-of-type{font-size:17px}.catalog-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin-top:25px}.catalog-nav a{border:1px solid #7d3846;color:var(--wine);padding:12px 22px}.catalog-nav a:hover{background:var(--wine);color:white}.catalog-section{padding:65px max(7%,24px) 80px;background:var(--paper)}.catalog-section:nth-of-type(even){background:var(--cream)}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:190px;border-bottom:1px solid #b5a89c;margin-bottom:8px}.catalog-heading h2{font-size:clamp(42px,5vw,69px);font-style:italic;font-weight:normal;margin:5px 0 12px}.catalog-heading p{margin:0 0 15px}.catalog-heading img{height:175px;width:290px;object-fit:cover;border-radius:7px;mask-image:linear-gradient(90deg,transparent,#000 20%)}.product-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(200px,1.2fr) minmax(205px,.9fr);align-items:center;gap:24px;min-height:260px;padding:27px 0;border-bottom:1px solid #b8aca1}.product-info h3{font-size:25px;margin:0 0 13px}.product-info p{font-size:15px;line-height:1.5;color:#625b54;max-width:300px}.product-photo{height:215px;width:100%;object-fit:cover;border-radius:8px}.product-order{border-left:1px solid #cfc2b6;padding-left:30px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.product-detail{color:#675d54;font-size:14px}.product-price{color:#ad3148;font-size:24px;font-weight:bold}.product-price small{font-size:16px;color:#5e514b}.wa-button{background:var(--green);border:0;border-radius:30px;color:white;padding:12px 19px;cursor:pointer;font-size:13px;white-space:nowrap}.wa-button:hover{background:#0b745d}.contact{display:grid;grid-template-columns:1fr 1fr;gap:8%;padding:75px 8%;background:linear-gradient(90deg,#090909 35%,rgba(0,0,0,.78)),url('assets/photos/tigelle.jpg') center/cover;color:#fff}.contact h2{font-size:58px;font-style:italic;font-weight:normal;margin:12px 0}.contact p{font-size:18px;line-height:1.5}.contact address{font-size:16px;font-style:normal;line-height:1.8}.contact-photo{min-height:250px;background:transparent}.whatsapp{background:var(--green)}.faq{max-width:1050px;margin:auto}.faq h2{font-size:42px;font-weight:normal}.faq details{border-bottom:1px solid var(--line);padding:18px 0}.faq summary{cursor:pointer;font-size:19px}.faq details p{line-height:1.6}footer{background:#090909;color:white;padding:35px 8%;display:flex;align-items:center;justify-content:space-between;gap:30px;font-size:12px}.footer-brand{font-size:30px}.floating-wa{position:fixed;bottom:25px;right:25px;z-index:30;background:#07855f;color:white;border:3px solid #fff;border-radius:50%;width:55px;height:55px;display:grid;place-items:center;font-size:29px;box-shadow:0 4px 15px #0004}.order-modal{position:fixed;inset:0;z-index:80;background:#0009;display:none;align-items:center;justify-content:center;padding:20px}.order-modal.open{display:flex}.modal-box{background:var(--paper);padding:34px;width:min(460px,100%);position:relative;box-shadow:0 20px 70px #0006}.modal-box h2{font-style:italic;font-weight:normal;font-size:35px;margin:0 0 12px}.modal-box p{line-height:1.5}.modal-box label{display:block;margin:18px 0 8px}.modal-box input{padding:13px;width:100%;border:1px solid #c4b6a7;background:white}.modal-box .wa-button{margin-top:20px;width:100%;font-size:15px}.close-modal{position:absolute;right:14px;top:10px;border:0;background:none;font-size:30px;cursor:pointer}.modal-total{font-size:20px;color:var(--wine);margin-top:15px}@media(max-width:850px){.nav{height:65px;padding:0 18px;gap:15px}.brand{font-size:31px;min-width:0;margin-right:auto}.brand small{font-size:9px}.menu-toggle{display:block;order:3}.nav nav{display:none;position:absolute;top:65px;left:0;right:0;background:#141010;flex-direction:column;align-items:stretch;padding:20px;gap:20px}.nav nav.open{display:flex}.nav-right{order:2}.search-panel{top:65px}.hero{min-height:550px}.hero-content{margin-left:7%;margin-right:7%}.story{grid-template-columns:1fr;gap:30px}.story-photo{height:390px}.section{padding:65px 6%}.product-row{grid-template-columns:1fr 1fr;gap:14px}.product-info{grid-column:1/3}.product-photo{height:200px}.product-order{padding-left:18px}.contact{grid-template-columns:1fr}.contact-photo{display:none}footer{flex-wrap:wrap}.catalog-heading img{width:190px}}@media(max-width:560px){.nav{gap:7px}.nav-right #searchToggle{margin-left:0}.hero{min-height:500px;background-position:65% center}.hero h1{font-size:59px}.hero-content>p:not(.eyebrow){font-size:19px}.category-strip{padding:20px 5%}.category-strip a{font-size:12px}.category-icon{font-size:31px}.story-copy h2{font-size:56px}.fav-grid{gap:0}.fav-grid a{padding:0 7px}.fav-grid img{height:105px}.fav-grid strong{font-size:15px}.fav-grid span{font-size:13px}.catalog-banner h2{font-size:39px}.catalog-heading{min-height:155px}.catalog-heading img{width:120px;height:115px}.catalog-heading h2{font-size:39px}.product-row{display:block;padding:23px 0}.product-info h3{font-size:23px}.product-photo{height:190px;margin:10px 0}.product-order{border:0;padding:0;gap:8px}.wa-button{font-size:12px;padding:11px 13px}.contact h2{font-size:45px}}

/* Official Naffi logo */
.brand{display:flex;align-items:center;min-width:165px;line-height:normal}.brand img{display:block;width:165px;height:70px;object-fit:fill;border-radius:50%;}.footer-brand{min-width:130px}.footer-brand img{display:block;width:145px;height:82px;object-fit:fill;border-radius:50%}@media(max-width:850px){.brand{min-width:0}.brand img{width:119px;height:54px}.nav{height:72px}.nav nav{top:72px}.search-panel{top:72px}}

/* Refined Naffi logo */
.brand img{width:155px;height:auto;max-height:67px;object-fit:contain;border-radius:0;background:white}
.footer-brand img{width:155px;height:auto;max-height:80px;object-fit:contain;border-radius:0;background:white}
@media(max-width:850px){.brand img{width:112px;height:auto;max-height:56px}}

/* Offline-ready category illustrations and genuine WhatsApp vector asset */
.category-icon{display:flex;align-items:center;justify-content:center;width:68px;height:59px}
.category-icon img{width:62px;height:54px;object-fit:contain}
.wa-icon{width:18px;height:18px;display:inline-block;vertical-align:-4px;margin-right:5px;filter:brightness(0) invert(1)}
.wa-button{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.floating-wa img{width:33px;height:33px;filter:brightness(0) invert(1)}
.catalog-heading img{object-fit:cover}
@media(max-width:560px){.category-icon{width:49px;height:47px}.category-icon img{width:46px;height:43px}}

.catalog-section { scroll-margin-top: 78px; }
.catalog-empty { text-align: center; padding: 45px; }
.product-available { color: var(--green); }
.product-detail span { margin-right: 4px; }
.wa-button .wa-icon { flex: 0 0 18px; }
.category-icon img { display: block; width: 52px; height: 38px; }
@media (max-width: 560px) {
    .category-icon img { width: 42px; height: 32px; }
}

/* The pasta-making photo story */
.hero-journey-link {
    display: block;
    width: fit-content;
    margin-top: 14px;
    padding: 5px 0;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .3em;
}
.pasta-journey {
    padding: clamp(54px, 7vw, 104px) max(6%, 24px);
    background: #271914;
    color: #f8efe2;
    scroll-margin-top: 78px;
}
.pasta-journey-intro, .pasta-journey-end { text-align: center; }
.pasta-journey h2 {
    margin: 0 0 clamp(38px, 6vw, 80px);
    font-size: clamp(46px, 7vw, 92px);
    line-height: 1;
    font-weight: normal;
}
.pasta-journey h2 em { color: #e6be85; font-weight: normal; }
.pasta-chapter {
    max-width: 1260px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 68px) 0;
    border-top: 1px solid #735746;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
    gap: clamp(20px, 5vw, 76px);
    align-items: center;
}
.pasta-chapter:nth-of-type(even) {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
}
.pasta-chapter:nth-of-type(even) .pasta-chapter-copy { grid-column: 2; grid-row: 1; }
.pasta-chapter:nth-of-type(even) .pasta-chapter-photos { grid-column: 1; grid-row: 1; }
.pasta-chapter h3 {
    margin: 0 0 12px;
    color: #e6be85;
    font-weight: normal;
    font-style: italic;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.05;
}
.pasta-chapter p { max-width: 36ch; margin: 0; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; }
.pasta-chapter-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pasta-chapter-photos img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.pasta-chapter-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.pasta-chapter-photos img:nth-child(2):last-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
.pasta-journey-end .button { background: #862b40; }
.pasta-journey-end .button:hover { background: #a44255; }
@media (max-width: 700px) {
    .pasta-journey { scroll-margin-top: 72px; }
    .pasta-chapter, .pasta-chapter:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
    .pasta-chapter:nth-of-type(even) .pasta-chapter-copy,
    .pasta-chapter:nth-of-type(even) .pasta-chapter-photos { grid-area: auto; }
    .pasta-chapter-photos img:first-child { aspect-ratio: 4 / 3; }
    .pasta-chapter-photos img:nth-child(2):last-child { aspect-ratio: 2 / 1; }
}
@media (prefers-reduced-motion: no-preference) {
    .pasta-chapter.is-revealed .pasta-chapter-photos {
        animation: pasta-photo-reveal 680ms ease-out both;
    }
}
@keyframes pasta-photo-reveal {
    from { opacity: .45; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Live results below the search field. */
.search-panel.open { display: block; }
.search-field { display: flex; align-items: center; gap: 12px; }
.search-field input { min-width: 0; font-size: 16px; }
.search-field button { flex: 0 0 44px; min-height: 44px; }
.search-status { margin: 10px 0 7px; color: #f7f2e9; font-size: 14px; }
.search-status:empty { display: none; }
.search-results {
    max-height: 48vh;
    max-height: min(48dvh, 330px);
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--paper);
    border-radius: 6px;
}
.search-results li + li { border-top: 1px solid var(--line); }
.search-result {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}
.search-result:hover, .search-result:focus-visible { background: var(--cream); }
.search-result:focus-visible { outline: 2px solid var(--wine); outline-offset: -2px; }
.search-result img { object-fit: cover; border-radius: 4px; }
.search-result-name { overflow-wrap: anywhere; }
.search-result-price { color: var(--wine); font-size: 14px; font-weight: bold; }
.product-row[id] { scroll-margin-top: 86px; }
@media (max-width: 420px) {
    .search-panel { padding-inline: 14px; }
    .search-result { gap: 8px; padding-inline: 8px; }
}
