@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=Karla:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* Reset minimo */
html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }

.dg-site {
  --verde: #0c3b2e;
  --verde-fondo: #082b21;
  --oro: #c6a15b;
  --corallo: #d96f52;
  --crema: #f4efe4;
  --crema-scura: #ece5d3;
  --inchiostro: #23301f;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Karla', 'Helvetica Neue', sans-serif;
  font-family: var(--sans);
  color: var(--inchiostro);
  background: var(--crema);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
.dg-site *, .dg-site *::before, .dg-site *::after { box-sizing: border-box; }
.dg-site img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dg-site a { text-decoration: none; }

.dg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ------- texture grana ------- */
.dg-site::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------- reveal ------- */
.dg-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
.dg-reveal.dg-in { opacity: 1; transform: none; }
.dg-reveal[data-d='1'] { transition-delay: .12s; }
.dg-reveal[data-d='2'] { transition-delay: .24s; }
.dg-reveal[data-d='3'] { transition-delay: .36s; }

/* ------- nav ------- */
.dg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 18px 0;
}
.dg-nav.dg-solid { background: rgba(8,43,33,.92); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(8,43,33,.25); padding: 10px 0; }
.dg-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dg-brand { display: flex; align-items: center; gap: 12px; color: var(--crema); }
.dg-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(198,161,91,.6); }
.dg-brand-name { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .04em; }
.dg-brand-sub { display: block; font-family: var(--sans); font-weight: 400; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--oro); }
.dg-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.dg-links a { color: var(--crema); font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; position: relative; padding: 4px 0; }
.dg-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--oro); transition: width .35s; }
.dg-links a:hover::after { width: 100%; }
.dg-cta {
  background: var(--oro); color: var(--verde-fondo) !important; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; transition: transform .3s, box-shadow .3s;
}
.dg-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(198,161,91,.4); }
.dg-cta::after { display: none; }
.dg-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.dg-burger span { display: block; width: 26px; height: 2px; background: var(--crema); margin: 6px 0; transition: .3s; }

@media (max-width: 860px) {
  .dg-links {
    position: fixed; inset: 0; background: var(--verde-fondo);
    flex-direction: column; justify-content: center; gap: 34px;
    transform: translateX(100%); transition: transform .45s cubic-bezier(.7,0,.3,1);
  }
  .dg-links.dg-open { transform: none; }
  .dg-links a { font-size: 18px; }
  .dg-burger { display: block; position: relative; z-index: 55; }
  .dg-burger.dg-x span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .dg-burger.dg-x span:nth-child(2) { opacity: 0; }
  .dg-burger.dg-x span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ------- hero ------- */
.dg-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--crema); isolation: isolate; }
.dg-hero-bg { position: absolute; inset: 0; z-index: -2; }
.dg-hero-bg img { animation: dgKen 18s ease-out both; }
@keyframes dgKen { from { transform: scale(1.12); } to { transform: scale(1); } }
.dg-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,43,33,.55) 0%, rgba(8,43,33,.18) 40%, rgba(8,43,33,.82) 100%);
}
.dg-hero-inner { width: 100%; padding-bottom: clamp(56px, 10vh, 120px); }
.dg-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--oro);
  margin-bottom: 22px;
}
.dg-hero-eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--oro); }
.dg-hero h1 {
  font-family: var(--serif); font-weight: 300; margin: 0 0 10px;
  font-size: clamp(52px, 9vw, 124px); line-height: .96; letter-spacing: -.01em;
}
.dg-hero h1 .dg-54 { font-style: italic; color: var(--oro); }
.dg-hero-slogan {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2.6vw, 28px); max-width: 640px; color: rgba(244,239,228,.92); margin: 18px 0 36px;
}
.dg-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.dg-btn-line {
  border: 1px solid rgba(244,239,228,.55); color: var(--crema); padding: 13px 30px; border-radius: 999px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; transition: .35s;
}
.dg-btn-line:hover { background: var(--crema); color: var(--verde-fondo); }
.dg-btn-gold {
  background: var(--oro); color: var(--verde-fondo); padding: 14px 32px; border-radius: 999px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; transition: transform .3s, box-shadow .3s;
}
.dg-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198,161,91,.45); }
.dg-scrollhint {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 28px;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: rgba(244,239,228,.7);
  display: flex; align-items: center; gap: 12px;
}
.dg-scrollhint::after { content: ''; width: 1px; height: 54px; background: linear-gradient(var(--oro), transparent); animation: dgDrip 2.2s ease-in-out infinite; }
@keyframes dgDrip { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity:.4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ------- section furniture ------- */
.dg-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--corallo); font-weight: 600;
}
.dg-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--corallo); }
.dg-h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; margin: 14px 0 0; color: var(--verde); }
.dg-h2 em { font-style: italic; color: var(--corallo); }
.dg-lead { font-size: clamp(16.5px, 1.6vw, 19px); color: #3c4a37; max-width: 62ch; }

/* ------- casa nel borgo ------- */
.dg-casa { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); position: relative; }
.dg-casa-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.dg-arch { border-radius: 999px 999px 18px 18px; overflow: hidden; position: relative; }
.dg-arch img { transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.dg-arch:hover img { transform: scale(1.05); }
.dg-casa-photos { position: relative; }
.dg-casa-photos .dg-arch { aspect-ratio: 3/4; box-shadow: 24px 30px 0 -6px var(--crema-scura), 0 30px 60px rgba(12,59,46,.18); }
.dg-casa-mini {
  position: absolute; width: 42%; aspect-ratio: 1; right: -6%; bottom: -10%;
  border-radius: 50%; overflow: hidden; border: 8px solid var(--crema);
  box-shadow: 0 24px 50px rgba(12,59,46,.28);
}
.dg-quote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px); color: var(--verde); border-left: 2px solid var(--oro);
  padding-left: 22px; margin: 30px 0 0;
}

