@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Variabili CSS */
:root {
  --bg: #fff;
  --text: #000;
  --link: #0000ee;
  --link-hover: #551a8b;
  --font: "Inter", sans-serif;
}


/* Stili globali */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
}

.site-wrapper {
  margin: 1.5rem;
  max-width: 70rem;
}

@media (max-width: 600px) {
  .site-wrapper {
    margin: 1rem;
  }
}

main {
  /*max-width: 42rem;*/
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
}


/* Tabelle */
table {
  border-collapse: collapse;
  margin: 0.5em 0;
  width: 100%;
  display: block;
  overflow-x: auto;
}

table th,
table td {
  border: 1px solid black;
  padding: 3px 4px;
  text-align: left;
}


/* Header + Nav */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.site-nav a {
  text-decoration: underline;
  color: var(--link);
}

.site-nav a:hover {
  color: var(--link-hover);
}

.site-nav a.is-active {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--link);
}

.site-nav a:focus {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* --- Responsive nav */
@media (max-width: 600px) {
  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
}


/* Footer */
.site-footer {
  margin-top: 1rem;;
}

footer p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #333;
}

footer .cc-link img {
  display: inline-block;
  vertical-align: middle;
  max-width: 1em;
  max-height: 1em;
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}


/* Sezione Cucina */
.recipe figure {
  margin: 0.75em 0;
}

.recipe img {
  max-width: 200px;
  width: 100%;
  height: auto;
}
