:root {
  --avorio: #fbf7f2;
  --crema: #f3eadf;
  --sabbia: #e4d3c1;
  --cipria: #efdcd5;
  --rosa: #c99a8f;
  --nocciola: #8e5f4a;
  --cacao: #4a3329;
  --soft: #6f5a4f;
  --line: #e8dccf;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--avorio); color: var(--cacao); font-family: var(--sans); font-weight: 300; font-size: 18px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--nocciola); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--nocciola); }
p { margin: 0 0 1em; }
b, strong { font-weight: 500; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
section { padding: 88px 0; }
.alt { background: var(--crema); }
.pink { background: var(--cipria); }
.dark { background: var(--cacao); color: var(--crema); }
.dark h2 { color: var(--avorio); }
.dark h2 em { color: var(--rosa); }
.kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--nocciola); margin-bottom: 18px; }
.dark .kicker { color: var(--rosa); }
.lede { font-size: 20px; color: var(--soft); max-width: 36em; }
h2 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 24px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(251, 247, 242, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { font-family: var(--serif); font-size: 22px; color: var(--cacao); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--cacao); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--nocciola); color: var(--nocciola); }
.nav .btn { border: 0; color: #fff; padding: 10px 20px; }
.nav .btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--sabbia); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; color: var(--cacao); cursor: pointer; }

/* buttons */
.btn { display: inline-block; background: var(--nocciola); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: .01em; padding: 14px 28px; border-radius: 999px; border: 1px solid var(--nocciola); transition: background .2s, color .2s; }
.btn:hover, .btn:focus-visible { background: var(--cacao); border-color: var(--cacao); color: #fff; }
.btn.ghost { background: transparent; color: var(--nocciola); }
.btn.ghost:hover { background: var(--nocciola); color: #fff; }
.dark .btn { background: var(--avorio); color: var(--cacao); border-color: var(--avorio); }
.dark .btn:hover { background: var(--rosa); border-color: var(--rosa); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); margin-bottom: 28px; }
.hero p { font-size: 20px; color: var(--soft); max-width: 32em; }
.arch { justify-self: center; width: min(100%, 400px); aspect-ratio: 4 / 5; border-radius: 200px 200px 10px 10px; overflow: hidden; background: var(--sabbia); box-shadow: 22px 22px 0 var(--cipria); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }

/* lists & cards */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 1px; background: var(--nocciola); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); color: var(--nocciola); margin-top: 40px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.alt .card, .pink .card { border-color: transparent; }
.card h3 { font-size: 25px; }
.card p { margin: 0; color: var(--soft); }
.card .tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--nocciola); font-weight: 500; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card.feature { background: var(--cacao); color: var(--crema); }
.card.feature h3 { color: var(--avorio); }
.card.feature p { color: var(--sabbia); }
.card.feature .tag { color: var(--rosa); }
.card.feature .btn { background: var(--avorio); color: var(--cacao); border-color: var(--avorio); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sabbia); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: #fff; border-radius: 14px; padding: 22px 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 28px; color: var(--nocciola); line-height: 1.1; }
.steps b { display: block; font-weight: 500; }
.steps span { color: var(--soft); }

.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 1px solid var(--sabbia); }
.timeline li { padding: 0 0 22px 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--rosa); }
.timeline b { font-family: var(--serif); font-weight: 500; font-size: 21px; display: block; }

.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; max-width: 18em; }
.closing .actions { justify-content: center; }

/* forms */
.form { display: grid; gap: 14px; max-width: 460px; margin-top: 28px; }
.form label { font-size: 14px; font-weight: 500; }
.form input[type="text"], .form input[type="email"] { width: 100%; font: inherit; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--sabbia); background: #fff; color: var(--cacao); }
.form .consent { font-size: 14px; color: var(--soft); display: flex; gap: 10px; align-items: flex-start; }
.form button { justify-self: start; cursor: pointer; font-family: var(--sans); }

/* page head */
.page-head { padding: 80px 0 56px; }
.page-head h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 20px; }

