/* Palette e font ripresi dal sito WordPress originale */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cardo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cardo-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cardo-700.woff2") format("woff2");
}

:root {
  --base: #fcfaf7;
  --ink: #022e00;
  --sun: #ffd500;
  --sand: #cfcabe;
  --clay: #c2a990;
  --terracotta: #d8613c;
  --sage: #b1c5a4;
  --stone: #b5bdbc;
  --muted: #5b6b58;

  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Cardo", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 50;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--sun);
}
.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
}

/* ---------- Testata ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sun);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.site-header__logo {
  flex-shrink: 0;
}
.site-header__logo img {
  width: auto;
  height: 35px;
}

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a {
  text-decoration-color: var(--ink);
  text-underline-offset: 6px;
}
.main-nav a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__open,
.menu-toggle[aria-expanded="false"] .menu-toggle__close {
  display: none;
}

.mobile-nav {
  position: absolute;
  inset-inline: 0;
  top: 4rem;
  background: var(--sun);
  border-top: 1px solid rgb(2 46 0 / 0.15);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.mobile-nav ul {
  padding-block: 0.75rem;
}
.mobile-nav a {
  display: block;
  padding-block: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}
.mobile-nav a[aria-current="page"] {
  text-decoration: underline 2px;
  text-underline-offset: 6px;
}

@media (min-width: 64rem) {
  .main-nav {
    display: block;
  }
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Piè di pagina ---------- */

.site-footer {
  margin-top: 6rem;
  background: var(--ink);
  color: var(--sun);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.site-footer__inner > div > * + * {
  margin-top: 0.25rem;
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.site-footer__clock {
  font-variant-numeric: tabular-nums;
}
.site-footer__clock::first-letter {
  text-transform: uppercase;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer a {
  text-underline-offset: 4px;
}
.site-footer a:hover {
  text-decoration-line: underline;
}

@media (min-width: 48rem) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Home ---------- */

.home {
  padding-top: 3.5rem;
}

.home__intro {
  max-width: 48rem;
}
.home__intro h1 {
  font-size: 3rem;
  line-height: 1.05;
}
.home__intro .lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.625;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.375rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  background: var(--sun);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.home__nav {
  margin-top: 3.5rem;
}

.nav-buttons {
  display: grid;
  gap: 1rem;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--ink);
  background: var(--base);
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.nav-button:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-button__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
}

.nav-button__arrow {
  font-size: 1.5rem;
  line-height: 2rem;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-button:hover .nav-button__arrow {
  transform: translateX(0.25rem);
}

.dot {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
}
.dot--sage {
  background: var(--sage);
}
.dot--clay {
  background: var(--clay);
}
.dot--sand {
  background: var(--sand);
}
.dot--stone {
  background: var(--stone);
}
.dot--terracotta {
  background: var(--terracotta);
}

@media (min-width: 40rem) {
  .nav-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .home {
    padding-top: 6rem;
  }
  .home__intro h1 {
    font-size: 4.5rem;
  }
  .home__intro .lead {
    font-size: 1.25rem;
  }
  .home__nav {
    margin-top: 5rem;
  }
}

/* ---------- Pagine interne ---------- */

.page {
  padding-top: 3rem;
}

.page-header {
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-size: 2.25rem;
  line-height: 1.25;
}

.placeholder {
  max-width: 36rem;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--sand);
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.link,
.prose a {
  text-decoration: underline 2px var(--terracotta);
  text-underline-offset: 4px;
}
.link:hover,
.prose a:hover {
  color: var(--terracotta);
}

@media (min-width: 48rem) {
  .page {
    padding-top: 5rem;
  }
  .page-header {
    margin-bottom: 3.5rem;
  }
  .page-header h1 {
    font-size: 3.75rem;
  }
}

/* Testo lungo generato dal Markdown */
.prose {
  max-width: 68ch;
  font-size: 1.125rem;
  line-height: 1.625;
}
.prose > * + * {
  margin-top: 1.25rem;
}
.prose h2 {
  margin-top: 3rem;
  font-size: 1.875rem;
  line-height: 1.25;
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.5rem;
  line-height: 2rem;
}
.prose strong {
  font-weight: bolder;
}
.prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.prose li + li {
  margin-top: 0.5rem;
}
.prose em {
  color: var(--muted);
}
.prose blockquote {
  padding-left: 1.25rem;
  border-left: 4px solid var(--sun);
  font-style: italic;
}
.prose th,
.prose td {
  padding: 0.25rem 0.75rem 0.25rem 0;
  text-align: left;
}
.prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

/* ---------- Contatti ---------- */

.contact {
  display: grid;
  gap: 3rem;
}

.contact__photo {
  width: 100%;
  max-width: 24rem;
  border: 2px solid var(--ink);
}

.contact__text {
  font-size: 1.125rem;
  line-height: 1.625;
}
.contact__text > * + * {
  margin-top: 1rem;
}
.contact__text address {
  font-style: normal;
}
.contact__text address a {
  text-underline-offset: 4px;
}
.contact__text address a:hover {
  text-decoration-line: underline;
}

.contact__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 2rem;
}
.contact__phone {
  margin-top: 0.5rem;
}

@media (min-width: 48rem) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

/* ---------- 404 ---------- */

.not-found {
  padding-top: 5rem;
}
.not-found__code {
  color: var(--terracotta);
  font-weight: 600;
}
.not-found h1 {
  margin-top: 0.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.not-found h1 + p {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* ---------- Sito in costruzione ---------- */

main:has(> .coming-soon) {
  display: flex;
  flex-direction: column;
}
.coming-soon {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 4rem;
  text-align: center;
}
.coming-soon .badge {
  margin-top: 0;
}
.coming-soon h1 {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.coming-soon h1 + p {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--sun);
  font-weight: 600;
}
.button:hover {
  background: rgb(2 46 0 / 0.85);
}

@media (min-width: 48rem) {
  .not-found h1,
  .coming-soon h1 {
    font-size: 3.75rem;
    line-height: 1;
  }
}
