/* ===================================
   BASE.CSS - Wspólne style bazowe
   La mia Fabbrica - Restauracja
   =================================== */

/* FONTY */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Marcellus&display=swap');

/* ===================================
   CSS VARIABLES - Kolory i zmienne
   =================================== */
:root {
    /* Kolory główne */
    --color-primary: #1FA05A;       /* Zielony (flaga włoska) */
    --color-secondary: #E53935;     /* Czerwony (flaga włoska) */
    --color-accent: #FFD54F;        /* Złoty akcent */

    /* Kolory tekstu */
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-text-muted: #999999;

    /* Tła */
    --color-bg-white: #FFFFFF;
    --color-bg-cream: #F5F0E8;
    --color-bg-beige: #FAF8F5;
    --color-bg-dark: #1a1a1a;
    --color-bg-grey: #F5F5F5;

    /* Fonty */
    --font-primary: 'Roboto', Arial, sans-serif;
    --font-heading: 'Manrope', sans-serif;
    --font-accent: 'Marcellus', serif;

    /* Rozmiary */
    --max-width: 1400px;
    --header-height: 90px;

    /* Cienie */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);

    /* Przejścia */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
}

/* ===================================
   RESET I PODSTAWY
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

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

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

.text-green { color: var(--color-primary); }
.text-red { color: var(--color-secondary); }
.text-white { color: #FFFFFF; }
.text-muted { color: var(--color-text-muted); }

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 80px 0;
}

.section-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ===================================
   ANIMACJE SCROLL
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Subtelna animacja float */
@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */
/*
   Mobile: max-width: 480px
   Tablet: max-width: 768px
   Desktop small: max-width: 1024px
   Desktop: max-width: 1200px
   Desktop large: min-width: 1400px
*/