/* ------- camere ------- */
.dg-camere { background: var(--verde-fondo); color: var(--crema); padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.dg-camere .dg-h2 { color: var(--crema); }
.dg-camere .dg-h2 em { color: var(--oro); }
.dg-camere .dg-eyebrow { color: var(--oro); }
.dg-camere .dg-eyebrow::before { background: var(--oro); }
.dg-camere .dg-lead { color: rgba(244,239,228,.78); }
.dg-watermark {
  position: absolute; top: -4%; right: -3%; font-family: var(--serif); font-style: italic;
  font-size: clamp(200px, 34vw, 480px); line-height: 1; color: rgba(198,161,91,.07); user-select: none; pointer-events: none;
}
.dg-rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.dg-room { position: relative; }
.dg-room:nth-child(even) { transform: translateY(clamp(20px, 4vw, 56px)); }
.dg-room-img { aspect-ratio: 4/3.4; border-radius: 999px 999px 16px 16px; overflow: hidden; position: relative; }
.dg-room-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,43,33,.55)); opacity: 0; transition: opacity .5s; }
.dg-room:hover .dg-room-img::after { opacity: 1; }
.dg-room-img img { transition: transform 1.1s cubic-bezier(.2,.6,.2,1); }
.dg-room:hover .dg-room-img img { transform: scale(1.06); }
.dg-room-num {
  position: absolute; top: -0.18em; left: -8px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-weight: 300; line-height: 1;
  font-size: clamp(90px, 12vw, 150px); color: var(--oro);
  text-shadow: 0 6px 30px rgba(8,43,33,.55);
}
.dg-room h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 22px 0 8px; letter-spacing: .02em; }
.dg-room h3 span { color: var(--oro); font-style: italic; }
.dg-room p { color: rgba(244,239,228,.75); font-size: 15.5px; margin: 0; max-width: 46ch; }
.dg-rooms-note {
  margin-top: clamp(56px, 7vw, 90px); text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2.4vw, 26px); color: rgba(244,239,228,.9); max-width: 760px; margin-left: auto; margin-right: auto;
}
.dg-rooms-note strong { color: var(--oro); font-weight: 400; }

