const templateSeeds = [
  // ============================================
  // 1. RACCOLTA FUNGHI
  // ============================================
  {
    name: 'Raccolta Funghi nel Bosco',
    templateType: 'outdoor-nature',
    description: 'Template per eventi di raccolta funghi, passeggiate naturalistiche, sagre micologiche',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#1a150f',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#2d3a1f', '#1a150f', '#0d0906'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(26,21,15,0)' },
              { position: 0.4, color: 'rgba(26,21,15,0.3)' },
              { position: 0.7, color: 'rgba(26,21,15,0.7)' },
              { position: 1, color: 'rgba(26,21,15,0.95)' },
            ],
          },
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.25, w: 0.88, h: 0.32 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 20,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 35, offsetY: 15, color: 'rgba(0,0,0,0.6)' },
          border: { enabled: true, width: 3, color: 'rgba(139,90,43,0.4)' },
        },
      },
      {
        id: 'layer_decorative_top',
        type: 'shape',
        zIndex: 2,
        position: { x: 0.5, y: 0.02, w: 0.3, h: 0.003 },
        anchor: 'top-center',
        required: false,
        style: { shape: 'rectangle', fill: '#8b5a2b', opacity: 0.6, borderRadius: 2 },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.48, w: 0.92, h: 0.12 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Playfair Display',
          fontWeight: 700,
          fontSize: 62,
          color: '#f4e9d9',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 3,
          lineHeight: 1.1,
          shadow: { enabled: true, blur: 12, offsetX: 2, offsetY: 3, color: 'rgba(0,0,0,0.9)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.58, w: 0.85, h: 0.05 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 26,
          fontStyle: 'italic',
          color: '#c9b896',
          textAlign: 'center',
          letterSpacing: 1,
        },
      },
      {
        id: 'layer_divider',
        type: 'divider',
        zIndex: 9,
        position: { x: 0.5, y: 0.635, w: 0.25, h: 0.002 },
        anchor: 'center',
        style: { color: '#8b5a2b', width: 2, opacity: 0.7 },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.69, w: 0.9, h: 0.06 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 52,
          color: '#d4a854',
          textAlign: 'center',
          letterSpacing: 4,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 8, offsetY: 2, color: 'rgba(0,0,0,0.8)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.77, w: 0.85, h: 0.045 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'forest', size: 24, color: '#6b8e23' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 26,
          color: '#e8dcc8',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.84, w: 0.9, h: 0.04 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 20,
          color: '#a89880',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.9, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 16,
          fontStyle: 'italic',
          color: '#8a7a68',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 3,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.15, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_2',
          position: { x: 0.5, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_3',
          position: { x: 0.85, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
      ],
    },

    palette: {
      primary: '#8b5a2b',
      secondary: '#2d3a1f',
      accent: '#d4a854',
      background: '#1a150f',
      text: '#f4e9d9',
      textSecondary: '#c9b896',
      textMuted: '#8a7a68',
    },

    typography: {
      titleFont: 'Playfair Display',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Playfair Display',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'mystical autumn forest, morning mist, golden light filtering through oak trees, porcini mushrooms on forest floor, photorealistic, cinematic, no text',
      mainImage:
        'wicker basket full of fresh porcini mushrooms, forest background, warm natural light, rustic style, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['funghi', 'natura', 'bosco', 'autunno', 'sagra', 'outdoor'],
      isPublic: true,
    },
  },

  // ============================================
  // 2. AUTOCOSTRUZIONE FORNO IN TERRA CRUDA
  // ============================================
  {
    name: 'Workshop Forno in Terra Cruda',
    templateType: 'workshop-craft',
    description: 'Template per laboratori di bioedilizia, autocostruzione, tecniche tradizionali con terra cruda',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#2a1f1a',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#5d4037', '#3e2723', '#1a1210'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(42,31,26,0.1)' },
              { position: 0.35, color: 'rgba(42,31,26,0.4)' },
              { position: 0.65, color: 'rgba(42,31,26,0.75)' },
              { position: 1, color: 'rgba(42,31,26,0.95)' },
            ],
          },
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.26, w: 0.85, h: 0.3 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 16,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 40, offsetY: 18, color: 'rgba(0,0,0,0.55)' },
          border: { enabled: true, width: 4, color: 'rgba(188,143,92,0.35)' },
        },
      },
      {
        id: 'layer_badge',
        type: 'shape',
        zIndex: 5,
        position: { x: 0.5, y: 0.43, w: 0.35, h: 0.035 },
        anchor: 'center',
        style: { shape: 'rectangle', fill: '#bc8f5c', opacity: 0.9, borderRadius: 20 },
      },
      {
        id: 'layer_badge_text',
        type: 'customText',
        zIndex: 6,
        position: { x: 0.5, y: 0.43, w: 0.33, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 700,
          fontSize: 16,
          color: '#1a1210',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 3,
        },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.52, w: 0.92, h: 0.13 },
        anchor: 'center',
        required: true,
        maxLines: 3,
        style: {
          fontFamily: 'Montserrat',
          fontWeight: 900,
          fontSize: 52,
          color: '#faf3e8',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 2,
          lineHeight: 1.05,
          shadow: { enabled: true, blur: 15, offsetY: 4, color: 'rgba(0,0,0,0.85)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.635, w: 0.88, h: 0.045 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 24,
          color: '#d4c4a8',
          textAlign: 'center',
          lineHeight: 1.4,
        },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.72, w: 0.9, h: 0.055 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 50,
          color: '#e8a54b',
          textAlign: 'center',
          letterSpacing: 5,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 10, offsetY: 2, color: 'rgba(0,0,0,0.7)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.79, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'place', size: 22, color: '#bc8f5c' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 24,
          color: '#f0e6d8',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.855, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 19,
          color: '#b8a88c',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.905, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 15,
          color: '#9a8a70',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 2,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.25, y: 0.96, w: 0.14, h: 0.045 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.8 },
        },
        {
          id: 'logo_2',
          position: { x: 0.75, y: 0.96, w: 0.14, h: 0.045 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.8 },
        },
      ],
    },

    palette: {
      primary: '#bc8f5c',
      secondary: '#5d4037',
      accent: '#e8a54b',
      background: '#2a1f1a',
      text: '#faf3e8',
      textSecondary: '#d4c4a8',
      textMuted: '#9a8a70',
    },

    typography: {
      titleFont: 'Montserrat',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Montserrat',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'outdoor workshop scene, people building cob oven with bare hands, earth clay straw mixture, rustic countryside, warm afternoon light, documentary style, no text',
      mainImage:
        'traditional earthen bread oven with fire inside, rustic garden setting, artisan craftsmanship, warm terracotta colors, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['workshop', 'terra cruda', 'bioedilizia', 'autocostruzione', 'forno', 'artigianato'],
      isPublic: true,
    },
  },

  // ============================================
  // 3. RACCOLTA GRANO E MIETITURA
  // ============================================
  {
    name: 'Festa della Mietitura',
    templateType: 'harvest-tradition',
    description: 'Template per eventi di raccolta grano, feste contadine, trebbiatura tradizionale',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#1f1a0f',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#d4a03a', '#8b6914', '#1f1a0f'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(31,26,15,0)' },
              { position: 0.3, color: 'rgba(31,26,15,0.25)' },
              { position: 0.6, color: 'rgba(31,26,15,0.65)' },
              { position: 1, color: 'rgba(31,26,15,0.92)' },
            ],
          },
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.24, w: 0.9, h: 0.3 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 12,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 30, offsetY: 12, color: 'rgba(0,0,0,0.5)' },
        },
      },
      {
        id: 'layer_wheat_icon',
        type: 'customText',
        zIndex: 8,
        position: { x: 0.5, y: 0.42, w: 0.2, h: 0.04 },
        anchor: 'center',
        style: {
          fontSize: 40,
          textAlign: 'center',
        },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.5, w: 0.92, h: 0.11 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Playfair Display',
          fontWeight: 700,
          fontSize: 58,
          color: '#fff8e7',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 4,
          lineHeight: 1.08,
          shadow: { enabled: true, blur: 14, offsetY: 3, color: 'rgba(0,0,0,0.85)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.595, w: 0.85, h: 0.045 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 24,
          fontStyle: 'italic',
          color: '#e8d9b8',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.69, w: 0.9, h: 0.058 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 54,
          color: '#f5c542',
          textAlign: 'center',
          letterSpacing: 6,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 10, offsetY: 2, color: 'rgba(0,0,0,0.75)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.77, w: 0.85, h: 0.042 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'grass', size: 24, color: '#c9a227' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 25,
          color: '#f8f0dc',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.84, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 19,
          color: '#c4b694',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.895, w: 0.85, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 16,
          color: '#a89868',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 3,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.15, y: 0.96, w: 0.11, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_2',
          position: { x: 0.5, y: 0.96, w: 0.11, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_3',
          position: { x: 0.85, y: 0.96, w: 0.11, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
      ],
    },

    palette: {
      primary: '#c9a227',
      secondary: '#8b6914',
      accent: '#f5c542',
      background: '#1f1a0f',
      text: '#fff8e7',
      textSecondary: '#e8d9b8',
      textMuted: '#a89868',
    },

    typography: {
      titleFont: 'Playfair Display',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Playfair Display',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'golden wheat field at sunset, warm summer light, rolling hills, rural Italian landscape, harvest season, cinematic photography, no text',
      mainImage:
        'farmers harvesting wheat with traditional scythes, vintage rural scene, golden hour, documentary style, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['grano', 'mietitura', 'raccolta', 'contadino', 'tradizione', 'estate'],
      isPublic: true,
    },
  },

  // ============================================
  // 4. COSTRUZIONE CASE IN TERRA / BIOEDILIZIA
  // ============================================
  {
    name: 'Workshop Case in Terra',
    templateType: 'eco-building',
    description: 'Template per workshop di bioedilizia, case in terra cruda, cob building, permacultura costruttiva',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#1a1612',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#6d5a42', '#3d3228', '#1a1612'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(26,22,18,0.1)' },
              { position: 0.4, color: 'rgba(26,22,18,0.5)' },
              { position: 0.7, color: 'rgba(26,22,18,0.8)' },
              { position: 1, color: 'rgba(26,22,18,0.96)' },
            ],
          },
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.25, w: 0.88, h: 0.32 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 18,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 35, offsetY: 15, color: 'rgba(0,0,0,0.55)' },
        },
      },
      {
        id: 'layer_eco_badge',
        type: 'shape',
        zIndex: 5,
        position: { x: 0.82, y: 0.12, w: 0.14, h: 0.065 },
        anchor: 'center',
        style: { shape: 'circle', fill: '#4a7c4e', opacity: 0.92, borderRadius: 100 },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.49, w: 0.92, h: 0.13 },
        anchor: 'center',
        required: true,
        maxLines: 3,
        style: {
          fontFamily: 'Montserrat',
          fontWeight: 800,
          fontSize: 50,
          color: '#f5ede0',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 2,
          lineHeight: 1.08,
          shadow: { enabled: true, blur: 12, offsetY: 3, color: 'rgba(0,0,0,0.85)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.615, w: 0.88, h: 0.05 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 23,
          color: '#c8baa0',
          textAlign: 'center',
          lineHeight: 1.4,
        },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.71, w: 0.9, h: 0.055 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 50,
          color: '#7fb069',
          textAlign: 'center',
          letterSpacing: 5,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 8, offsetY: 2, color: 'rgba(0,0,0,0.7)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.785, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'eco', size: 22, color: '#7fb069' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 24,
          color: '#ebe3d4',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.85, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 18,
          color: '#a89a80',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.9, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 15,
          color: '#8a7c64',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 2,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.28, y: 0.96, w: 0.14, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.82 },
        },
        {
          id: 'logo_2',
          position: { x: 0.72, y: 0.96, w: 0.14, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.82 },
        },
      ],
    },

    palette: {
      primary: '#7fb069',
      secondary: '#6d5a42',
      accent: '#4a7c4e',
      background: '#1a1612',
      text: '#f5ede0',
      textSecondary: '#c8baa0',
      textMuted: '#8a7c64',
    },

    typography: {
      titleFont: 'Montserrat',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Montserrat',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'earthen house construction, cob building process, natural materials, rural eco-village, warm afternoon light, documentary style, no text',
      mainImage:
        'people building with earth clay straw, hands working together, sustainable architecture, natural building workshop, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['bioedilizia', 'terra cruda', 'case', 'cob', 'permacultura', 'sostenibile', 'workshop'],
      isPublic: true,
    },
  },

  // ============================================
  // 5. FESTA DEL SOLSTIZIO / EQUINOZIO
  // ============================================
  {
    name: 'Celebrazione Solstizio',
    templateType: 'spiritual-nature',
    description:
      'Template per celebrazioni solstizio, equinozio, rituali stagionali, cerchi sacri, eventi spirituali nella natura',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#0d0a14',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#1a1040', '#2d1b4e', '#0d0a14'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(13,10,20,0)' },
              { position: 0.35, color: 'rgba(13,10,20,0.35)' },
              { position: 0.65, color: 'rgba(13,10,20,0.7)' },
              { position: 1, color: 'rgba(13,10,20,0.94)' },
            ],
          },
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.27, w: 0.72, h: 0.28 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 200,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 50, offsetY: 0, color: 'rgba(147,112,219,0.4)' },
          border: { enabled: true, width: 3, color: 'rgba(212,175,55,0.5)' },
        },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.5, w: 0.92, h: 0.11 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Playfair Display',
          fontWeight: 700,
          fontSize: 56,
          color: '#f0e6ff',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 6,
          lineHeight: 1.1,
          shadow: { enabled: true, blur: 20, offsetY: 0, color: 'rgba(147,112,219,0.6)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.6, w: 0.85, h: 0.05 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 24,
          fontStyle: 'italic',
          color: '#c4b8e0',
          textAlign: 'center',
          letterSpacing: 2,
        },
      },
      {
        id: 'layer_divider_moon',
        type: 'customText',
        zIndex: 8,
        position: { x: 0.5, y: 0.665, w: 0.3, h: 0.03 },
        anchor: 'center',
        style: { fontSize: 24, textAlign: 'center', color: '#d4af37' },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.72, w: 0.9, h: 0.055 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 48,
          color: '#d4af37',
          textAlign: 'center',
          letterSpacing: 5,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 12, offsetY: 0, color: 'rgba(212,175,55,0.5)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.79, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'nights_stay', size: 22, color: '#9370db' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 500,
          fontSize: 24,
          color: '#e8e0f4',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.855, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 18,
          color: '#a090c0',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.905, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 15,
          fontStyle: 'italic',
          color: '#8070a0',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 2,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.25, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.75 },
        },
        {
          id: 'logo_2',
          position: { x: 0.75, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.75 },
        },
      ],
    },

    palette: {
      primary: '#9370db',
      secondary: '#2d1b4e',
      accent: '#d4af37',
      background: '#0d0a14',
      text: '#f0e6ff',
      textSecondary: '#c4b8e0',
      textMuted: '#8070a0',
    },

    typography: {
      titleFont: 'Playfair Display',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Playfair Display',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'mystical night sky with stars and aurora, ancient stone circle, solstice moonlight, ethereal purple blue atmosphere, fantasy art style, no text',
      mainImage: 'full moon rising over sacred landscape, spiritual ceremony at night, mystical atmosphere, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['solstizio', 'equinozio', 'spirituale', 'natura', 'luna', 'rituale', 'cerchio'],
      isPublic: true,
    },
  },

  // ============================================
  // 6. MERCATO CONTADINO / FARMERS MARKET
  // ============================================
  {
    name: 'Mercato Contadino Bio',
    templateType: 'farmers-market',
    description: 'Template per mercati contadini, vendita diretta, prodotti biologici, km zero',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#f5f0e6',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#f5f0e6', '#e8dcc8', '#d4c4a8'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(245,240,230,0.3)' },
              { position: 0.5, color: 'rgba(245,240,230,0.6)' },
              { position: 1, color: 'rgba(245,240,230,0.92)' },
            ],
          },
        },
      },
      {
        id: 'layer_header_band',
        type: 'shape',
        zIndex: 2,
        position: { x: 0, y: 0, w: 1, h: 0.08 },
        anchor: 'top-left',
        style: { shape: 'rectangle', fill: '#2e7d32', opacity: 1 },
      },
      {
        id: 'layer_header_text',
        type: 'customText',
        zIndex: 3,
        position: { x: 0.5, y: 0.04, w: 0.9, h: 0.04 },
        anchor: 'center',
        style: {
          fontFamily: 'Montserrat',
          fontWeight: 700,
          fontSize: 20,
          color: '#ffffff',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 8,
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.3, w: 0.88, h: 0.3 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 16,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 25, offsetY: 10, color: 'rgba(0,0,0,0.2)' },
          border: { enabled: true, width: 4, color: '#ffffff' },
        },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.52, w: 0.92, h: 0.1 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Playfair Display',
          fontWeight: 700,
          fontSize: 54,
          color: '#2e5a1c',
          textAlign: 'center',
          letterSpacing: 2,
          lineHeight: 1.1,
          shadow: { enabled: false },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.61, w: 0.85, h: 0.045 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 22,
          color: '#5a7a3a',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_divider',
        type: 'divider',
        zIndex: 9,
        position: { x: 0.5, y: 0.67, w: 0.35, h: 0.002 },
        anchor: 'center',
        style: { color: '#2e7d32', width: 3, opacity: 0.6 },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.72, w: 0.9, h: 0.055 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 50,
          color: '#d35400',
          textAlign: 'center',
          letterSpacing: 4,
          textTransform: 'uppercase',
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.79, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'storefront', size: 22, color: '#2e7d32' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 24,
          color: '#3a5a28',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.855, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 18,
          color: '#6a8a5a',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.905, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 16,
          color: '#2e7d32',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 2,
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 3,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.15, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.9 },
        },
        {
          id: 'logo_2',
          position: { x: 0.5, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.9 },
        },
        {
          id: 'logo_3',
          position: { x: 0.85, y: 0.96, w: 0.12, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.9 },
        },
      ],
    },

    palette: {
      primary: '#2e7d32',
      secondary: '#5a7a3a',
      accent: '#d35400',
      background: '#f5f0e6',
      text: '#2e5a1c',
      textSecondary: '#5a7a3a',
      textMuted: '#6a8a5a',
    },

    typography: {
      titleFont: 'Playfair Display',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Montserrat',
    },

    defaultAiPromptHints: {
      backgroundImage:
        "fresh organic vegetables on rustic wooden table, farmer's market display, natural daylight, soft focus background, warm colors, no text",
      mainImage:
        'colorful seasonal produce, tomatoes zucchini peppers herbs in wooden crates, authentic farmers market, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['mercato', 'contadino', 'bio', 'km zero', 'prodotti', 'agricoltura'],
      isPublic: true,
    },
  },

  // ============================================
  // 7. CORSO DI APICOLTURA NATURALE
  // ============================================
  {
    name: 'Corso Apicoltura Naturale',
    templateType: 'beekeeping-course',
    description: 'Template per corsi di apicoltura, laboratori sulle api, miele, biodiversità',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#1a1408',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#6b5a2e', '#3a3018', '#1a1408'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(26,20,8,0.15)' },
              { position: 0.4, color: 'rgba(26,20,8,0.5)' },
              { position: 0.7, color: 'rgba(26,20,8,0.8)' },
              { position: 1, color: 'rgba(26,20,8,0.96)' },
            ],
          },
        },
      },
      {
        id: 'layer_honeycomb_pattern',
        type: 'shape',
        zIndex: 1,
        position: { x: 0, y: 0.85, w: 1, h: 0.15 },
        anchor: 'top-left',
        style: { shape: 'rectangle', fill: 'rgba(218,165,32,0.08)', opacity: 1 },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 2,
        position: { x: 0.5, y: 0.25, w: 0.75, h: 0.28 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 140,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 40, offsetY: 15, color: 'rgba(218,165,32,0.3)' },
          border: { enabled: true, width: 5, color: 'rgba(218,165,32,0.6)' },
        },
      },
      {
        id: 'layer_bee_icon',
        type: 'customText',
        zIndex: 5,
        position: { x: 0.5, y: 0.42, w: 0.15, h: 0.04 },
        anchor: 'center',
        style: { fontSize: 36, textAlign: 'center' },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.51, w: 0.92, h: 0.11 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Montserrat',
          fontWeight: 800,
          fontSize: 50,
          color: '#fff8dc',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 3,
          lineHeight: 1.1,
          shadow: { enabled: true, blur: 15, offsetY: 4, color: 'rgba(0,0,0,0.8)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.615, w: 0.85, h: 0.05 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 23,
          color: '#e8d4a8',
          textAlign: 'center',
          lineHeight: 1.4,
        },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.71, w: 0.9, h: 0.055 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 50,
          color: '#daa520',
          textAlign: 'center',
          letterSpacing: 5,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 10, offsetY: 2, color: 'rgba(0,0,0,0.7)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.785, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'hive', size: 22, color: '#daa520' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 24,
          color: '#f5ecd0',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.85, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 18,
          color: '#c4a870',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.9, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 15,
          color: '#a08850',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 2,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.28, y: 0.96, w: 0.13, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_2',
          position: { x: 0.72, y: 0.96, w: 0.13, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
      ],
    },

    palette: {
      primary: '#daa520',
      secondary: '#6b5a2e',
      accent: '#ffd700',
      background: '#1a1408',
      text: '#fff8dc',
      textSecondary: '#e8d4a8',
      textMuted: '#a08850',
    },

    typography: {
      titleFont: 'Montserrat',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Montserrat',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'beehives in flower meadow, honeybees flying, golden afternoon light, lavender field background, dreamy atmosphere, no text',
      mainImage: 'close-up of bees on honeycomb, golden honey dripping, macro photography, warm lighting, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['apicoltura', 'api', 'miele', 'corso', 'natura', 'biodiversità'],
      isPublic: true,
    },
  },

  // ============================================
  // 8. FESTA DEL VINO NATURALE
  // ============================================
  {
    name: 'Festa del Vino Naturale',
    templateType: 'wine-festival',
    description: 'Template per feste del vino, degustazioni, vendemmia, cantine aperte',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#1a0a15',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#4a1942', '#2d1028', '#1a0a15'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(26,10,21,0.1)' },
              { position: 0.35, color: 'rgba(26,10,21,0.45)' },
              { position: 0.65, color: 'rgba(26,10,21,0.75)' },
              { position: 1, color: 'rgba(26,10,21,0.95)' },
            ],
          },
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.26, w: 0.85, h: 0.3 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 20,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 40, offsetY: 15, color: 'rgba(128,0,64,0.4)' },
          border: { enabled: true, width: 3, color: 'rgba(212,175,55,0.4)' },
        },
      },
      {
        id: 'layer_wine_icon',
        type: 'customText',
        zIndex: 5,
        position: { x: 0.5, y: 0.44, w: 0.15, h: 0.04 },
        anchor: 'center',
        style: { fontSize: 32, textAlign: 'center' },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.52, w: 0.92, h: 0.11 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Playfair Display',
          fontWeight: 700,
          fontSize: 56,
          color: '#f8e8f0',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 4,
          lineHeight: 1.08,
          shadow: { enabled: true, blur: 15, offsetY: 3, color: 'rgba(0,0,0,0.85)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.62, w: 0.85, h: 0.045 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 24,
          fontStyle: 'italic',
          color: '#d8b8c8',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_divider',
        type: 'divider',
        zIndex: 9,
        position: { x: 0.5, y: 0.68, w: 0.25, h: 0.002 },
        anchor: 'center',
        style: { color: '#d4af37', width: 2, opacity: 0.7 },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.73, w: 0.9, h: 0.055 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 50,
          color: '#d4af37',
          textAlign: 'center',
          letterSpacing: 5,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 10, offsetY: 2, color: 'rgba(0,0,0,0.7)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.8, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'wine_bar', size: 22, color: '#8b2252' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 24,
          color: '#f0e0e8',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.86, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 18,
          color: '#b090a0',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.91, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 15,
          color: '#906878',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 3,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.15, y: 0.96, w: 0.11, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_2',
          position: { x: 0.5, y: 0.96, w: 0.11, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_3',
          position: { x: 0.85, y: 0.96, w: 0.11, h: 0.04 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
      ],
    },

    palette: {
      primary: '#8b2252',
      secondary: '#4a1942',
      accent: '#d4af37',
      background: '#1a0a15',
      text: '#f8e8f0',
      textSecondary: '#d8b8c8',
      textMuted: '#906878',
    },

    typography: {
      titleFont: 'Playfair Display',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Playfair Display',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'vineyard at sunset, rows of grapevines, Tuscan hills, warm golden purple light, romantic atmosphere, no text',
      mainImage:
        'wine glasses with red wine, rustic wooden barrel, grape bunches, warm candlelight, elegant still life, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['vino', 'naturale', 'degustazione', 'cantina', 'vendemmia', 'festa'],
      isPublic: true,
    },
  },

  // ============================================
  // 9. YOGA E MEDITAZIONE NELLA NATURA (continuazione)
  // ============================================
  {
    name: 'Ritiro Yoga nella Natura',
    templateType: 'yoga-retreat',
    description: 'Template per ritiri yoga, meditazione, benessere, mindfulness nella natura',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#0a1a18',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#1a4a42', '#0f2a28', '#0a1a18'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(10,26,24,0.1)' },
              { position: 0.4, color: 'rgba(10,26,24,0.4)' },
              { position: 0.7, color: 'rgba(10,26,24,0.75)' },
              { position: 1, color: 'rgba(10,26,24,0.95)' },
            ],
          },
        },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 1,
        position: { x: 0.5, y: 0.27, w: 0.7, h: 0.26 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 200,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 45, offsetY: 0, color: 'rgba(77,182,172,0.3)' },
          border: { enabled: true, width: 3, color: 'rgba(77,182,172,0.5)' },
        },
      },
      {
        id: 'layer_lotus',
        type: 'customText',
        zIndex: 5,
        position: { x: 0.5, y: 0.43, w: 0.15, h: 0.04 },
        anchor: 'center',
        style: { fontSize: 32, textAlign: 'center' },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.51, w: 0.92, h: 0.1 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Playfair Display',
          fontWeight: 400,
          fontSize: 52,
          color: '#e8f8f4',
          textAlign: 'center',
          letterSpacing: 5,
          lineHeight: 1.15,
          shadow: { enabled: true, blur: 15, offsetY: 0, color: 'rgba(77,182,172,0.4)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.605, w: 0.85, h: 0.05 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 23,
          fontStyle: 'italic',
          color: '#a8d8d0',
          textAlign: 'center',
          letterSpacing: 1,
        },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.7, w: 0.9, h: 0.052 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 46,
          color: '#4db6ac',
          textAlign: 'center',
          letterSpacing: 5,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 8, offsetY: 0, color: 'rgba(77,182,172,0.5)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.77, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'self_improvement', size: 22, color: '#4db6ac' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 500,
          fontSize: 24,
          color: '#d0f0e8',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.84, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 18,
          color: '#80b0a8',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.895, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 15,
          color: '#608880',
          textAlign: 'center',
          lineHeight: 1.4,
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 2,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.28, y: 0.96, w: 0.13, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.8 },
        },
        {
          id: 'logo_2',
          position: { x: 0.72, y: 0.96, w: 0.13, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.8 },
        },
      ],
    },

    palette: {
      primary: '#4db6ac',
      secondary: '#1a4a42',
      accent: '#80cbc4',
      background: '#0a1a18',
      text: '#e8f8f4',
      textSecondary: '#a8d8d0',
      textMuted: '#608880',
    },

    typography: {
      titleFont: 'Playfair Display',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Playfair Display',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'serene forest clearing at sunrise, morning mist, soft golden light through trees, peaceful meditation spot, zen atmosphere, no text',
      mainImage:
        'person in yoga pose silhouette, mountain lake reflection, sunrise colors, peaceful spiritual moment, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['yoga', 'meditazione', 'ritiro', 'benessere', 'natura', 'mindfulness'],
      isPublic: true,
    },
  },

  // ============================================
  // 10. LABORATORIO CERAMICA E ARGILLA
  // ============================================
  {
    name: 'Laboratorio di Ceramica',
    templateType: 'pottery-workshop',
    description: 'Template per corsi di ceramica, lavorazione argilla, tornio, raku, artigianato artistico',

    format: {
      preset: 'instagram-story',
      width: 1080,
      height: 1920,
      unit: 'px',
      dpi: 72,
    },

    safeArea: { top: 0.03, right: 0.04, bottom: 0.03, left: 0.04 },
    backgroundColor: '#1a1410',

    layers: [
      {
        id: 'layer_bg',
        type: 'backgroundImage',
        zIndex: 0,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        required: false,
        fallback: {
          type: 'gradient',
          direction: 'to-bottom',
          colors: ['#5d4e42', '#3a2e26', '#1a1410'],
        },
        style: {
          opacity: 1,
          objectFit: 'cover',
          overlay: {
            enabled: true,
            type: 'gradient',
            direction: 'to-bottom',
            stops: [
              { position: 0, color: 'rgba(26,20,16,0.15)' },
              { position: 0.4, color: 'rgba(26,20,16,0.5)' },
              { position: 0.7, color: 'rgba(26,20,16,0.8)' },
              { position: 1, color: 'rgba(26,20,16,0.96)' },
            ],
          },
        },
      },
      {
        id: 'layer_texture_overlay',
        type: 'shape',
        zIndex: 1,
        position: { x: 0, y: 0, w: 1, h: 1 },
        anchor: 'top-left',
        style: { shape: 'rectangle', fill: 'rgba(139,90,43,0.05)', opacity: 1 },
      },
      {
        id: 'layer_main_image',
        type: 'mainImage',
        zIndex: 2,
        position: { x: 0.5, y: 0.26, w: 0.82, h: 0.3 },
        anchor: 'center',
        required: false,
        style: {
          borderRadius: 16,
          objectFit: 'cover',
          shadow: { enabled: true, blur: 35, offsetY: 15, color: 'rgba(0,0,0,0.5)' },
          border: { enabled: true, width: 4, color: 'rgba(205,133,63,0.4)' },
        },
      },
      {
        id: 'layer_hands_badge',
        type: 'shape',
        zIndex: 4,
        position: { x: 0.5, y: 0.435, w: 0.18, h: 0.042 },
        anchor: 'center',
        style: { shape: 'rectangle', fill: '#cd853f', opacity: 0.9, borderRadius: 25 },
      },
      {
        id: 'layer_title',
        type: 'title',
        zIndex: 10,
        position: { x: 0.5, y: 0.52, w: 0.92, h: 0.11 },
        anchor: 'center',
        required: true,
        maxLines: 2,
        style: {
          fontFamily: 'Playfair Display',
          fontWeight: 700,
          fontSize: 54,
          color: '#faf0e6',
          textAlign: 'center',
          textTransform: 'uppercase',
          letterSpacing: 3,
          lineHeight: 1.1,
          shadow: { enabled: true, blur: 12, offsetY: 3, color: 'rgba(0,0,0,0.85)' },
        },
      },
      {
        id: 'layer_subtitle',
        type: 'subtitle',
        zIndex: 10,
        position: { x: 0.5, y: 0.62, w: 0.85, h: 0.05 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 23,
          fontStyle: 'italic',
          color: '#dcc8b0',
          textAlign: 'center',
          lineHeight: 1.35,
        },
      },
      {
        id: 'layer_divider',
        type: 'divider',
        zIndex: 9,
        position: { x: 0.5, y: 0.68, w: 0.22, h: 0.002 },
        anchor: 'center',
        style: { color: '#cd853f', width: 3, opacity: 0.7 },
      },
      {
        id: 'layer_event_date',
        type: 'eventDate',
        zIndex: 10,
        position: { x: 0.5, y: 0.73, w: 0.9, h: 0.055 },
        anchor: 'center',
        required: true,
        style: {
          fontFamily: 'Bebas Neue',
          fontWeight: 400,
          fontSize: 50,
          color: '#daa06d',
          textAlign: 'center',
          letterSpacing: 5,
          textTransform: 'uppercase',
          shadow: { enabled: true, blur: 10, offsetY: 2, color: 'rgba(0,0,0,0.7)' },
        },
      },
      {
        id: 'layer_location',
        type: 'location',
        zIndex: 10,
        position: { x: 0.5, y: 0.8, w: 0.85, h: 0.04 },
        anchor: 'center',
        required: true,
        icon: { enabled: true, name: 'palette', size: 22, color: '#cd853f' },
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 24,
          color: '#f0e0d0',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_contacts',
        type: 'contacts',
        zIndex: 10,
        position: { x: 0.5, y: 0.86, w: 0.9, h: 0.035 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 400,
          fontSize: 18,
          color: '#b8a090',
          textAlign: 'center',
        },
      },
      {
        id: 'layer_extra',
        type: 'extraText',
        zIndex: 10,
        position: { x: 0.5, y: 0.91, w: 0.85, h: 0.03 },
        anchor: 'center',
        required: false,
        style: {
          fontFamily: 'Open Sans',
          fontWeight: 300,
          fontSize: 15,
          color: '#8a7868',
          textAlign: 'center',
        },
      },
    ],

    logoSlots: {
      enabled: true,
      maxCount: 2,
      collapseIfEmpty: true,
      slots: [
        {
          id: 'logo_1',
          position: { x: 0.28, y: 0.96, w: 0.14, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
        {
          id: 'logo_2',
          position: { x: 0.72, y: 0.96, w: 0.14, h: 0.042 },
          anchor: 'bottom-center',
          style: { objectFit: 'contain', opacity: 0.85 },
        },
      ],
    },

    palette: {
      primary: '#cd853f',
      secondary: '#5d4e42',
      accent: '#daa06d',
      background: '#1a1410',
      text: '#faf0e6',
      textSecondary: '#dcc8b0',
      textMuted: '#8a7868',
    },

    typography: {
      titleFont: 'Playfair Display',
      headingFont: 'Bebas Neue',
      bodyFont: 'Open Sans',
      accentFont: 'Playfair Display',
    },

    defaultAiPromptHints: {
      backgroundImage:
        'pottery workshop interior, ceramic pots on wooden shelves, warm ambient light, artisan studio atmosphere, rustic terracotta colors, no text',
      mainImage:
        'hands shaping clay on pottery wheel, spinning motion blur, artisan craftsmanship, warm studio light, close-up, no text',
    },

    metadata: {
      author: 'System',
      version: '1.0.0',
      tags: ['ceramica', 'argilla', 'tornio', 'laboratorio', 'artigianato', 'corso'],
      isPublic: true,
    },
  },
];

module.exports = templateSeeds;
