@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-secondary: #f4f4f4;
  --fg: #111111;
  --fg-secondary: #444444;
  --accent: #0033cc; /* Elegant Editorial Blue */
  --border: #e0e0e0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--fg);
}

/* Typography */
.huge-text {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.huge-text span {
  color: var(--accent);
}

.sub-text {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--fg-secondary);
  max-width: 700px;
  margin-top: 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Layout */
.container-aww {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
}

.section-aww {
  padding: 4rem 0;
}

/* Nav */
.nav-awwwards {
  border-bottom: 1px solid var(--border);
  padding: 1rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo-awwwards {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.logo-awwwards img {
  height: 40px;
  margin-right: 10px;
}

.logo-awwwards span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.nav-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.header-spacing {
  padding-top: max(10vh, 80px);
}

@media (max-width: 768px) {
  .nav-awwwards {
    flex-direction: column;
    padding: 1rem 4vw;
    gap: 1rem;
  }
  .nav-links {
    justify-content: center;
    width: 100%;
  }
  .header-spacing {
    padding-top: 140px; /* Più spazio per la nav a due righe su mobile */
  }
}

/* Buttons */
.btn-awwwards {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 0.8rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 2rem;
}

.btn-awwwards:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Divider */
.hr-awwwards {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Lists and Archive Links */
.list-awwwards {
  display: flex;
  flex-direction: column;
}

.list-awwwards a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  transition: color 0.2s, padding-left 0.2s;
}

.list-awwwards a:hover {
  padding-left: 1rem;
  color: var(--accent);
}

.list-awwwards a .arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s;
  color: var(--accent);
}

.list-awwwards a:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Ad Banners Placeholder */
.ad-banner {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  text-align: center;
  padding: 1.5rem;
  margin: 2.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Article Content */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .article-grid {
    grid-template-columns: 3fr 1fr; /* 3 parts content, 1 part sidebar */
  }
}

.article-content {
  font-size: 1.1rem; /* Standard blog reading size */
  color: var(--fg-secondary);
}

.article-content h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--fg);
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--fg);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.article-content ul li, .article-content ol li {
  margin-bottom: 0.5rem;
}

/* Sidebar for ads and widgets */
.sidebar {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

@media (max-width: 991px) {
  .sidebar {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }
}

/* Footer */
footer {
  padding: 3rem 4vw;
  border-top: 1px solid var(--border);
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  color: var(--fg-secondary);
  font-size: 0.85rem;
}

/* Progress bar */
#pb { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 4px; 
    background: var(--accent); 
    z-index: 2000; 
    width: 0%; 
    transition: width 0.1s; 
}
