﻿@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Pacifico&family=Sacramento&family=Caveat:wght@600&family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
  /* Colors - Elegant & Professional Palette */
  --color-bg: #fdfdfd;
  --color-text: #2a2a2a;
  --color-text-light: #666;
  --color-primary: #8a6a4b;
  /* Earthy/Gold tone for accents */
  --color-secondary: #e0e0e0;
  --color-accent: #d4a373;
  --color-surface: #ffffff;

  /* Typography */
  --font-main: 'Inter',
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  --font-serif: 'Playfair Display',
    serif;
  /* For headings */

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 7rem;
  /* Increased from 4rem for header clearance */
  --spacing-xl: 8rem;

  /* UI Elements */
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  /* Slightly lifted */
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* Floating effect */
  --transition-fast: 0.3s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Fun bounce */
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Fun: Animated Gradient Background */
body {
  font-family: var(--font-main);
  background: linear-gradient(-45deg, #fdfdfd, #faeadd, #f0f4f8, #fffdf9);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-top: 1rem;
  /* Added spacing */
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

/* Underline decoration for headings */
h2::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--color-primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

ul {
  list-style: none;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  /* Hidden by default for animation */
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   3. UTILITIES
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  /* More translucent for glass effect */
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Space between image and text */
}

.nav-profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.logo a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

/* Fun: Nav Link Hover Animation */
.nav-links a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::before {
  width: 100%;
}

/* =========================================
   5. SECTIONS
   ========================================= */
section {
  padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  /* Center vertically */
  justify-content: center;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  /* Reduce bottom space specifically for hero */
}

.hero .container {
  display: flex;
  flex-direction: row;
  /* Side-by-side on desktop */
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  width: 100%;
}

.hero-img {
  width: 300px;
  /* Slightly larger for side-by-side */
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0;
  /* Remove bottom margin since it's side-by-side */
  box-shadow: var(--shadow-md);
  border: 4px solid white;
  transition: transform 0.6s var(--transition-bounce);
  flex-shrink: 0;
  /* Prevent shrinking */
}

.hero-img:hover {
  transform: scale(1.05) rotate(2deg);
}

.hero-text {
  max-width: 600px;
  text-align: left;
  /* Align text to left for side-by-side */
  padding-left: var(--spacing-md);
}

.hero-text p {
  font-size: 1.2rem;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  margin-top: var(--spacing-md);
  padding: 0.8rem 2rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(138, 106, 75, 0.4);
  /* Colored shadow */
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(138, 106, 75, 0.6);
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
  margin-left: 10px;
}

.cta-button.secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Projects Grid & Cards */
/* Projects Grid & Cards */
#progetti {
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-sm);
  position: relative;
}

#progetti::before {
  content: "";
  display: block;
  width: 150px;
  /* Constrained width */
  height: 3px;
  background-color: var(--color-primary);
  /* Palette color */
  margin: 0 auto var(--spacing-md) auto;
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.project-card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all 0.4s var(--transition-bounce);
  /* Bouncy hover */
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  opacity: 0.5;
  transition: width 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.project-card:hover::before {
  width: 6px;
  opacity: 1;
}

/* About Grid */
.about-grid {
  grid-template-columns: 1fr 2fr;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 0.8fr 2fr;
    /* Make left part smaller */
  }
}

@media (max-width: 850px) {
  .about-grid {
    grid-template-columns: 0.7fr 2fr;
    /* Shrink left part further on small tablets */
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }
}

#explore {
  padding-top: var(--spacing-md);
}

/* Gallery Items */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}

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

.pittura-span-2 {
  grid-column: span 2;
}

@media (max-width: 1200px) {

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

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

  .pittura-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.stacked:hover img {
  transform: none;
  /* Reset the parent scale effect */
}

.gallery-item.stacked .gallery-sub-item:hover img {
  transform: scale(1.1);
  /* Re-apply scale to hovered sub-item */
}

.gallery-item div {
  /* The overlay div */
  transition: opacity 0.3s ease;
}

/* Badge for special notes inside gallery items */
.gallery-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  pointer-events: none;
  /* Make unclickable so it doesn't block image interactions */
  backdrop-filter: blur(4px);
}

/* Use on gallery/magazine items that are not links */
.no-click {
  cursor: default;
}

