:root{
  --bg:#f7faf9;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --brand:#0ea5a3;
  --brand-ink:#0b807f;
  --accent:#84d6d4;
  --ring:rgba(14,165,163,.35);
  --ok:#16a34a; --warn:#b45309; --err:#b91c1c;
  --radius:18px;
  --shadow:0 10px 25px rgba(3, 25, 23, .08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
  margin:0; color:var(--text); background:var(--bg);
  background-image: radial-gradient(ellipse at 10% 0%, rgba(132,214,212,.25) 0, transparent 35%),
                    radial-gradient(ellipse at 90% 10%, rgba(14,165,163,.12) 0, transparent 40%);
  background-attachment: fixed;
}

.container{max-width:980px;margin:0 auto;padding:24px}

header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(6px);
  background:rgba(247,250,249,.65);
  border-bottom:1px solid rgba(14,165,163,.12);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}
.brand img{width:36px;height:36px}
.brand h1{font-size:20px;margin:0;font-weight:700;letter-spacing:.2px}

.btn{
  display:inline-block; padding:10px 14px; border-radius:12px;
  background:var(--brand); color:#fff; text-decoration:none; border:0;
  box-shadow:var(--shadow); transition:.2s ease;
}
.btn:hover{background:var(--brand-ink); transform:translateY(-1px)}

