/* ============================================================
   PERNA CREATIVE STUDIO — styles.css (Pulito e Unificato)
   ============================================================ */

/* ---------- 01. Import & variabili ---------- */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap");

:root {
  --sage: #c6d1b1;
  --sage-deep: #899778;
  --taupe: #b9ac90;
  --cream: #fffbf8;
  --ink: #282a24;
  --muted: #77766d;
  --line: rgba(91, 91, 73, 0.19);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

/* ---------- 02. Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, blockquote { font-family: var(--serif); font-weight: 400; letter-spacing: -0.045em; }
h1 { font-size: clamp(50px, 6vw, 83px); line-height: 1.04; margin: 24px 0 22px; }
h1 em, h2 em, blockquote em { color: #9e9278; font-weight: 400; }

.eyebrow, .section-index { font-size: 9px; letter-spacing: 0.19em; color: var(--muted); text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { height: 1px; width: 28px; background: var(--taupe); }
.form-note { font-size: 10px; color: var(--muted); margin-top: 13px; }

/* ---------- 03. Header / announcement / nav ---------- */
.announcement { height: 29px; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 9px; letter-spacing: 0.16em; }
.announcement span { color: var(--sage); font-size: 13px; }
.announcement i { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px #c6d1b126; }
.site-header { height: 86px; padding: 0 6.5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255, 251, 248, 0.94); backdrop-filter: blur(14px); z-index: 20; }
.site-header.scrolled { box-shadow: 0 6px 20px #282a240f; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 170px; }
.logo-frame { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; border-radius: 50%; background: #fffdfa; border: 1px solid #b9ac9080; box-shadow: 0 0 0 4px #b9ac9020, 0 7px 20px #282a2414; transition: transform 0.5s, box-shadow 0.4s; }
.brand:hover .logo-frame { transform: rotate(-8deg) scale(1.05); box-shadow: 0 0 0 7px #c6d1b14a, 0 10px 25px #282a241a; }
.logo-frame img { width: 100%; height: 100%; padding: 3px; object-fit: contain; border-radius: 50%; mix-blend-mode: multiply; }
.brand-wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: 0.17em; line-height: 1.05; }
.brand-wordmark small { display: block; font: 8px var(--sans); letter-spacing: 0.23em; margin-top: 7px; color: var(--muted); }
.desktop-nav { display: flex; gap: 35px; font-size: 12px; }
.desktop-nav a, .footer a { transition: color 0.25s; }
.desktop-nav a:hover, .footer a:hover { color: var(--sage-deep); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.search-trigger { border: 0; background: none; cursor: pointer; color: var(--ink); display: flex; gap: 6px; align-items: center; }
.search-flower { font-size: 18px; color: #9e9278; }
.client-link { border: 1px solid var(--taupe); padding: 10px 17px; font-size: 11px; transition: 0.3s; border-radius: 999px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 20px; }

/* ---------- 04. Hero ---------- */
.hero { min-height: 690px; padding: 76px 8% 60px; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; position: relative; overflow: hidden; gap: 2%; }
.hero:before { content: ""; position: absolute; width: 480px; height: 480px; right: -180px; top: -170px; background: radial-gradient(circle, #c6d1b142, transparent 68%); border-radius: 50%; animation: pernaBreathe 8s ease-in-out infinite; }
.hero-copy { max-width: 560px; position: relative; z-index: 2; }
.hero-description { max-width: 400px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-buttons { display: flex; align-items: center; gap: 25px; margin-top: 30px; }
.hero-proof { display: flex; gap: 10px; align-items: center; margin-top: 38px; color: var(--muted); font-size: 10px; }
.hero-proof span { font-size: 17px; color: var(--sage-deep); }
.hero-quicklinks { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.hero-quicklinks a { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 7px; transition: transform 0.3s, color 0.3s; }
.hero-quicklinks a:hover { color: var(--ink); transform: translateY(-3px); }
.hero-art { height: 455px; position: relative; margin-left: 10px; animation: pernaRise 1.1s 0.12s both; }
.art-image { position: absolute; inset: 20px 35px 22px 38px; background: linear-gradient(180deg, #c6d1b11c, #282a243d), url("assets/hero-mountains.jpg") center 52% / cover; border-radius: 48% 48% 5px 5px; filter: saturate(0.6); box-shadow: 0 18px 55px #776e5620; animation: pernaImageFloat 8s ease-in-out infinite; }
.art-image:after { content: ""; position: absolute; inset: 0; background: #c6d1b11c; border-radius: inherit; }
.art-orbit { position: absolute; border: 1px solid var(--taupe); border-radius: 50%; pointer-events: none; animation: pernaOrbit 30s linear infinite; }
.orbit-one { inset: 0 6px 0 8px; transform: rotate(-9deg); }
.orbit-two { inset: 8px 0 7px 15px; transform: rotate(12deg); border-color: #c6d1b180; animation-direction: reverse; }
.art-caption { position: absolute; bottom: 0; left: 40px; right: 35px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 0.13em; color: var(--muted); }
.floating-stamp { position: absolute; right: -3px; top: 55px; width: 91px; height: 91px; background: var(--sage); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; font-size: 25px; line-height: 1.2; box-shadow: 0 8px 24px #282a2414; animation: pernaFloat 5s ease-in-out infinite; }
.floating-stamp small { font-size: 7px; letter-spacing: 0.15em; text-align: center; }
.hero-side-note { position: absolute; right: 20px; top: 47%; writing-mode: vertical-rl; font-size: 8px; letter-spacing: 0.2em; color: var(--muted); }
.scroll-cue { position: absolute; bottom: 25px; left: 8%; font-size: 8px; letter-spacing: 0.17em; color: var(--muted); }

/* ---------- 05. Marquee ---------- */
.marquee { overflow: hidden; background: var(--sage); padding: 16px 0; white-space: nowrap; display: flex; }
.marquee-content { display: flex; animation: marquee-scroll 30s linear infinite; }
.marquee-content span { font-size: 10px; letter-spacing: 0.18em; padding-right: 20px; display: inline-block; }
.marquee-content b { color: #8c927d; padding: 0 28px; font-weight: normal; }
.marquee:hover .marquee-content { animation-play-state: paused; }

/* ---------- 06. Intro / studio ---------- */
.section-pad { padding: 105px 9%; }
.intro { display: grid; grid-template-columns: 0.7fr 2fr; gap: 25px; position: relative; overflow: hidden; }
.intro .section-index, .section-heading .section-index { padding-top: 9px; }
.intro-content { max-width: 760px; position: relative; z-index: 1; }
.intro h2, .section-heading h2, .audience h2, .cta-band h2 { font-size: clamp(37px, 4.5vw, 59px); line-height: 1.2; margin: 17px 0 30px; }
.intro-bottom { display: flex; align-items: flex-end; gap: 45px; max-width: 670px; }
.intro-bottom p { max-width: 500px; color: var(--muted); line-height: 1.95; margin: 0; }
.round-link { flex: 0 0 51px; height: 51px; border: 1px solid var(--taupe); border-radius: 50%; display: grid; place-items: center; font-size: 20px; transition: 0.3s; }
.round-link:hover { background: var(--sage); transform: rotate(45deg); }
.botanical-mark { position: absolute; right: 2%; bottom: -80px; font-size: 240px; color: #c6d1b12b; }
.micro-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; font-size: 10px; color: var(--muted); }

/* ---------- 07. Services ---------- */
.services { background: #f5f2eb; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 45px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 280px; color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 5px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { padding: 27px 26px 28px; min-height: 230px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; cursor: pointer; transition: background 0.45s, transform 0.45s, box-shadow 0.45s, border-radius 0.45s; }
.service-card:before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #c6d1b17a, transparent 70%); right: -100px; bottom: -120px; transform: scale(0.45); transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1); }
.service-card:after { content: ""; position: absolute; left: var(--mx, 80%); top: var(--my, 80%); width: 115px; height: 115px; border: 1px solid #b9ac9040; border-radius: 50%; transform: translate(-50%, -50%) scale(0.45); opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.45s; }
.service-card:hover { background: #fffdfa; transform: translateY(-7px); box-shadow: 0 18px 38px #282a2414; border-radius: 4px; z-index: 1; }
.service-card:hover:before { transform: scale(1.8); }
.service-card:hover:after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.service-no { font-size: 9px; color: var(--muted); letter-spacing: 0.12em; }
.service-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 16px 0 10px; font-size: 26px; color: #9e9278; transition: transform 0.45s, background 0.35s, border-radius 0.35s; }
.service-card:hover .service-icon { transform: rotate(-12deg) scale(1.06); background: var(--sage); border-radius: 14px; }
.service-card h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin-bottom: 8px; position: relative; }
.service-card p { font-size: 11px; color: var(--muted); max-width: 250px; line-height: 1.8; margin: 0; position: relative; }
.card-arrow { position: absolute; right: 25px; top: 25px; font-size: 11px; letter-spacing: 0.08em; opacity: 0; transform: translate(-5px, 5px); transition: 0.3s; }
.service-card:hover .card-arrow { opacity: 1; transform: none; }

/* ---------- 08. Prezzi (Home e Contatti) ---------- */
.pricing-section { background: var(--cream); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pricing-card { background: #fffdfa; border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px #282a2410; }
.pricing-card-dark { background: var(--ink); color: var(--cream); border: none; position: relative; transform: scale(1.02); }
.pricing-card-dark:hover { transform: scale(1.02) translateY(-5px); }
.badge-popular { position: absolute; top: -12px; right: 24px; background: var(--sage); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 20px; }
.pricing-card h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 10px 0 5px; }
.pricing-sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 20px; }
.pricing-desc { font-size: 12px; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.pricing-price { background: #e9eddf; border-radius: 8px; padding: 15px 20px; display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 25px; align-self: flex-start; }
.pricing-price .amount { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.pricing-price .period { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 25px 0; flex-grow: 1; }
.pricing-features li { font-size: 12px; padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--line); }
.pricing-features li:before { content: "✓"; position: absolute; left: 0; color: var(--sage-deep); font-weight: bold; }
.pricing-card-dark .pricing-features li { border-bottom-color: #ffffff1a; }
.pricing-card-dark .pricing-features li:before { color: var(--sage); }
.pricing-note { font-size: 10px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; padding-top: 15px; border-top: 1px dashed var(--line); }

/* Banner Pagina Contatti */
.form-banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }
.form-banner { background: #fffdfa; border: 1px solid var(--line); border-radius: 12px; padding: 25px; text-align: left; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; display: flex; flex-direction: column; }
.form-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #282a2410; border-color: var(--sage); }
.banner-title { font-family: var(--serif); font-size: 24px; margin-bottom: 5px; }
.banner-price { font-size: 12px; font-weight: 600; color: var(--sage-deep); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.banner-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 09. Local growth ---------- */
.local-growth { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; background: #e9eddf; }
.local-copy h2 { font-size: clamp(37px, 4.5vw, 59px); line-height: 1.2; margin: 17px 0 24px; }
.local-lead { font-family: var(--serif); font-size: 22px; line-height: 1.5; max-width: 440px; }
.local-body { color: var(--muted); line-height: 1.9; max-width: 460px; margin-bottom: 28px; }
.local-step { display: grid; grid-template-columns: 42px 1fr 28px; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); transition: padding 0.35s, background 0.35s; }
.local-step:hover { padding-left: 10px; background: linear-gradient(90deg, #c6d1b124, transparent); }
.step-number { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); padding-top: 6px; }
.local-step h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.local-step p { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 0; }
.step-symbol { font-size: 20px; color: #9e9278; }

/* ---------- 10. Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-card { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background 0.35s, transform 0.35s; }
.process-card:hover { transform: translateY(-5px); background: #f5f2eb; }
.process-card span { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); }
.process-card h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 12px 0 8px; }
.process-card p { font-size: 11px; color: var(--muted); margin: 0; }

/* ---------- 11. Quote & CTA ---------- */
.quote-section { padding: 100px 20px; text-align: center; background: var(--sage); position: relative; overflow: hidden; }
.quote-leaf { font-size: 35px; color: #858f75; }
.quote-section .eyebrow { justify-content: center; margin: 20px 0; }
.quote-section blockquote { font-size: clamp(35px, 5vw, 60px); line-height: 1.28; margin: 24px 0; }
.quote-sub { font-size: 11px; color: #626956; margin-bottom: 28px; }
.cta-band { margin: 0 6%; padding: 52px 5%; background: #f1eee6; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.cta-band h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-email { font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--taupe); padding-bottom: 4px; }

/* ---------- 12. Footer ---------- */
.footer { padding: 65px 8% 22px; background: var(--ink); color: var(--cream); margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding-bottom: 48px; }
.footer-brand .logo-frame { background: var(--cream); }
.footer-brand > span { color: var(--cream); }
.footer-top > p { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: #d2c9b6; }
.footer-manifesto p { font-family: var(--serif); font-size: 27px; line-height: 1.45; color: #d2c9b6; }
.footer-manifesto em { color: var(--sage); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }
.footer-contact > span { font-size: 9px; letter-spacing: 0.2em; color: var(--sage); margin-bottom: 6px; }
.footer-contact a { transition: transform 0.3s, color 0.3s; }
.footer-contact a:hover { transform: translateX(4px); color: var(--sage); }
.footer-bottom { border-top: 1px solid #ffffff2b; padding-top: 17px; display: flex; justify-content: space-between; gap: 15px; color: #c2c0b8; font-size: 9px; }

/* ---------- 13. Search panel ---------- */
.search-panel { position: fixed; z-index: 50; top: 115px; left: 0; right: 0; background: var(--cream); padding: 24px 8% 30px; box-shadow: 0 18px 35px #282a241a; border-bottom: 1px solid var(--line); max-height: 75vh; overflow: auto; }
.search-panel[hidden] { display: none !important; }
.search-inner { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--taupe); padding: 10px 0; }
.flower { font-size: 24px; color: #9e9278; }
.search-inner input { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--serif); font-size: 23px; color: var(--ink); }
.search-inner button { border: 0; background: none; font-size: 25px; cursor: pointer; }
.search-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding-top: 17px; }
.search-results a, .search-results .result { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; font-size: 11px; transition: background 0.3s, transform 0.3s; }
.search-results a:hover, .search-results .result:hover { background: var(--sage); transform: translateY(-3px); }
.result strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.result span { font-size: 11px; color: var(--muted); }
.result em { font-style: normal; font-size: 10px; margin-top: 4px; }

/* ---------- 14. Toast & Cookie ---------- */
.toast { position: fixed; bottom: 25px; right: 25px; z-index: 70; background: var(--ink); color: white; padding: 12px 18px; border-radius: 5px; font-size: 12px; opacity: 0; transform: translateY(8px); transition: 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.cookie-note { position: fixed; bottom: 14px; left: 14px; z-index: 40; display: flex; align-items: center; gap: 15px; background: #fffdfa; border: 1px solid var(--line); padding: 10px 13px; border-radius: 4px; box-shadow: 0 5px 20px #282a2410; font-size: 10px; max-width: 90vw; }
.cookie-note[hidden] { display: none; }
.cookie-note button { border: 0; background: var(--sage); padding: 7px 11px; cursor: pointer; white-space: nowrap; border-radius: 20px; }
.floating-contact { position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 62px; height: 62px; border-radius: 50%; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 28px #282a2430; transition: transform 0.35s, border-radius 0.35s; }
.floating-contact small { font-size: 6px; letter-spacing: 0.12em; }
.floating-contact:hover { transform: translateY(-5px) rotate(-7deg); border-radius: 20px; }

/* ---------- 15. Pagine interne (Auth, Form, Dashboard) ---------- */
.page-hero { padding: 78px 9% 62px; background: #f5f2eb; }
.page-hero h1 { font-size: clamp(43px, 6vw, 72px); margin: 15px 0; }
.page-hero p { max-width: 570px; color: var(--muted); line-height: 1.9; }
.page-layout { padding: 65px 9% 100px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 65px; }
.form-card { background: #fffdfa; border: 1px solid var(--line); padding: 32px; }
.form-card h2 { font-family: var(--serif); font-weight: 400; font-size: 29px; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; letter-spacing: 0.08em; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--cream); padding: 13px 12px; outline: none; width: 100%; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 3px #c6d1b12e; }
.field textarea { min-height: 120px; resize: vertical; }
.auth-wrap { max-width: 470px; margin: 65px auto 95px; padding: 0 20px; }
.auth-box { border: 1px solid var(--line); background: #fffdfa; padding: 34px; }
.auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button { background: none; border: 0; padding: 0 0 12px; cursor: pointer; color: var(--muted); font-size: 12px; }
.auth-tabs button.active { color: var(--ink); border-bottom: 2px solid var(--taupe); }
.auth-box .button { width: 100%; border: 0; cursor: pointer; margin-top: 8px; }
.dashboard { padding: 45px 8% 90px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 35px; }
.dash-top h1 { font-size: 43px; margin: 0; }
.dash-top p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.dash-grid { display: grid; grid-template-columns: 220px 1fr; gap: 25px; }
.dash-content { border: 1px solid var(--line); background: #fffdfa; padding: 20px; }
.dash-content h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; }
.item-row { border-top: 1px solid var(--line); padding: 17px 0; display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.empty-state { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.small-button { border: 1px solid var(--taupe); background: transparent; padding: 9px 12px; font-size: 10px; cursor: pointer; border-radius: 999px; }
.small-button:hover { background: var(--sage); }
.logout-button { border: 0; background: transparent; text-decoration: underline; cursor: pointer; font-size: 11px; color: var(--muted); }

/* ---------- 16. Bottoni & Bubble Effect ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 27px; padding: 15px 21px; font-size: 11px; transition: transform 0.3s, box-shadow 0.3s; border-radius: 999px; position: relative; overflow: hidden; isolation: isolate; }
.button span { font-size: 16px; }
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #282a241c; }
.button-dark { background: var(--ink); color: var(--cream); }
.button-light { background: var(--cream); color: var(--ink); }
.button:before { content: ""; position: absolute; z-index: -1; left: var(--bx, 50%); top: var(--by, 50%); width: 280px; height: 280px; translate: -50% -50%; scale: 0; border-radius: 50%; transition: scale 0.65s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.button-dark:before { background: radial-gradient(circle at 40% 35%, #8d9a7c, #6f7d5f 75%); }
.button-light:before { background: radial-gradient(circle at 40% 35%, #fffc, #c6d1b1 70%); }
.button:hover:before { scale: 1; }

/* ---------- 17. Modal & Animazioni ---------- */
.pay-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(40, 42, 36, 0.7); backdrop-filter: blur(4px); animation: fadeIn 0.3s ease-out; }
.pay-box { position: relative; background: var(--cream); padding: 35px 30px; border-radius: 12px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); animation: popIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; width: 100%; max-width: 400px; }
.pay-close { position: absolute; top: 15px; right: 20px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); transition: color 0.2s; }
.pay-close:hover { color: var(--ink); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pernaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes pernaImageFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px) scale(1.01); } }
@keyframes pernaBreathe { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.13); opacity: 1; } }
@keyframes pernaOrbit { to { rotate: 360deg; } }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pernaRise { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ---------- 18. Media Queries ---------- */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 850px) {
  .desktop-nav { gap: 17px; }
  .site-header { padding: 0 4%; }
  .hero { padding: 60px 6%; grid-template-columns: 1fr 0.85fr; }
  .hero-art { height: 370px; }
  .hero-side-note { display: none; }
  .section-pad { padding: 75px 6%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .intro, .audience { grid-template-columns: 1fr; }
  .intro .section-index, .audience > .section-index { margin-bottom: 8px; }
  .local-growth { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { padding: 45px 6%; gap: 30px; }
  .footer { padding-left: 6%; padding-right: 6%; }
}
@media (max-width: 760px) {
  .brand-wordmark { font-size: 17px; }
  .logo-frame { width: 50px; height: 50px; flex-basis: 50px; }
  .hero { padding-bottom: 75px; }
  .hero-quicklinks { gap: 13px; }
  .scroll-cue { left: 7%; }
  .footer-top { grid-template-columns: 1fr; }
  .floating-contact { right: 12px; bottom: 78px; width: 54px; height: 54px; }
}
@media (max-width: 620px) {
  .announcement { font-size: 7px; gap: 7px; }
  .site-header { height: 72px; }
  .brand img { width: 41px; height: 41px; }
  .brand > span { font-size: 18px; }
  .brand { min-width: 0; }
  .desktop-nav { display: none; }
  .header-actions { gap: 10px; }
  .search-trigger span { display: none; }
  .client-link { font-size: 10px; padding: 8px 11px; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding: 55px 7% 35px; gap: 35px; }
  .hero h1 { font-size: 58px; }
  .hero-art { height: 360px; margin: 0 12px; }
  .hero-proof { margin-top: 35px; }
  .floating-stamp { right: -15px; width: 76px; height: 76px; }
  .intro-bottom { align-items: flex-start; gap: 18px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 205px; }
  .quote-section { padding: 75px 20px; }
  .cta-band { margin: 0 4%; padding: 35px 7%; display: block; }
  .cta-band .button { margin-top: 25px; }
  .footer-top { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { flex-wrap: wrap; }
  .search-panel { top: 101px; padding: 18px 6%; }
  .search-inner input { font-size: 16px; }
  .page-hero { padding: 55px 7% 40px; }
  .page-layout { grid-template-columns: 1fr; padding: 30px 6% 65px; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .field.full { grid-column: auto; }
  .auth-wrap { margin: 35px auto 65px; }
  .auth-box { padding: 24px; }
  .dashboard { padding: 30px 5% 60px; }
  .dash-top { align-items: flex-start; flex-direction: column; }
  .dash-top h1 { font-size: 35px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .item-row { align-items: flex-start; }
  .cookie-note { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; }
  .cookie-note span { max-width: 70%; }
  .audience-grid, .process-grid { grid-template-columns: 1fr; }
  .pricing-grid, .form-banners { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Sezione QR Code ---------- */
.qr-section { background: #e9eddf; padding: 80px 9%; display: flex; justify-content: center; }
.qr-container { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 40px; display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 40px; max-width: 800px; width: 100%; box-shadow: 0 15px 35px #282a2410; }
.qr-image { width: 200px; height: 200px; background: var(--cream); border-radius: 12px; padding: 15px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.qr-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qr-text h2 { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin: 10px 0 15px; font-weight: 400; }
.qr-text h2 em { color: #9e9278; font-style: italic; }
.qr-text p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }

/* ---------- 20. Sezione FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.faq-item { background: #f5f2eb; border: 1px solid var(--line); border-radius: 12px; padding: 25px; transition: transform 0.3s, box-shadow 0.3s; }
.faq-item:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #282a2410; }
.faq-item h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 10px; color: var(--ink); }
.faq-item p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ---------- 21. Pagine Locali (Drogheda, Louth, Dublin) ---------- */
.local-page-hero { padding: 90px 9% 70px; background: #e9eddf; text-align: center; }
.local-page-hero h1 { font-size: clamp(46px, 6vw, 72px); margin: 15px 0; }
.local-page-hero p { max-width: 600px; margin: 0 auto; color: var(--muted); line-height: 1.9; }

/* ---------- 22. SHOP PAGE (Aggiornato con Immagini) ---------- */
.shop-category { margin-bottom: 80px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.shop-category:last-child { border-bottom: none; }
.shop-category h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); margin: 10px 0 30px; font-weight: 400; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }

.shop-item {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden; /* Importante per far stare l'immagine dentro i bordi */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.shop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px #282a2410;
}
.shop-img {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}
.shop-item:hover .shop-img {
  transform: scale(1.05);
}
.shop-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.shop-item h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.shop-item p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.shop-item .price { font-size: 14px; font-weight: 600; color: var(--sage-deep); margin-bottom: 20px; display: block; }
.shop-item .small-button { align-self: flex-start; border-radius: 999px; text-decoration: none; text-align: center; }

/* ---------- 23. Sezione Preordine (Shop) ---------- */
.preorder-form { max-width: 600px; margin: 0 auto; padding: 40px; background: #fffdfa; border: 1px solid var(--line); border-radius: 12px; }
.preorder-form h2 { font-family: var(--serif); font-size: 32px; margin-bottom: 20px; text-align: center; }
.preorder-form .field { margin-bottom: 20px; }
.preorder-form .button { width: 100%; margin-top: 10px; }
.preorder-form .legal-note { text-align: center; margin-top: 20px; }

/* ---------- 24. Responsive per Shop e Preordine ---------- */
@media (max-width: 768px) {
  .shop-grid { grid-template-columns: 1fr; }
  .qr-container { grid-template-columns: 1fr; text-align: center; gap: 30px; padding: 30px; }
  .qr-image { margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .preorder-form { padding: 20px; }
}