/* ------- relax ------- */
.dg-relax { padding: clamp(90px, 12vw, 150px) 0; }
.dg-relax-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.6vw, 30px); margin-top: clamp(44px, 6vw, 72px); align-items: stretch; }
.dg-relax-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 320px; }
.dg-relax-card.dg-a { grid-column: span 7; aspect-ratio: 16/10; }
.dg-relax-card.dg-b { grid-column: span 5; }
.dg-relax-card.dg-c { grid-column: span 5; }
.dg-relax-card.dg-d { grid-column: span 7; aspect-ratio: 16/10; }
.dg-relax-card img { transition: transform 1.1s cubic-bezier(.2,.6,.2,1); }
.dg-relax-card:hover img { transform: scale(1.05); }
.dg-relax-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12,59,46,.72));
}
.dg-relax-label {
  position: absolute; left: 24px; bottom: 20px; z-index: 2; color: var(--crema);
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); font-weight: 400;
}
.dg-relax-label small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); margin-bottom: 6px; }

/* ------- dog strip ------- */
.dg-dog {
  background: var(--corallo); color: #fff7ef; padding: clamp(48px, 6vw, 72px) 0; position: relative; overflow: hidden;
}
.dg-dog-inner { display: flex; align-items: center; gap: clamp(22px, 4vw, 44px); flex-wrap: wrap; justify-content: center; text-align: center; }
.dg-dog-icon { font-size: clamp(40px, 5vw, 58px); line-height: 1; }
.dg-dog h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 6px; }
.dg-dog p { margin: 0; max-width: 62ch; opacity: .92; }

/* ------- territorio ------- */
.dg-terr { padding: clamp(90px, 12vw, 150px) 0; background: var(--crema-scura); }
.dg-terr-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.dg-terr-list { margin: 34px 0 0; padding: 0; list-style: none; }
.dg-terr-list li {
  display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(12,59,46,.14);
}
.dg-terr-list li:first-child { border-top: 1px solid rgba(12,59,46,.14); }
.dg-terr-km { font-family: var(--serif); font-style: italic; color: var(--corallo); font-size: 20px; min-width: 74px; }
.dg-terr-list strong { color: var(--verde); font-weight: 600; }
.dg-terr-list p { margin: 2px 0 0; font-size: 15px; color: #4a5545; }

/* ------- prenota ------- */
.dg-prenota { background: var(--verde-fondo); color: var(--crema); padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.dg-prenota .dg-h2 { color: var(--crema); }
.dg-prenota .dg-h2 em { color: var(--oro); }
.dg-prenota .dg-eyebrow { color: var(--oro); }
.dg-prenota .dg-eyebrow::before { background: var(--oro); }
.dg-prenota-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; margin-top: 10px; }
.dg-prenota-side { position: sticky; top: 110px; }
.dg-prenota-side p { color: rgba(244,239,228,.78); max-width: 46ch; }
.dg-wa-inline {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  background: #25d366; color: #06301c; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; transition: transform .3s, box-shadow .3s;
}
.dg-wa-inline:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,211,102,.35); }
.dg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.dg-field { display: flex; flex-direction: column; gap: 7px; }
.dg-field.dg-full { grid-column: 1 / -1; }
.dg-field label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); font-weight: 600; }
.dg-field input, .dg-field select, .dg-field textarea {
  background: rgba(244,239,228,.06); border: 1px solid rgba(244,239,228,.22); border-radius: 12px;
  color: var(--crema); padding: 13px 16px; font-family: var(--sans); font-size: 15.5px; outline: none;
  transition: border-color .3s, background .3s; width: 100%;
}
.dg-field input::placeholder, .dg-field textarea::placeholder { color: rgba(244,239,228,.35); }
.dg-field input:focus, .dg-field select:focus, .dg-field textarea:focus { border-color: var(--oro); background: rgba(244,239,228,.1); }
.dg-field select option { color: var(--inchiostro); background: var(--crema); }
.dg-field input[type='date'] { color-scheme: dark; }
.dg-field textarea { resize: vertical; min-height: 96px; }
.dg-form-submit {
  grid-column: 1 / -1; margin-top: 6px;
  background: var(--oro); color: var(--verde-fondo); border: 0; cursor: pointer;
  padding: 16px 32px; border-radius: 999px; font-family: var(--sans);
  font-size: 13.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  transition: transform .3s, box-shadow .3s, opacity .3s;
}
.dg-form-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198,161,91,.45); }
.dg-form-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.dg-form-ok {
  grid-column: 1 / -1; text-align: center; padding: 40px 24px;
  border: 1px solid rgba(198,161,91,.4); border-radius: 18px; background: rgba(198,161,91,.08);
}
.dg-form-ok h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 10px; color: var(--oro); }
.dg-form-ok p { color: rgba(244,239,228,.8); margin: 0 0 22px; }
.dg-form-note { grid-column: 1 / -1; font-size: 12.5px; color: rgba(244,239,228,.5); margin-top: 4px; }