/* Hide gallery items while preserving their base display property when revealed */
.gallery-hidden {
  display: none !important;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 1.1rem;
  padding: var(--spacing-sm);
  cursor: pointer;
  position: relative;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: var(--color-primary);
  font-weight: 600;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.tab-btn.active::after {
  width: 100%;
}

/* Writing Section */
.writing-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.writing-item {
  padding: var(--spacing-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--color-accent);
}

.writing-item:hover {
  transform: translateX(10px);
  /* Slide effect */
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 1px solid var(--color-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: var(--spacing-md);
  margin-top: var(--spacing-xl);
  font-size: 0.9rem;
  color: var(--color-text-light);
  background: white;
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero .container {
    flex-direction: column;
    /* Stack on mobile */
    text-align: center;
  }

  .hero-text {
    text-align: center;
    padding-left: 0;
    margin-top: var(--spacing-md);
  }

  .hero-img {
    width: 220px;
    height: 220px;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.75rem;
    /* Smaller font to fit all categories */
    letter-spacing: 0.02em;
  }

  /* Prevent overlapping of header on mobile */
  section.container,
  .hero {
    margin-top: calc(var(--spacing-lg) + 3rem) !important;
  }

  /* Fotografia Hero Buttons - Mobile view */
  .foto-hero-buttons {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .foto-hero-buttons .cta-button {
    font-size: 0.8rem !important;
    padding: 0.6rem 1rem !important;
    white-space: nowrap;
  }

  /* Viaggi responsive gallery */
  .viaggi-gallery {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 6px !important;
  }

  .viaggi-gallery>div[style*="flex-direction: row"],
  .viaggi-gallery>div[style*="flex-direction: column"] {
    flex-direction: column !important;
    height: auto !important;
  }

  /* The individual image wrappers */
  .viaggi-gallery>div>div,
  .viaggi-gallery>div:not([style*="flex-direction"]) {
    height: 300px !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 8px;
    /* Even tighter for very small screens */
  }

  .nav-links a {
    font-size: 0.65rem;
  }

  /* Adjust height for very small screens */
  .viaggi-gallery>div>div,
  .viaggi-gallery>div:not([style*="flex-direction"]) {
    height: 250px !important;
  }
}

/* =========================================
   8. MAGAZINE LAYOUT (Dense)
   ========================================= */
.magazine-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.magazine-header h2 {
  margin-bottom: 0.5rem;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  /* Smaller height for compact look */
  gap: 4px;
  /* Tight gap */
  max-width: 900px;
  /* Constrained width for 'smaller' look */
  margin: 0 auto;
}

.magazine-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  /* Sharp edges for magazine feel */
}

.magazine-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.magazine-item:hover {
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.magazine-item:hover img {
  transform: scale(1.05);
}

/* 
  Layout Logic (4 Columns):
  Row 1: [1 (2x2)] [2 (1x2)] [3 (1x1)]
  Row 2: [1 (....)] [2 (....)] [4 (1x1)]
  Row 3: [5 (2x1)] [6 (2x1)]
*/

.magazine-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.magazine-item:nth-child(2) {
  grid-column: span 1;
  grid-row: span 2;
}

.magazine-item:nth-child(3) {
  grid-column: span 1;
  grid-row: span 1;
}

.magazine-item:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
  /* Placed automatically in next available slot (Row 2, Col 4) */
}

.magazine-item:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}

.magazine-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 1;
}

/* Mobile: Stacked */
@media (max-width: 768px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .magazine-grid:not(.eventi-grid) .magazine-item:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* Make 1st item big on mobile too */
  .magazine-grid:not(.eventi-grid) .magazine-item:nth-child(1) {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }
}

/* Eventi Responsive Grids */
.eventi-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 800px !important;
  margin-bottom: 4rem !important;
  grid-auto-rows: auto !important;
  /* Let aspect ratio decide height */
}

/* Solo per la prima griglia (Lauree) che non ha classi aggiuntive */
.eventi-grid:not(.eventi-speciali):not(.eventi-feste) .eventi-item {
  aspect-ratio: 398 / 350;
  height: auto !important;
}

.eventi-grid.eventi-speciali {
  grid-template-columns: repeat(3, 1fr) !important;
}

.eventi-grid.eventi-speciali .eventi-item {
  aspect-ratio: 264 / 350;
  height: auto !important;
}

.eventi-grid.eventi-speciali .eventi-item.big {
  aspect-ratio: 532 / 350;
}

.eventi-grid.eventi-feste {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1000px !important;
}

.eventi-grid.eventi-feste .eventi-item {
  aspect-ratio: 331 / 300;
  height: auto !important;
}

.eventi-item {
  /* No fixed height, let aspect ratio handle it */
  position: relative;
}

.eventi-item.big {
  grid-column: span 2 !important;
}