.hero{
  margin-top:24px; border-radius:var(--radius); background:linear-gradient(180deg,#ffffff, #f0fbfa);
  box-shadow:var(--shadow); padding:28px;
  display:grid; gap:14px;
}
.hero h2{margin:0;font-size:28px}
.hero p{margin:0;color:var(--muted)}

.grid{display:grid; gap:16px}
@media(min-width:800px){ .grid-2{grid-template-columns:1fr 1fr} }

.card{
  background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:18px; border:1px solid rgba(14,165,163,.10);
}

label{display:block;margin:10px 0 6px;font-weight:600}
input,select{
  width:100%; padding:10px 12px; border-radius:12px; border:1px solid #d1d5db;
  background:#fff; outline: none; transition:border .2s, box-shadow .2s;
}
input:focus,select:focus{border-color:var(--brand); box-shadow:0 0 0 4px var(--ring)}
button{cursor:pointer}

.flash{list-style:none;margin:0 0 12px;padding:0}
.flash li{padding:10px 12px;border-radius:10px;margin:8px 0}
.flash li.success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.flash li.error{background:#fef2f2;color:#7f1d1d;border:1px solid #fecaca}

table{border-collapse:separate;border-spacing:0;width:100%}
th,td{padding:10px 12px;border-bottom:1px solid #eef2f1}
th{text-align:left;color:var(--muted);font-weight:600}
tfoot td{border-bottom:0}

footer{
  margin:28px 0 10px; color:var(--muted); font-size:14px;
  display:flex; justify-content:center; gap:8px;
}
.kicker{color:var(--muted);font-weight:600;font-size:13px;letter-spacing:.3px;text-transform:uppercase}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#e6fffb;color:#036766;font-weight:600;font-size:12px;border:1px solid rgba(14,165,163,.25)}

.btn.ghost{background:transparent;color:var(--brand);border:1px solid var(--brand)}
.btn.ghost:hover{background:var(--brand);color:#fff}

.section{margin:28px 0}
.section h2{margin:0 0 12px;font-size:22px}
.lead{color:var(--muted)}
.cta-row{display:flex;gap:10px;flex-wrap:wrap}

.btn-primary{ /* usa lo stile .btn di base */ }
.btn-outline-secondary{ @apply .btn; }
.btn-outline-secondary{background:transparent;color:var(--brand);border:1px solid var(--brand)}
.btn-outline-secondary:hover{background:var(--brand);color:#fff}

.muted{color:var(--muted)}

.pill-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.pill-list li{
  padding:6px 10px;border-radius:999px;background:#e6fffb;
  color:#036766;font-weight:600;font-size:14px;border:1px solid rgba(14,165,163,.25)
}

.list-columns{columns:1;column-gap:24px;list-style:disc;margin:0;padding-left:18px}
@media(min-width:700px){.list-columns{columns:2}}
@media(min-width:1000px){.list-columns{columns:3}}
.list-columns li{break-inside:avoid;margin:4px 0}

.cards{display:grid;gap:16px}
@media(min-width:800px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.price-card{display:grid;gap:6px;align-content:start;text-align:center}
.price-title{font-weight:700}
.price{font-size:28px;font-weight:800;color:var(--brand-ink)}
.price-note{color:var(--muted);font-size:14px}

.quote{font-style:italic;border-left:4px solid var(--accent);
  background:linear-gradient(0deg,#fff,#f7fffe)}

.steps{
  list-style:none;
  margin:0;
  padding:14px;
  counter-reset: step;
}

.steps li{
  position:relative;
  margin:10px 0;
  padding-left:42px;
  counter-increment: step;
}

.steps li::before{
  content: counter(step);
  position:absolute;
  left:10px; top:4px;
  width:22px; height:22px;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  box-shadow:var(--shadow);
}

header .container{
  max-width: none;
  margin: 0;
  padding: 12px 18px;
}
.nav{justify-content: space-between}

form select, form input{ margin-bottom: 10px; }
form .btn[type="submit"]{ margin-top: 12px; }

@media(min-width:1200px){
  .container > .card{ margin-left:auto; margin-right:auto; max-width:920px; }
}
table.responsive { width:100%; }
@media (max-width: 720px) {
  table.responsive,
  table.responsive thead,
  table.responsive tbody,
  table.responsive th,
  table.responsive td,
  table.responsive tr { display:block; width:100%; }
  table.responsive thead { display:none; }
  table.responsive tr {
    margin: 0 0 12px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  table.responsive td {
    border-bottom: 1px solid #eef2f1;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  table.responsive td:last-child { border-bottom: 0; }
  table.responsive td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
  }
}

@media (max-width: 720px) {
  .btn { padding: 9px 12px; border-radius: 10px; }
}

@media(min-width:1200px){
  .container > .card{ margin-left:auto; margin-right:auto; max-width:980px; }
}
.tbl { width:100%; border-collapse:separate; border-spacing:0 }
.tbl th, .tbl td { padding:10px 12px; border-bottom:1px solid #eef2f1 }

.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch }

@media (max-width: 720px) {
  .tbl thead { display:none; }
  .tbl tr { display:block; background:var(--card); border:1px solid rgba(14,165,163,.10);
            border-radius:14px; box-shadow:var(--shadow); margin:10px 0; padding:8px 10px; }
  .tbl td { display:flex; justify-content:space-between; align-items:center;
            padding:8px 10px; border-bottom:0; }
  .tbl td::before {
    content: attr(data-th);
    color: var(--muted); font-weight:600; margin-right:12px; flex:0 0 44%;
  }
  .tbl td:last-child { justify-content:flex-end }
}

@media (max-width: 720px) {
  input[type="time"], select { width:100%; }
  .admin-grid { display:grid; gap:10px; }
}

@media (max-width: 720px) {
  .avail-table .tbl tr { padding:12px }
  .avail-table .tbl td { padding:6px 10px }
}
@media (max-width: 720px) {
  .container { padding: 16px; }

  .nav { padding: 10px 0; }
  .brand img { width: 30px; height: 30px; }
  .brand h1 { font-size: 16px; white-space: nowrap; }
  header nav .btn { padding: 8px 10px; border-radius: 10px; }

  .card table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .card table thead, .card table tbody, .card table tr {
    width: max-content;
  }

  th, td { padding: 8px 10px; font-size: 14px; }

  input[type="time"] {
    min-width: 92px;
  }

  .card form.grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 10px;
  }

  .btn { padding: 10px 14px; }
}

textarea.autogrow{
  width: 100%;
  min-height: 64px;
  resize: none;
  overflow-y: hidden;
  line-height:1.35;
}