/* ------- whatsapp float ------- */
.dg-wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  width: 62px; height: 62px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .3s;
}
.dg-wa-float:hover { transform: scale(1.08); }
.dg-wa-float::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5); animation: dgPing 2.2s ease-out infinite;
}
@keyframes dgPing { 0% { transform: scale(.8); opacity: 1 } 100% { transform: scale(1.35); opacity: 0 } }
.dg-wa-float svg { width: 32px; height: 32px; fill: #fff; }

@media (max-width: 900px) {
  .dg-prenota-grid { grid-template-columns: 1fr; }
  .dg-prenota-side { position: static; }
  .dg-form { grid-template-columns: 1fr; }
}

/* ------- contatti / footer ------- */
.dg-foot { background: var(--verde-fondo); color: var(--crema); padding: clamp(80px, 10vw, 130px) 0 40px; position: relative; overflow: hidden; }
.dg-foot-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.dg-foot .dg-h2 { color: var(--crema); }
.dg-foot .dg-h2 em { color: var(--oro); }
.dg-foot-info { margin-top: 30px; display: grid; gap: 14px; font-size: 16px; color: rgba(244,239,228,.85); }
.dg-foot-info a { color: var(--oro); border-bottom: 1px solid rgba(198,161,91,.4); transition: border-color .3s; }
.dg-foot-info a:hover { border-color: var(--oro); }
.dg-foot-logo { display: grid; place-items: center; }
.dg-foot-logo img {
  width: clamp(180px, 22vw, 260px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(198,161,91,.35), 0 30px 80px rgba(0,0,0,.4);
}
.dg-foot-bar {
  margin-top: clamp(60px, 8vw, 90px); padding-top: 24px; border-top: 1px solid rgba(244,239,228,.14);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(244,239,228,.55); letter-spacing: .06em;
}
.dg-foot-bar a { color: rgba(244,239,228,.75); transition: color .3s; }
.dg-foot-bar a:hover { color: var(--oro); }

@media (max-width: 900px) {
  .dg-casa-grid, .dg-terr-grid, .dg-foot-grid { grid-template-columns: 1fr; }
  .dg-rooms { grid-template-columns: 1fr; }
  .dg-room:nth-child(even) { transform: none; }
  .dg-relax-card.dg-a, .dg-relax-card.dg-b, .dg-relax-card.dg-c, .dg-relax-card.dg-d { grid-column: span 12; aspect-ratio: 16/10; }
  .dg-casa-mini { right: 4%; }
  .dg-scrollhint { display: none; }
}

/* ------- pagine legali (privacy / cookie) ------- */
.dg-legal { padding: clamp(120px, 16vw, 180px) 0 clamp(60px, 8vw, 100px); min-height: 100vh; }
.dg-legal .dg-wrap { max-width: 820px; }
.dg-legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 6vw, 56px); color: var(--verde); margin: 10px 0 6px; }
.dg-legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 28px); color: var(--verde); margin: 40px 0 10px; }
.dg-legal p, .dg-legal li { color: #3c4a37; font-size: 16.5px; }
.dg-legal ul { padding-left: 20px; }
.dg-legal li { margin: 6px 0; }
.dg-legal a { color: var(--corallo); }
.dg-legal .dg-updated { display: inline-block; background: rgba(198,161,91,.14); color: #8a6d2f; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.dg-legal .dg-back { display: inline-flex; align-items: center; gap: 8px; color: var(--verde); font-weight: 600; font-size: 14px; letter-spacing: .06em; }
