:root {
  --bg: #F4F4F4;
  --text: #1C1C1C;
  --accent: #FF7002;
}

/* ------------------------------
   RESET GLOBALE
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.navbar {
  background: #D9A875;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 80px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.25);
}

.site-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-left: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s;
}

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

/* Hamburger Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    width: 200px;
    gap: 0;
    display: none;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    padding: 0.75rem 1rem;
  }

  .hamburger {
    display: flex;
  }
}

/* ------------------------------
   HERO / ABOUT
------------------------------ */
.hero-about {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding: 3rem 1rem;
  overflow: hidden;
  background: #F4F4F4;
  color: var(--text);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 800;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  margin-bottom: 2rem;
  font-style: italic;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 2rem;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-photo img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  max-width: 700px;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ------------------------------
   INTERESTS
------------------------------ */
.interests {
  background: #FFF3E6;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text);
}

.interests h2 {
  margin-bottom: 3rem;
}

.interests-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.interests-cards .card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 250px;
  width: 100%;
  padding: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.interests-cards .card h3,
.interests-cards .card p {position: relative;
  z-index: 2;
}

.interests-cards .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.interests-cards .card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ------------------------------
   CONTACTS
------------------------------ */
.contacts {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(-45deg, #F4F4F4, #ffffff, #ffe8d1, #fff3e6);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: var(--text);
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'Lato', sans-serif;
}

.contact-form button {
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #e66600;
  transform: scale(1.05);
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
  background: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin: 0;
}

/* ------------------------------
   LINKS PAGE
------------------------------ */
body.links-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.links-page .links-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  margin: 0;
  width: 100%;
  background: linear-gradient(135deg, #FFF3E6, #FFE8D1);
}

body.links-page .links-section .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

body.links-page .links-section h2 {
  margin: 0 0 1.25rem 0;
  padding: 0;
  text-align: center;
  color: var(--text);
}

body.links-page .links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

body.links-page .links-list li {
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 1.25rem 1.5rem;
  flex: 1 1 300px;     /* base width 300px, grow/shrink automatico */
  max-width: 400px;    /* non troppo largo */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.links-page .links-list li:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

body.links-page .links-list li a {
  display: block;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

body.links-page .links-list li p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* ------------------------------
   ANIMATIONS
------------------------------ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ------------------------------
   MOBILE
------------------------------ */
@media (max-width: 768px) {
  .hero-about {
    text-align: center;
    padding: 4rem 1rem;
  }

  .hero-content {
    text-align: center;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
  }

  .about-photo {
    width: 200px;
    height: 200px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }

  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
  }

  .about-text {
    max-width: 100%;
  }

  .interests-cards {
    flex-direction: column;
    align-items: center;
  }

  .interests-cards .card {
    max-width: 90%;
  }

  .contact-form {
    max-width: 100%;
  }
  
  body.likns-page .links-list li {
    max-height:110px;
  }

  body.links-page .links-section .container {
    flex-direction: column;
    align-items: center;
  }

  body.links-page .links-list {
    flex-direction: column;
    align-items: center;
  }
}