/* prose */
.prose h2 { font-size: clamp(28px, 3.4vw, 36px); margin: 48px 0 16px; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* footer */
.site-footer { background: var(--cacao); color: var(--sabbia); padding: 64px 0 32px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .logo { color: var(--avorio); display: block; margin-bottom: 10px; }
.site-footer a { color: var(--crema); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--rosa); margin-bottom: 14px; }
.site-footer .note { border-top: 1px solid rgba(228, 211, 193, .2); padding-top: 24px; font-size: 13px; line-height: 1.6; color: #cdb9a9; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .grid3, .grid2, .checks { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--avorio); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .card { padding: 24px; }
  .steps li { grid-template-columns: 40px 1fr; padding: 18px; }
}
.dark .btn.ghost { background: transparent; color: var(--crema); border-color: var(--crema); }
.dark .btn.ghost:hover { background: var(--crema); color: var(--cacao); }

/* movimento */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes archIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

.js .hero .kicker, .js .hero h1, .js .hero p, .js .hero .actions,
.js .page-head .kicker, .js .page-head h1, .js .page-head .lede, .js .page-head .actions, .js .page-head .form { opacity: 0; animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero h1, .js .page-head h1 { animation-delay: .12s; }
.js .hero p, .js .page-head .lede { animation-delay: .28s; }
.js .hero .actions, .js .page-head .actions, .js .page-head .form { animation-delay: .42s; }
.js .hero .arch, .js .page-head .arch, .js .page-head .photo { opacity: 0; animation: archIn 1.1s .2s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .site-header { animation: fade .6s ease both; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

h1 em, h2 em { background: linear-gradient(var(--rosa), var(--rosa)) no-repeat 0 92% / 0 1px; transition: background-size 1.1s .5s cubic-bezier(.2, .7, .2, 1); }
.dark h2 em { background-image: linear-gradient(var(--rosa), var(--rosa)); }
.in h2 em, h2.in em, section:not(.js-pending) h2:not(.reveal) em, .hero h1 em, .page-head h1 em { background-size: 100% 1px; }

.nav a:not(.btn) { border-bottom: 0; background: linear-gradient(var(--nocciola), var(--nocciola)) no-repeat 0 100% / 0 1px; transition: background-size .35s ease, color .25s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background-size: 100% 1px; }

.btn { transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(74, 51, 41, .55); }

.card { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -26px rgba(74, 51, 41, .45); border-color: var(--sabbia); }
.card .tag { transition: letter-spacing .4s; }
.card:hover .tag { letter-spacing: .26em; }

.arch, .photo { transition: box-shadow .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.arch img, .photo img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter 1.2s; }
.arch:hover { box-shadow: 30px 30px 0 var(--cipria); }
.arch:hover img, .photo:hover img { transform: scale(1.05); filter: saturate(1.06); }

.checks li::before { transition: width .4s; }
.checks li:hover::before { width: 22px; }
.steps li { transition: transform .35s, border-color .35s; }
.steps li:hover { transform: translateX(6px); border-color: var(--sabbia); }
.timeline li::before { transition: transform .35s, background .35s; }
.timeline li:hover::before { transform: scale(1.5); background: var(--nocciola); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero *, .js .page-head * { opacity: 1 !important; transform: none !important; }
}

/* menu a tendina "Cosa uso" */
.dd { position: relative; }
.dd-btn { background: none; border: 0; font: inherit; color: var(--cacao); cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.dd.cur .dd-btn, .dd-btn:hover { color: var(--nocciola); }
.dd-menu { position: absolute; top: 100%; left: -18px; min-width: 190px; padding: 12px 18px; display: grid; gap: 8px; background: var(--avorio); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 36px -24px rgba(74, 51, 41, .5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 20; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd:hover .dd-btn::after, .dd.open .dd-btn::after { transform: translateY(1px) rotate(225deg); }
@media (max-width: 900px) {
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 8px 0 0 16px; min-width: 0; }
  .dd-btn::after { display: none; }
}

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--sabbia); margin-top: 28px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.placeholder { display: grid; place-items: center; color: var(--nocciola); font-size: 15px; letter-spacing: .08em; border: 1px dashed var(--rosa); background: var(--crema); }

/* faq */
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--sabbia); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--nocciola); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--soft); }
.small-note { font-size: 13px; color: var(--soft); border-top: 1px solid var(--line); padding-top: 20px; }
.form input[type="tel"] { width: 100%; font: inherit; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--sabbia); background: #fff; color: var(--cacao); }

/* sfavillio nei titoli */
@keyframes shine { to { background-position: -200% 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: .5; transform: scale(.7) rotate(90deg); } }
.hero h1 em, .page-head h1 em, .closing h2 em { position: relative; }
.hero h1 em, .page-head h1 em {
  background-image: linear-gradient(105deg, var(--nocciola) 0%, var(--nocciola) 33%, #b9826f 43%, #d9a796 50%, #b9826f 57%, var(--nocciola) 67%, var(--nocciola) 100%);
  background-size: 200% 100%; background-repeat: repeat; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: shine 5.5s linear infinite;
}
.closing h2 em { background-image: none; }
.spark { position: absolute; color: #e7b8a8; pointer-events: none; opacity: 0; animation: twinkle 3.6s ease-in-out infinite; -webkit-text-fill-color: #e7b8a8; line-height: 1; font-style: normal; text-shadow: 0 0 8px rgba(239, 220, 213, .9); }
.dark .spark { color: #f3d9c9; -webkit-text-fill-color: #f3d9c9; }

/* frasi evidenziate */
.hl { background: linear-gradient(transparent 58%, rgba(201, 154, 143, .38) 58%, rgba(201, 154, 143, .38) 92%, transparent 92%) no-repeat 0 0 / 0 100%; transition: background-size 1.2s .3s cubic-bezier(.2, .7, .2, 1); font-weight: 400; color: var(--cacao); }
.hl.on { background-size: 100% 100%; }

/* mosaico foto viaggi */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 32px; }
.mosaic .photo:nth-child(even) { transform: translateY(32px); }
.mosaic .photo:hover { transform: translateY(-4px) rotate(-1deg); }
.mosaic .photo:nth-child(even):hover { transform: translateY(26px) rotate(1deg); }

@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .page-head h1 em { animation: none; background-position: 0 0; }
  .hl { background-size: 100% 100%; }
}

/* parole che cambiano */
.hero p.rotator { line-height: 1.3; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); color: var(--cacao); margin: -8px 0 18px; }
.rot { display: inline-grid; justify-items: start; vertical-align: bottom; line-height: 1.3; overflow: hidden; height: 1.3em; text-align: left; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.rot b { grid-area: 1 / 1; font-weight: 400; font-style: italic; color: var(--nocciola); opacity: 0; transform: translateY(100%); transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s; white-space: nowrap; }
.rot b.on { opacity: 1; transform: none; }
.rot b.off { opacity: 0; transform: translateY(-100%); }
.rot b { padding-right: .14em; }
.lh .rotator, .hero p.rotator { line-height: 1.3; }

/* foto che cambiano */
.slides { position: relative; }
.slides img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease, transform 6s ease; transform: scale(1.04); }
.slides img.on { opacity: 1; transform: none; }
.slides img:first-child { position: relative; }

/* foto del team e Okinawa */
.team-photo { margin: 36px 0 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(74, 51, 41, .6); }
.team-photo img { width: 100%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.team-photo:hover img { transform: scale(1.03); }
.okinawa p { color: var(--sabbia); font-size: 19px; }
.okinawa .hl { color: var(--avorio); background-image: linear-gradient(transparent 58%, rgba(201, 154, 143, .45) 58%, rgba(201, 154, 143, .45) 92%, transparent 92%); }
.okinawa h2 em { position: relative; }

/* messaggio dopo l'invio del modulo */
.form-msg { margin: .4rem 0 0; font-weight: 600; color: var(--nocciola); }
.card .more { display:inline-block; margin-top:.6rem; font-size:.9rem; font-weight:600; color:var(--nocciola); text-decoration:none; border-bottom:1px solid currentColor; }
.card .more:hover { color:var(--cacao); }
.guide-cover { max-width:300px; margin:0 auto; }
.guide-cover img { width:100%; height:auto; border-radius:10px; box-shadow:0 18px 40px rgba(60,40,30,.22); transform:rotate(-2deg); }
.note .credit { color:inherit; text-decoration:underline; text-underline-offset:2px; }