@media (max-width: 768px) {

  .eventi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .eventi-grid.eventi-speciali,
  .eventi-grid.eventi-feste {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Maintain relative span on mobile */
  .eventi-item.big {
    grid-column: span 2 !important;
  }
}

/* =========================================
   9. SKILLS SECTION
   ========================================= */
.skills-container {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.skills-column {
  flex: 1;
  text-align: left;
}

.skills-column h4 {
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Vertical divider logic */
.skills-column:first-child {
  border-right: 1px solid var(--color-primary);
  padding-right: var(--spacing-md);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 20px;
  justify-items: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  color: var(--color-primary);
}

.skill-item i {
  font-size: 4.5rem;
  color: var(--color-text);
  margin-bottom: 5px;
}

.skill-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
  }

  .skills-column:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-primary);
    padding-right: 0;
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
}

/* Contact Form Refinements */
.contact-form textarea {
  min-height: 250px;
  width: 100%;
  resize: none;
  padding: 1rem;
  font-family: inherit;
}


.logo a {
  /* Option 1: Sacramento (Elegant, Thin, Round) */
  font-family: 'Sacramento', cursive;

  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.3s ease, opacity 0.4s ease;

  /* Hidden until the custom font is confirmed loaded */
  opacity: 0;
}

.logo a.font-loaded {
  opacity: 1;
}

/* =========================================
   10. BIRTHDAY SPECIAL FEATURE
   ========================================= */
.birthday-banner {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  padding: 1rem 1.5rem;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-width: 250px;
  text-align: center;
  border: 2px solid white;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.birthday-banner.hidden {
  transform: translateY(-50%) translateX(100%);
}

.banner-content p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
  font-weight: 500;
}

.confetti-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.clickable-link {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.clickable-link:hover {
  color: #d63384;
  /* A pop of darker pink for hover */
}

/* =========================================
   12. URGENT BANNER
   ========================================= */
.urgent-banner {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  padding: 1rem 1.5rem;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-width: 250px;
  text-align: center;
  border: 2px solid var(--color-surface);
  border-left: none;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.urgent-banner.hidden {
  transform: translateY(-50%) translateX(-100%);
}

.urgent-banner .banner-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.urgent-banner p {
  font-size: 0.95rem;
  color: var(--color-surface);
  margin: 0;
  font-weight: 500;
  text-align: center;
}

.warning-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.close-urgent-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  color: var(--color-surface);
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.2s;
  z-index: 10000;
}

.close-urgent-btn:hover {
  transform: scale(1.2);
}



/* =========================================
   13. DISEGNO LAYOUT WRAPPER
   ========================================= */
.disegno-wrapper {
  --d-height: clamp(280px, 32vw, 420px);
  /* Height responsive to screen size */
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--spacing-sm);
  /* Standard spacing */
  width: 100%;
  height: var(--d-height);
  flex-wrap: nowrap;
}

.disegno-wrapper>.gallery-item {
  aspect-ratio: unset !important;
  height: 100%;
}

.disegno-standard {
  flex: 0 0 var(--d-height);
  /* Make left image a perfect square */
}

.disegno-stacked {
  /* Fix width to perfectly fit 2 smaller squares with no empty space */
  flex: 0 0 calc((var(--d-height) - var(--spacing-sm)) / 2);
}

.collab-item {
  flex: 0 1 calc(var(--d-height) * 1.6);
  /* Retain proportion for collab */
  position: relative;
}

.disegno-stacked .gallery-sub-item {
  height: calc((100% - var(--spacing-sm)) / 2);
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  pointer-events: auto;
  cursor: pointer;
}

.disegno-stacked .gallery-sub-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Responsive properties handled organically by CSS variables and flex/aspect ratios without stacking on mobile. Removing the artificial breakpoints so they behave like the rest */

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #fffdf9, #fff0f5);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--color-text);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  color: #e5989b;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  background: white;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(138, 106, 75, 0.2);
}

/* =========================================
   12. CUTE CONTACT SECTION
   ========================================= */
.cute-contact-wrapper {
  background: linear-gradient(135deg, #fdfbf9 0%, #f6efe9 100%);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.cute-contact-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.cute-contact-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cute-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.cute-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fdfdfd;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cute-input:focus {
  outline: none;
  border-color: #d8c3b5;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(138, 106, 75, 0.15), inset 0 2px 5px rgba(0, 0, 0, 0);
  transform: scale(1.01);
}

.cute-btn {
  background: linear-gradient(45deg, #d8c3b5, #e8dfd5);
  color: #4a3e35;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(138, 106, 75, 0.2);
}

.cute-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(138, 106, 75, 0.3);
  background: linear-gradient(45deg, #e8dfd5, #d8c3b5);
}

.floating-icon {
  display: inline-block;
  font-size: 2rem;
  animation: floatIcon 3s ease-in-out infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}