/* ============================================
   SANFELICE LEGNAMI — Global Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 115%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-gold-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- CSS Custom Properties --- */
:root {
  /* Colori primari */
  --color-gold:          #bc9f4c;
  --color-gold-hover:    #aa8c44;
  --color-gold-light:    #d4be7a;

  /* Neutri */
  --color-white:         #ffffff;
  --color-bg-light:      #f8f8f8;
  --color-bg-gray:       #eaeaea;
  --color-text:          #333333;
  --color-text-light:    #666666;
  --color-dark:          #1a1a1a;
  --color-black:         #000000;

  /* Overlay */
  --overlay-dark:        rgba(0, 0, 0, 0.55);
  --overlay-light:       rgba(0, 0, 0, 0.35);

  /* Tipografia */
  --font-heading:    'Darker Grotesque', sans-serif;
  --font-subheading: 'Darker Grotesque', sans-serif;
  --font-body:       'Darker Grotesque', sans-serif;

  /* Scale tipografica */
  --text-hero:       clamp(2.5rem, 5vw, 4.5rem);
  --text-h1:         clamp(2rem, 4vw, 3rem);
  --text-h2:         clamp(1.5rem, 3vw, 2.25rem);
  --text-h3:         clamp(1.25rem, 2vw, 1.5rem);
  --text-body:       1rem;
  --text-small:      0.875rem;
  --text-button:     1rem;

  /* Spaziatura */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  --container-width:    1200px;
  --container-padding:  1.5rem;
  --section-padding:    5rem 0;
}

/* --- Tipografia --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

.text-hero {
  font-size: var(--text-hero);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-subheading {
  font-family: var(--font-subheading);
  font-weight: 400;
  font-style: italic;
}

.text-label {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.text-gold { color: var(--color-gold); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section--alt {
  background-color: var(--color-bg-light);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--cream {
  background-color: #f4ede0;
}

.section--has-deco {
  position: relative;
  overflow: hidden;
}

.section-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.25;
  width: 260px;
  height: auto;
  z-index: 0;
}

.section-deco--bottom-left {
  bottom: -40px;
  left: -40px;
}

.section--has-deco > .container {
  position: relative;
  z-index: 1;
}

.section--overlay {
  position: relative;
}

.section--overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
  z-index: 1;
  pointer-events: none;
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Utilities */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-narrow { max-width: 800px; }

.section-title-bold {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
}
.max-w-wide { max-width: 900px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
